Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImagesFromKubernetesManifests ¶
GetImagesFromKubernetesManifests returns all images found in Kubernetes manifests that are located at the specified path.
func GetImagesFromKubernetesResources ¶ added in v0.11.2
GetImagesFromKubernetesResources returns all images found in Kubernetes resources that have already been read from the disk, or are being read from standard input.
func GetImagesFromStandardInput ¶ added in v0.11.0
GetImagesFromStandardInput gets a list of images passed in by standard input.
Types ¶
type Auth ¶
type Auth struct { Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` }
Auth is a username and password to authenticate to a registry.
type Manifest ¶
Manifest contains all of the sources to push to a target registry.
type Source ¶
type Source struct { Repository string `yaml:"repository"` Host string `yaml:"host,omitempty"` Target Target `yaml:"target,omitempty"` Tag string `yaml:"tag,omitempty"` Digest string `yaml:"digest,omitempty"` Auth Auth `yaml:"auth,omitempty"` }
Source is a container image in the manifest.
func GetSourcesFromImages ¶
GetSourcesFromImages returns the given images as sources with the specified target.
func (Source) EncodedAuth ¶
EncodedAuth returns the Base64 encoded auth for the source registry.
func (Source) TargetImage ¶
TargetImage returns the target image including its tag or digest.
type Target ¶
type Target struct { Host string `yaml:"host,omitempty"` Repository string `yaml:"repository,omitempty"` Auth Auth `yaml:"auth,omitempty"` }
Target is the target registry where the images defined in the manifest will be pushed to.
func (Target) EncodedAuth ¶
EncodedAuth returns the Base64 encoded auth for the target registry.