Documentation
¶
Index ¶
- type Container
- func (c *Container) GetAutoupdateVersion() (version *registry.Version, err error)
- func (c *Container) GetBeforeUpdateJob() (job *batch.Job)
- func (c *Container) GetDeploymentName() string
- func (c *Container) GetImageName() string
- func (c *Container) GetImageVersion() (version *registry.Version, err error)
- func (c *Container) GetLatestVersion() (*registry.Version, error)
- func (c *Container) GetName() string
- func (c *Container) SetImageVersion(v registry.Version) (*Container, error)
- func (c *Container) SetRepositoryFrom(registries *registry.RegistryList) error
- func (c *Container) UpdateDeployment(k *client.Client, v registry.Version) (err error)
- type ContainerList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container holds a container to check for version update linked with `Deployment`
func (*Container) GetAutoupdateVersion ¶
GetAutoupdateVersion returns version to perform autoupdate to. nil will be returned if notheng to update.
func (*Container) GetBeforeUpdateJob ¶
GetBeforeUpdateJob returns configuration for a job to run before deployment update. It copies the original job and fix it's container image version.
func (*Container) GetDeploymentName ¶
GetDeploymentName returns the deployment name
func (*Container) GetImageName ¶
GetImageName returns the container image name
func (*Container) GetImageVersion ¶
GetImageVersion returns `registry.Version` for current container image
func (*Container) GetLatestVersion ¶
GetLatestVersion returns a latest image version from repository
func (*Container) SetImageVersion ¶
SetImageVersion updates Deployment template with the set version. It does not save the deployment. NOTE a version is passed by the value to avoid nil pointer errors
func (*Container) SetRepositoryFrom ¶
func (c *Container) SetRepositoryFrom(registries *registry.RegistryList) error
SetRepositoryFrom iterate over registries list to match containers image repository
type ContainerList ¶
type ContainerList struct {
Items []*Container
}
ContainerList is a list of containers to check for version update