Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTag = "latest"
DefaultTag defines the default tag used when performing images related actions and no tag string is specified
Variables ¶
View Source
var ( // ErrDoesNotExist is returned if a reference is not found in the // store. ErrDoesNotExist = errors.New("reference does not exist") )
Functions ¶
This section is empty.
Types ¶
type Association ¶
An Association is a tuple associating a reference with an image ID.
type Store ¶
type Store interface { References(id image.ID) []reference.Named ReferencesByName(ref reference.Named) []Association AddTag(ref reference.Named, id image.ID, force bool) error AddDigest(ref reference.Canonical, id image.ID, force bool) error Delete(ref reference.Named) (bool, error) Get(ref reference.Named) (image.ID, error) }
Store provides the set of methods which can operate on a tag store.
func NewTagStore ¶
NewTagStore creates a new tag store, tied to a file path where the set of tags is serialized in JSON format.
Click to show internal directories.
Click to hide internal directories.