Documentation ¶
Index ¶
- func Join(remoteTags, localTags map[string]*Tag, assumedTagNames []string) ([]string, map[string]string, map[string]*Tag)
- type Tag
- func (tg *Tag) GetContainerID() string
- 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) HasContainerID() bool
- 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) SetContainerID(containerID string)
- func (tg *Tag) SetCreated(created int64)
- func (tg *Tag) SetImageID(s string)
- func (tg *Tag) SetState(state string)
- 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) GetContainerID ¶
GetContainerID gets "container ID": an OAF "image digest" generated locally
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) HasContainerID ¶
HasContainerID tells us if tag has "container ID"
func (*Tag) HasImageID ¶
HasImageID tells us if Docker image has an ID defined
func (*Tag) SetContainerID ¶
SetContainerID sets "container ID": an OAF "image digest" generated locally
func (*Tag) SetCreated ¶
SetCreated sets image creation timestamp