Documentation ¶
Overview ¶
Package tag provides Tag abstraction to handle Docker tags (images) and their differences between remote registries and Docker daemon, i.e. what tags ara available in remote Docker registry, do we have them pulled in our local system, or do we have the same tags in our own local registry etc.
Index ¶
- func Join(remoteTags, localTags map[string]*Tag, assumedTagNames []string) ([]string, map[string]string, map[string]*Tag)
- type Options
- type Tag
- func (tg *Tag) GetCreated() int64
- func (tg *Tag) GetCreatedKey() string
- func (tg *Tag) GetCreatedString() string
- func (tg *Tag) GetDigest() string
- func (tg *Tag) GetImageID() string
- func (tg *Tag) GetShortDigest() string
- func (tg *Tag) GetState() string
- func (tg *Tag) HasImageID() bool
- func (tg *Tag) Name() string
- func (tg *Tag) NeedsPull() bool
- func (tg *Tag) NeedsPush(doUpdate bool) bool
- func (tg *Tag) SortKey() string
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 (*Tag) GetCreatedKey ¶
GetCreatedKey gets image creation timestamp in a string form (for a string sort e.g.)
func (*Tag) GetCreatedString ¶
GetCreatedString gets image creation timestamp in a human-readable string form
func (*Tag) GetShortDigest ¶
GetShortDigest gets shorter form of tagged image's digest
func (*Tag) GetState ¶
GetState gets tag state (a difference between local tag and its remote counterpart)
func (*Tag) HasImageID ¶
HasImageID tells us if Docker image has an ID defined