tag

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 7 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(opts *TagOptions) (string, error)

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

type GitCommit

type GitCommit struct {
}

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

func (*GitCommit) GenerateFullyQualifiedImageName

func (c *GitCommit) GenerateFullyQualifiedImageName(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(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