Documentation ¶
Index ¶
- type ImageTag
- type ImageTagList
- func (il ImageTagList) Add(tag *ImageTag)
- func (il ImageTagList) Contains(tag *ImageTag) bool
- func (il ImageTagList) SortAlphabetically() SortableImageTagList
- func (il ImageTagList) SortByDate() SortableImageTagList
- func (il ImageTagList) SortBySemVer() SortableImageTagList
- func (il *ImageTagList) Tags() []string
- type SortableImageTagList
- type TagInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageTag ¶
ImageTag is a representation of an image tag with metadata Use NewImageTag to to initialize a new object.
func NewImageTag ¶
NewImageTag initializes an ImageTag object and returns it
func (*ImageTag) Equals ¶
Equals checks whether two tags are equal. Will consider any digest set for the tag with precedence, otherwise uses a tag's name.
type ImageTagList ¶
type ImageTagList struct {
// contains filtered or unexported fields
}
ImageTagList is a collection of ImageTag objects. Use NewImageTagList to to initialize a new object.
func NewImageTagList ¶
func NewImageTagList() *ImageTagList
NewImageTagList initializes an ImageTagList object and returns it
func (ImageTagList) Add ¶
func (il ImageTagList) Add(tag *ImageTag)
Add adds an ImageTag to an ImageTagList, ensuring this will not result in an double entry
func (ImageTagList) Contains ¶
func (il ImageTagList) Contains(tag *ImageTag) bool
Checks whether given tag is contained in tag list in O(n) time
func (ImageTagList) SortAlphabetically ¶
func (il ImageTagList) SortAlphabetically() SortableImageTagList
SortByName returns an array of ImageTag objects, sorted by the tag's name
func (ImageTagList) SortByDate ¶
func (il ImageTagList) SortByDate() SortableImageTagList
SortByDate returns a SortableImageTagList, sorted by the tag's date
func (ImageTagList) SortBySemVer ¶
func (il ImageTagList) SortBySemVer() SortableImageTagList
func (*ImageTagList) Tags ¶
func (il *ImageTagList) Tags() []string
Tags returns a list of verbatim tag names as string slice
type SortableImageTagList ¶
type SortableImageTagList []*ImageTag
SortableImageTagList is just that - a sortable list of ImageTag entries
func (SortableImageTagList) Len ¶
func (il SortableImageTagList) Len() int
Len returns the length of an SortableImageList
func (SortableImageTagList) Swap ¶
func (il SortableImageTagList) Swap(i, j int)
Swap swaps two entries in the SortableImageList
func (*SortableImageTagList) Tags ¶
func (sil *SortableImageTagList) Tags() []string
Tags returns a list of verbatim tag names as string slice