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 ¶
func (c *ChecksumTagger) Labels() map[string]string
Labels are labels specific to the sha256 tagger.
type CustomTag ¶
type CustomTag struct {
Tag string
}
func (*CustomTag) GenerateFullyQualifiedImageName ¶
GenerateFullyQualifiedImageName tags an image with the custom tag
type GitCommit ¶
type GitCommit struct {
// contains filtered or unexported fields
}
GitCommit tags an image by the git commit it was built at.
func NewGitCommit ¶
NewGitCommit creates a new git commit tagger. It fails if the tagger variant is invalid.
type Tagger ¶
type Tagger interface { Labels() map[string]string GenerateFullyQualifiedImageName(workingDir string, imageName string) (string, error) }
Tagger is an interface for tag strategies to be implemented against
func NewDateTimeTagger ¶
NewDateTimeTagger creates a tagger from a date format and timezone.
func NewEnvTemplateTagger ¶
NewEnvTemplateTagger creates a new envTemplateTagger
Click to show internal directories.
Click to hide internal directories.