tag

package
v0.0.0-...-9578d5d Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAJOR Level = 0
	MINOR       = 1
	PATCH       = 2
)

Variables

This section is empty.

Functions

func GetNextVersion

func GetNextVersion(reference name.Tag, pin *Level, latest bool) (*name.Tag, error)

func GetNextVersions

func GetNextVersions(references []name.Reference, within *Level, latest bool) ([]name.Reference, error)

func HasSameMajorLevel

func HasSameMajorLevel(t, o Tag) bool

func HasSameMinorLevel

func HasSameMinorLevel(t, o Tag) bool

func HasSamePatchLevel

func HasSamePatchLevel(t, o Tag) bool

Types

type Level

type Level int

func MakeLevelFromString

func MakeLevelFromString(s string) (Level, error)

func (Level) String

func (l Level) String() string

type Tag

type Tag struct {
	Literal  string
	Prefix   string
	Suffix   string
	Version  []int
	Category string
}

func GetAllSuccessors

func GetAllSuccessors(reference name.Reference, pin *Level) ([]Tag, error)

func GetAllSuccessorsByString

func GetAllSuccessorsByString(reference string, pin *Level) ([]Tag, error)

func ListAllTags

func ListAllTags(reference string) ([]Tag, error)

func MakeTag

func MakeTag(tag string) Tag

func (Tag) Compare

func (a Tag) Compare(b Tag) int

func (Tag) Equals

func (a Tag) Equals(b Tag) bool

func (Tag) IsPatchLevel

func (t Tag) IsPatchLevel() bool

func (Tag) String

func (t Tag) String() string

type TagCategories

type TagCategories map[string]Tags

func MakeTagCategories

func MakeTagCategories(tags Tags) TagCategories

type Tags

type Tags []Tag

func GetTagsFromCache

func GetTagsFromCache(reference name.Tag) (Tags, error)

func (Tags) FilterByLevel

func (l Tags) FilterByLevel(tag Tag, level Level) (result Tags)

func (Tags) FilterSameMinorVersion

func (l Tags) FilterSameMinorVersion(tag Tag) Tags

func (Tags) FindGreaterThan

func (l Tags) FindGreaterThan(tag Tag) Tags

func (Tags) FindHighestPatchLevel

func (l Tags) FindHighestPatchLevel(tag Tag) *Tag

func (Tags) Len

func (a Tags) Len() int

func (Tags) Less

func (a Tags) Less(i, j int) bool

func (Tags) Swap

func (a Tags) Swap(i, j int)

Jump to

Keyboard shortcuts

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