tag

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 13 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 {
	ImageName string
	Checksum  string
}

ChecksumTagger tags an image by the sha256 of the image tarball

func (*ChecksumTagger) GenerateFullyQualifiedImageName

func (c *ChecksumTagger) GenerateFullyQualifiedImageName(workingDir string, opts *TagOptions) (string, error)

GenerateFullyQualifiedImageName tags an image with the supplied image name and the sha256 checksum of the image

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 string, opts *TagOptions) (string, error)

GenerateFullyQualifiedImageName tags an image with the custom tag

type EnvTemplateTagger added in v0.4.0

type EnvTemplateTagger struct {
	Template *template.Template
}

EnvTemplateTagger implements Tag

func NewEnvTemplateTagger added in v0.4.0

func NewEnvTemplateTagger(t string) (*EnvTemplateTagger, error)

NewEnvTemplateTagger creates a new EnvTemplateTagger

func (*EnvTemplateTagger) GenerateFullyQualifiedImageName added in v0.4.0

func (c *EnvTemplateTagger) GenerateFullyQualifiedImageName(workingDir string, opts *TagOptions) (string, error)

GenerateFullyQualifiedImageName tags an image with the custom tag

type GitCommit

type GitCommit struct {
}

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

func (*GitCommit) GenerateFullyQualifiedImageName

func (c *GitCommit) GenerateFullyQualifiedImageName(workingDir string, opts *TagOptions) (string, error)

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

type TagOptions

type TagOptions struct {
	ImageName string
	Digest    string
}

type Tagger

type Tagger interface {
	GenerateFullyQualifiedImageName(workingDir string, tagOpts *TagOptions) (string, error)
}

Tagger is an interface for tag strategies to be implemented against

Jump to

Keyboard shortcuts

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