Documentation
¶
Index ¶
- Variables
- func GetImageNameAndVersion(name string) (string, *types.Version, error)
- func GetVersion(version string) (*types.Version, error)
- func GetVersionFromImageName(name string) (*types.Version, error)
- func Lowest(tags []string) string
- func MustParse(version string) *types.Version
- func NewAvailable(current string, tags []string, matchPreRelease bool) (newVersion string, newAvailable bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSemVer = errors.New("invalid semantic version")
ErrInvalidSemVer is returned a version is found to be invalid when being parsed.
View Source
var ErrNoMajorMinorPatchElementsFound = errors.New("No Major.Minor.Patch elements found")
View Source
var ErrVersionTagMissing = errors.New("version tag is missing")
ErrVersionTagMissing - tag missing error
Functions ¶
func GetImageNameAndVersion ¶
GetImageNameAndVersion - get name and version
func GetVersion ¶
GetVersion - parse version
func GetVersionFromImageName ¶
GetVersionFromImageName - get version from image name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.