constants

package
v0.0.0-...-5a6e959 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package constants contains constants and variables used throughout the module for default settings and commonly used names

Index

Constants

View Source
const (
	// GithubHost is the host for Github repositories
	GithubHost = "github.com"

	// TarMethod indicates that the artifact is in TAR archive format
	TarMethod = "tar"

	// GunzipCompression indicates that the artifact is compressed with gunzip
	GunzipCompression = "gz"
)
View Source
const (
	// ReadyStatus indicates that all actions on a resource are resolved
	ReadyStatus = "ready"

	// FailedStatus indicates that some actions on a resource have failed and it can't be automatically recovered
	FailedStatus = "failed"

	// ProcessingStatus indicates that some actions are currently underway on a resource and have not yet resolved
	ProcessingStatus = "processing"
)
View Source
const (
	// Releases indicates that tags which have an associated release are valid for app installation and upgrade
	Releases = "releases"

	// PreReleases indicates that tags which are marked as pre-release are valid for app installation and upgrade
	PreReleases = "pre-releases"

	// Tags indicates that tags without releases associated with them are valid for app installation and upgrade
	Tags = "tags"
)
View Source
const Version = "prototype"

Variables

View Source
var (
	// DefaultPackageRepository indicates the URL of the default repository used to fetch packages
	DefaultPackageRepository = "https://packages.gpkg.dev"

	// DefaultContentType is the mime type expected for downloaded artifacts
	DefaultContentType = "application/octet-stream"

	// DefaultBaseDir is the default directory where packages will be installed and maintained
	DefaultBaseDir = ".local/gpkg"

	// LatestVersion can be provided as the desired package version when you just want the latest release/prerelease/tag
	LatestVersion = semver.MustParse("0.0.0")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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