update

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UpdateTypePatch represents patch update type
	UpdateTypePatch = iota
	// UpdateTypeMinor represents minor update type
	UpdateTypeMinor
	// UpdateTypeDate represents date update type
	UpdateTypeDate
	// UpdateTypePinned represents pinned update type
	UpdateTypePinned
)

Variables

This section is empty.

Functions

func ComparePackages added in v0.2.1

func ComparePackages(a, b []string) bool

ComparePackages compares the devVersions and the runtimeVersions

func GetDateBasedVersion added in v0.2.1

func GetDateBasedVersion(v *buildsafev1.FetchPackagesResponse) string

GetDateBasedVersion returns the latest date version for the given version.

func GetLatestMinorVersion

func GetLatestMinorVersion(v *buildsafev1.FetchPackagesResponse, version string) string

GetLatestMinorVersion returns the latest minor version for the given version.

func GetLatestPatchVersion

func GetLatestPatchVersion(v *buildsafev1.FetchPackagesResponse, version string) string

GetLatestPatchVersion returns the latest patch version for the given version.

func ParsePackage

func ParsePackage(pkg string) (name, version string)

ParsePackage parses the package as given in bsf.hcl and returns the name and version. It removes the update type information.

func ParseUpdateType

func ParseUpdateType(pkg string) int

ParseUpdateType parses the update type of the package

func TrimVersionInfo

func TrimVersionInfo(pkg string) (string, string)

TrimVersionInfo trims the version information and returns the package name and version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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