commands

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultCommand

func NewDefaultCommand() *cobra.Command

NewDefaultCommand creates a new default command

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 ContainerImage

type ContainerImage struct {
	Repository     string `yaml:"repository"`
	Version        string `yaml:"version"`
	SourceRegistry string `yaml:"source,omitempty"`
	Auth           Auth   `yaml:"auth,omitempty"`
}

ContainerImage is a container image

func (ContainerImage) RepositoryWithTag

func (c ContainerImage) RepositoryWithTag() string

RepositoryWithTag returns the full repository path including the tag

func (ContainerImage) Source

func (c ContainerImage) Source() string

Source returns the source image

func (ContainerImage) Target

func (c ContainerImage) Target(target Target) string

Target returns the target image

type ImageManifest

type ImageManifest struct {
	Target Target           `yaml:"target"`
	Images []ContainerImage `yaml:"images,omitempty"`
}

ImageManifest is a collection of images to sync

type Target

type Target struct {
	Registry   string `yaml:"registry"`
	Repository string `yaml:"repository,omitempty"`
}

Target is the registry and repository to sync images to

func (Target) String

func (t Target) String() string

Jump to

Keyboard shortcuts

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