tag

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChecksumTagger

type ChecksumTagger struct{}

ChecksumTagger tags an image by the sha256 of the image tarball

func (*ChecksumTagger) GenerateFullyQualifiedImageName

func (c *ChecksumTagger) GenerateFullyQualifiedImageName(workingDir, imageName string) (string, error)

func (*ChecksumTagger) Labels added in v0.8.0

func (c *ChecksumTagger) Labels() map[string]string

Labels are labels specific to the sha256 tagger.

type CustomTag added in v0.2.0

type CustomTag struct {
	Tag string
}

func (*CustomTag) GenerateFullyQualifiedImageName added in v0.2.0

func (c *CustomTag) GenerateFullyQualifiedImageName(workingDir, imageName string) (string, error)

GenerateFullyQualifiedImageName tags an image with the custom tag

func (*CustomTag) Labels added in v0.8.0

func (c *CustomTag) Labels() map[string]string

type GitCommit

type GitCommit struct {
	// contains filtered or unexported fields
}

GitCommit tags an image by the git commit it was built at.

func NewGitCommit added in v0.28.0

func NewGitCommit(taggerVariant string) (*GitCommit, error)

NewGitCommit creates a new git commit tagger. It fails if the tagger variant is invalid.

func (*GitCommit) GenerateFullyQualifiedImageName

func (c *GitCommit) GenerateFullyQualifiedImageName(workingDir string, imageName string) (string, error)

GenerateFullyQualifiedImageName tags an image with the supplied image name and the git commit.

func (*GitCommit) Labels added in v0.8.0

func (c *GitCommit) Labels() map[string]string

Labels are labels specific to the git tagger.

type ImageTags added in v0.23.0

type ImageTags map[string]string

ImageTags maps image names to tags

type Tagger

type Tagger interface {
	// Labels produces labels to indicate the used tagger in deployed pods.
	Labels() map[string]string

	// GenerateFullyQualifiedImageName resolves the fully qualified image name for an artifact.
	// The workingDir is the root directory of the artifact with respect to the Skaffold root,
	// and imageName is the base name of the image.
	GenerateFullyQualifiedImageName(workingDir string, imageName string) (string, error)
}

Tagger is an interface for tag strategies to be implemented against

func NewDateTimeTagger added in v0.7.0

func NewDateTimeTagger(format, timezone string) Tagger

NewDateTimeTagger creates a tagger from a date format and timezone.

func NewEnvTemplateTagger added in v0.4.0

func NewEnvTemplateTagger(t string) (Tagger, error)

NewEnvTemplateTagger creates a new envTemplateTagger

Jump to

Keyboard shortcuts

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