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: 0

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