container

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNormalizeRef added in v0.7.11

func MustNormalizeRef(ref string) string

func MustParseNamed

func MustParseNamed(s string) reference.Named

func MustParseNamedTagged

func MustParseNamedTagged(s string) reference.NamedTagged

func NormalizeRef added in v0.7.11

func NormalizeRef(ref string) (string, error)

func ParseNamed added in v0.7.11

func ParseNamed(s string) (reference.Named, error)

func ParseNamedTagged

func ParseNamedTagged(s string) (reference.NamedTagged, error)

func ReplaceRegistry added in v0.7.11

func ReplaceRegistry(defaultRegistry string, rs RefSelector) (reference.Named, error)

Produces a new image name that is in the specified registry. The name might be ugly, favoring uniqueness and simplicity and assuming that the prettiness of ephemeral dev image names is not that important.

Types

type ID

type ID string

func (ID) Empty

func (id ID) Empty() bool

func (ID) ShortStr

func (id ID) ShortStr() string

func (ID) String

func (id ID) String() string

type MatchType added in v0.7.11

type MatchType int

type Name

type Name string

func (Name) String

func (n Name) String() string

type RefSelector added in v0.7.11

type RefSelector struct {
	// contains filtered or unexported fields
}

func MustParseSelector added in v0.7.11

func MustParseSelector(s string) RefSelector

func MustParseTaggedSelector added in v0.7.11

func MustParseTaggedSelector(s string) RefSelector

func NameSelector added in v0.7.11

func NameSelector(ref reference.Named) RefSelector

func NewRefSelector added in v0.7.11

func NewRefSelector(ref reference.Named) RefSelector

func (RefSelector) AsNamedOnly added in v0.7.11

func (s RefSelector) AsNamedOnly() reference.Named

AsNamedOnly returns the Ref as a Named, REMOVING THE TAG if one exists

func (RefSelector) Empty added in v0.7.11

func (s RefSelector) Empty() bool

func (RefSelector) Matches added in v0.7.11

func (s RefSelector) Matches(toMatch reference.Named) bool

func (RefSelector) RefFamiliarName added in v0.7.11

func (s RefSelector) RefFamiliarName() string

func (RefSelector) RefFamiliarString added in v0.7.11

func (s RefSelector) RefFamiliarString() string

func (RefSelector) RefName added in v0.7.11

func (s RefSelector) RefName() string

func (RefSelector) RefsEqual added in v0.7.11

func (s RefSelector) RefsEqual(other RefSelector) bool

func (RefSelector) String added in v0.7.11

func (s RefSelector) String() string

func (RefSelector) WithExactMatch added in v0.7.11

func (s RefSelector) WithExactMatch() RefSelector

func (RefSelector) WithNameMatch added in v0.7.11

func (s RefSelector) WithNameMatch() RefSelector

type Runtime added in v0.7.11

type Runtime string

A good way to manually test different container runtimes is with minikube. https://github.com/kubernetes/minikube/blob/master/docs/alternative_runtimes.md

const (
	RuntimeDocker     Runtime = "docker"
	RuntimeContainerd Runtime = "containerd"
	RuntimeCrio       Runtime = "cri-o"
	RuntimeUnknown    Runtime = "unknown"
)

func RuntimeFromVersionString added in v0.7.11

func RuntimeFromVersionString(s string) Runtime

Jump to

Keyboard shortcuts

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