Documentation
¶
Index ¶
- Constants
- func FilterSemverTags(tags []string) []string
- func ParseDockerTimestamp(str string) (int64, error)
- type DockerImageRef
- type TimestampedTag
- func GetNewestMatchingTag(currentTag TimestampedTag, candidateTags []TimestampedTag, track string) TimestampedTag
- func GetTagsForDockerHubImage(repo *DockerImageRef) ([]TimestampedTag, error)
- func GetTagsForDockerImage(repo string) ([]TimestampedTag, error)
- func GetTagsForDockerV2RegistryImage(repo *DockerImageRef) ([]TimestampedTag, error)
- func GetTagsForGcrImage(repo *DockerImageRef) ([]TimestampedTag, error)
Constants ¶
View Source
const ( DefaultDockerRegistry = "registry-1.docker.io" GCRRegistrySuffix = "gcr.io" )
Variables ¶
This section is empty.
Functions ¶
func FilterSemverTags ¶
func ParseDockerTimestamp ¶
Types ¶
type DockerImageRef ¶
func NewDockerImageRef ¶
func NewDockerImageRef(repo string) *DockerImageRef
func (DockerImageRef) RegistryURL ¶
func (r DockerImageRef) RegistryURL() string
func (DockerImageRef) WithTag ¶
func (r DockerImageRef) WithTag() string
func (DockerImageRef) WithoutTag ¶
func (r DockerImageRef) WithoutTag() string
type TimestampedTag ¶
func GetNewestMatchingTag ¶
func GetNewestMatchingTag(currentTag TimestampedTag, candidateTags []TimestampedTag, track string) TimestampedTag
GetNewestMatchingTag returns the "newest" (as defined by the track parameter) candidate tag, or the current tag if no better ones were found.
func GetTagsForDockerHubImage ¶
func GetTagsForDockerHubImage(repo *DockerImageRef) ([]TimestampedTag, error)
func GetTagsForDockerImage ¶
func GetTagsForDockerImage(repo string) ([]TimestampedTag, error)
func GetTagsForDockerV2RegistryImage ¶
func GetTagsForDockerV2RegistryImage(repo *DockerImageRef) ([]TimestampedTag, error)
func GetTagsForGcrImage ¶
func GetTagsForGcrImage(repo *DockerImageRef) ([]TimestampedTag, error)
func (*TimestampedTag) Semantic ¶
func (t *TimestampedTag) Semantic() *mmsemver.Version
Click to show internal directories.
Click to hide internal directories.