container

package
v0.10.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyMatch added in v0.10.14

func AnyMatch(toMatch []reference.Named, selectors []RefSelector) bool

func MustParseNamed

func MustParseNamed(s string) reference.Named

func MustParseNamedTagged

func MustParseNamedTagged(s string) reference.NamedTagged

func NewIDSet added in v0.10.0

func NewIDSet(ids ...ID) map[ID]bool

func ParseNamed added in v0.7.11

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

func ParseNamedMulti added in v0.10.14

func ParseNamedMulti(strs []string) ([]reference.Named, error)

func ParseNamedTagged

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

func ReplaceRegistry added in v0.7.11

func ReplaceRegistry(defaultRegistry Registry, 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.

func ShortStrs added in v0.9.7

func ShortStrs(ids []ID) string

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 Registry added in v0.8.9

type Registry string

The Host of a container registry where we can push images. ex) localhost:32000 gcr.io/windmill-public-containers

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