imagevector

package
v0.0.0-...-48c86bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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.

func (*Image) String

func (i *Image) String() string

String will returns the string representation of the image.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL