version

package
v0.0.0-...-76b3e3d Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageVersion

type ImageVersion interface {
	GetTag() string
	Compare(string) (int, error)
}

func NewImageVersion

func NewImageVersion(tag string, tagFmt TagFormat) (ImageVersion, error)

NewImageVersion creates ImageVersion according to TagFormat

type SemanticImageVersion

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

func NewSemanticImageVersion

func NewSemanticImageVersion(tag string) (*SemanticImageVersion, error)

NewSemanticImageVersion creates SemanticImageVersion

func (*SemanticImageVersion) Compare

func (v *SemanticImageVersion) Compare(anotherTag string) (int, error)

Compare compares with the specified tag

func (*SemanticImageVersion) GetTag

func (v *SemanticImageVersion) GetTag() string

GetTag is a getter for getting tag members

type SerialImageVersion

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

func NewSerialImageVersion

func NewSerialImageVersion(tag string) (*SerialImageVersion, error)

NewSerialImageVersion creates SerialImageVersion

func (*SerialImageVersion) Compare

func (v *SerialImageVersion) Compare(anotherTag string) (int, error)

Compare compares with the specified tag

func (*SerialImageVersion) GetTag

func (v *SerialImageVersion) GetTag() string

GetTag is a getter for getting tag members

type TagFormat

type TagFormat int
const (
	TagFormatSerial TagFormat = iota
	TagFormatSemantic
)

Jump to

Keyboard shortcuts

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