Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatOption ¶
type FormatOption byte
FormatOption is a the byte switch that sets the format for the image ToString func
const ( // Registry output option includes the registry in the string. Registry FormatOption = 1 << iota // Tag includes the tag in the output string. Tag // ExplicitTag forces a tag in the string, will use latest if no tag is avail. ExplicitTag // ExplicitNamespace forces a namespace in the repo, will use "library" if no namespace ExplicitNamespace )
var ( // DefaultGetStringOptions is the default set of options DefaultGetStringOptions FormatOption = Registry | Tag // ErrNoImageRepository returns when there is there is no image repository ErrNoImageRepository = errors.New("No image repository specified") )
func (FormatOption) Clear ¶
func (b FormatOption) Clear(flag FormatOption) FormatOption
Clear clears the binary flag
func (FormatOption) Has ¶
func (b FormatOption) Has(flag FormatOption) bool
Has checks if the flag is set.
func (FormatOption) Set ¶
func (b FormatOption) Set(flag FormatOption) FormatOption
Set sets the binary flag
func (FormatOption) Toggle ¶
func (b FormatOption) Toggle(flag FormatOption) FormatOption
Toggle toggles the flag
type ImageName ¶
ImageName represents the parts of an image reference.
func (*ImageName) GetRepo ¶
func (imageName *ImageName) GetRepo(option FormatOption) string
GetRepo returns the repository of the image.
Click to show internal directories.
Click to hide internal directories.