tag

package
v1.0.64 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(
	remoteTags, localTags map[string]*Tag,
	assumedTagNames []string,
) ([]string, map[string]string, map[string]*Tag)

Join joins local tags with ones from registry, performs state processing and returns: * sorted slice of sort keys * joined map of [sortKey]name * joined map of [name]*Tag

Types

type Tag

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

Tag aggregates tag-related information: tag name, image digest etc

func Collect

func Collect(keys []string, tagNames map[string]string, tagMap map[string]*Tag) []*Tag

Collect organizes tags structures the way they could be used by API

func New

func New(name, digest string) (*Tag, error)

New creates a new instance of Tag

func (*Tag) GetContainerID

func (tg *Tag) GetContainerID() string

GetContainerID gets "container ID": an OAF "image digest" generated locally

func (*Tag) GetCreated

func (tg *Tag) GetCreated() int64

GetCreated gets image creation timestamp

func (*Tag) GetCreatedKey

func (tg *Tag) GetCreatedKey() string

GetCreatedKey gets image creation timestamp in a string form (for a string sort e.g.)

func (*Tag) GetCreatedString

func (tg *Tag) GetCreatedString() string

GetCreatedString gets image creation timestamp in a human-readable string form

func (*Tag) GetDigest

func (tg *Tag) GetDigest() string

GetDigest gets tagged image's digest

func (*Tag) GetImageID

func (tg *Tag) GetImageID() string

GetImageID gets local Docker image ID

func (*Tag) GetShortDigest

func (tg *Tag) GetShortDigest() string

GetShortDigest gets shorter form of tagged image's digest

func (*Tag) GetState

func (tg *Tag) GetState() string

GetState gets repo tag state

func (*Tag) HasContainerID

func (tg *Tag) HasContainerID() bool

HasContainerID tells us if tag has "container ID"

func (*Tag) HasImageID

func (tg *Tag) HasImageID() bool

HasImageID tells us if Docker image has an ID defined

func (*Tag) Name

func (tg *Tag) Name() string

Name gets tag name

func (*Tag) NeedsPull

func (tg *Tag) NeedsPull() bool

NeedsPull tells us if tag/image needs pull

func (*Tag) NeedsPush

func (tg *Tag) NeedsPush(doUpdate bool) bool

NeedsPush tells us if tag/image needs push to a registry

func (*Tag) SetContainerID

func (tg *Tag) SetContainerID(containerID string)

SetContainerID sets "container ID": an OAF "image digest" generated locally

func (*Tag) SetCreated

func (tg *Tag) SetCreated(created int64)

SetCreated sets image creation timestamp

func (*Tag) SetImageID

func (tg *Tag) SetImageID(s string)

SetImageID sets local Docker image ID

func (*Tag) SetState

func (tg *Tag) SetState(state string)

SetState sets repo tag state

func (*Tag) SortKey

func (tg *Tag) SortKey() string

SortKey returns a sort key

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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