Documentation ¶
Overview ¶
Package collection provides a "container" structure to store Docker registry query results in a well organized and easily accessible form.
Index ¶
- type Collection
- func (cn *Collection) Refs() []string
- func (cn *Collection) Repo(ref string) *repository.Repository
- func (cn *Collection) RepoCount() int
- func (cn *Collection) Repos() []*repository.Repository
- func (cn *Collection) TagCount() int
- func (cn *Collection) TagMap(ref string) map[string]*tag.Tag
- func (cn *Collection) TaggedRefs() []string
- func (cn *Collection) Tags(ref string) []*tag.Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
Collection of API resources received from a registry or Docker daemon query
func (*Collection) Refs ¶
func (cn *Collection) Refs() []string
Refs returns all repository references from collection
func (*Collection) Repo ¶
func (cn *Collection) Repo(ref string) *repository.Repository
Repo returns repo structure, if it is present in collection (nil if not)
func (*Collection) RepoCount ¶
func (cn *Collection) RepoCount() int
RepoCount counts total repo number inside the collection
func (*Collection) Repos ¶
func (cn *Collection) Repos() []*repository.Repository
Repos returns all repository structures from collection
func (*Collection) TagCount ¶
func (cn *Collection) TagCount() int
TagCount counts total tag number inside the collection
func (*Collection) TagMap ¶
func (cn *Collection) TagMap(ref string) map[string]*tag.Tag
TagMap returns [name]*Tag map of tag structures, if it is present in collection (nil if not)
func (*Collection) TaggedRefs ¶
func (cn *Collection) TaggedRefs() []string
TaggedRefs returns a slice of [REGISTRY/]REPOSITORY:TAG references for all tags present in collection