Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { Name string `json:"name" yaml:"name"` Repository string `json:"repository" yaml:"repository"` Tag string `json:"tag" yaml:"tag"` Versions string `json:"versions" yaml:"versions"` }
Image contains the repository and the tag of a Docker container image. If the respective image is only valid for a specific Kubernetes version, then it must also contain the 'versions' field describing for which versions it can be used.
type ImageVector ¶
type ImageVector []*Image
ImageVector is a list of Docker container images.
func ReadImageVector ¶
func ReadImageVector() (ImageVector, error)
ReadImageVector reads the image.yaml in the chart directory, unmarshals it into a []*Image type and returns it.
func (ImageVector) FindImage ¶
func (v ImageVector) FindImage(name, k8sVersion string) (*Image, error)
FindImage returns the image with the given <name> in the image vector. If multiple entries were found, the provided <k8sVersion> is compared with the constraints stated in the image definition. In case multiple images match the search, the first which was found is returned. In case no image was found, an error is returned.