Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultDomain The default domain, if none was specified.
DefaultDomain = "docker.io"
)
Variables ¶
View Source
var ( // ErrDoesNotExist is returned if a reference is not found in the // store. ErrDoesNotExist notFoundError = "reference does not exist" )
Functions ¶
This section is empty.
Types ¶
type Association ¶
Association An association between an id and an image.
type ImageRef ¶
type ImageRef interface { Tag() string Name() string Domain() string FullName() string WithTag(tag string) (ImageRef, error) WithName(name string) (ImageRef, error) WithDomain(domain string) (ImageRef, error) }
ImageRef An image reference.
func ParseImage ¶
ParseImage Parses a string for image:tag.
func ParseImageWithDefaultTag ¶
ParseImageWithDefaultTag Parse an image name. If not tag is given in the image name, use the optionalTag as the tag.
type Store ¶
type Store interface { References(id string) ([]ImageRef, error) AddTag(ref ImageRef, id string, force bool) error Delete(ref ImageRef) (bool, error) Get(ref ImageRef) (Association, error) AllImages() ([]Association, error) }
Store The store holding info about the live images.
func NewReferenceStore ¶
NewReferenceStore Create a new store.
Click to show internal directories.
Click to hide internal directories.