version

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Latest = "latest"
	Auto   = "auto" // current version or latest
)

Variables

View Source
var (
	Version string

	SHA256SUMSDownloadURLTemplate = "https://github.com/reproducible-containers/repro-get/releases/download/{{.Version}}/SHA256SUMS"
	LatestVersionURL              = "https://github.com/reproducible-containers/repro-get/releases/latest/download/VERSION"
)

Variables can be fulfilled on compilation time: -ldflags="-X github.com/reproducible-containers/repro-get/pkg/version.Version=v0.1.2"

Functions

func DetectLatest added in v0.1.3

func DetectLatest(ctx context.Context) (string, error)

func GetVersion

func GetVersion() string

Types

type Downloadable added in v0.1.3

type Downloadable struct {
	Version string
	SHASHA  string // the sha256sum of the SHA256SUMS file
}

func DetectDownloadable added in v0.1.3

func DetectDownloadable(ctx context.Context, version string) (*Downloadable, error)

Jump to

Keyboard shortcuts

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