Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultCommand ¶
NewDefaultCommand creates a new default command
func WriteManifest ¶ added in v0.7.0
WriteManifest writes the image manifest to disk
Types ¶
type Auth ¶
type Auth struct {
Username string `yaml:"username,omitempty"`
Password string `yaml:"password,omitempty"`
}
Auth is a username and password to log into a registry
type Client ¶ added in v0.8.0
Client is a Docker client with a logger
type Manifest ¶ added in v0.7.0
type Manifest struct {
Target Target `yaml:"target"`
Images []SourceImage `yaml:"sources,omitempty"`
}
Manifest is a collection of images to sync
func GetManifest ¶ added in v0.7.0
GetManifest returns the current manifest file in the working directory
func NewAutodetectManifest ¶ added in v0.7.0
NewAutodetectManifest returns a new image manifest with images found in the repository
func NewManifest ¶ added in v0.7.0
NewManifest returns a new image manifest
type Path ¶ added in v0.8.0
type Path string
Path is a registry host and repository
func (Path) Repository ¶ added in v0.8.0
Repository is the repository of the registry
type SourceImage ¶ added in v0.8.0
type SourceImage struct {
Repository string `yaml:"repository"`
Host string `yaml:"host,omitempty"`
Target Target `yaml:"target,omitempty"`
Tag string `yaml:"tag,omitempty"`
Auth Auth `yaml:"auth,omitempty"`
}
SourceImage is a source container image
func (SourceImage) String ¶ added in v0.8.0
func (c SourceImage) String() string
String returns the source image including its tag
func (SourceImage) TargetImage ¶ added in v0.8.0
func (c SourceImage) TargetImage() string
TargetImage returns the target image includes its tag