version

package
v0.0.134 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLatestVersionSequence

func FindLatestVersionSequence(shortSha string, artifacts []string) int

FindLatestVersionSequence takes the provided shortSha and finds any versions in the list of artifacts

a match is any artifact that starts with the shortSha
this will return the largest sequence number found
if no matches are found, this will return 0

Types

type Info added in v0.0.122

type Info struct {
	CommitSha string
	Version   string
}

func CalcNew added in v0.0.122

func CalcNew(ctx context.Context, pusher app.Pusher) (Info, error)

func GetCurrent added in v0.0.122

func GetCurrent(ctx context.Context, pusher app.Pusher) (Info, error)

func (Info) ShortCommitSha added in v0.0.122

func (i Info) ShortCommitSha() string

Jump to

Keyboard shortcuts

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