tag

package
v1.4.2-0...-a16a1d7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

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

type Association struct {
	Ref     reference.Named
	ImageID image.ID
}

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

func NewTagStore(jsonPath string) (Store, error)

NewTagStore creates a new tag store, tied to a file path where the set of tags is serialized in JSON format.

Jump to

Keyboard shortcuts

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