image

package
v0.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDockerRegistry = "registry-1.docker.io"
	GCRRegistrySuffix     = "gcr.io"
)

Variables

This section is empty.

Functions

func FilterSemverTags

func FilterSemverTags(tags []string) []string

func ParseDockerTimestamp

func ParseDockerTimestamp(str string) (int64, error)

Types

type DockerImageRef

type DockerImageRef struct {
	Registry string
	Image    string
	Tag      string
}

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

type TimestampedTag struct {
	Tag       string
	Timestamp int64
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL