packaging

package
v0.0.0-testrgm3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 21 Imported by: 1

Documentation

Overview

Package packaging holds functions and types for creating the tar.gz, deb, and rpm packages of Grafana.

Index

Constants

View Source
const (
	DefaultDebDBBucket   = "grafana-aptly-db"
	DefaultDebRepoBucket = "grafana-repo"
	DefaultRPMRepoBucket = "grafana-repo"
	DefaultTTLSeconds    = "300"
)
View Source
const CacheSettings = "Cache-Control:public, max-age="
View Source
const EnterpriseSfx = "-enterprise"
View Source
const MainFolder = "main"
View Source
const ReleaseFolder = "release"

Variables

View Source
var (
	ErrorNoBinaries = errors.New("no binaries found")
	ErrorNoDebArch  = errors.New("deb architecture not defined")
	ErrorNoRPMArch  = errors.New("rpm architecture not defined")
)
View Source
var ArtifactConfigs = []buildArtifact{
	{
		Os:   debOS,
		Arch: "arm64",
		// contains filtered or unexported fields
	},
	{
		Os:   rhelOS,
		Arch: "arm64",
		// contains filtered or unexported fields
	},
	{
		Os:   "linux",
		Arch: "arm64",
		// contains filtered or unexported fields
	},
	{
		Os:   debOS,
		Arch: "armv7",
		// contains filtered or unexported fields
	},
	{
		Os:   debOS,
		Arch: "armv6",
		// contains filtered or unexported fields
	},
	{
		Os:   rhelOS,
		Arch: "armv7",
		// contains filtered or unexported fields
	},
	{
		Os:   "linux",
		Arch: "armv6",
		// contains filtered or unexported fields
	},
	{
		Os:   "linux",
		Arch: "armv7",
		// contains filtered or unexported fields
	},
	{
		Os:   "darwin",
		Arch: "amd64",
		// contains filtered or unexported fields
	},
	{
		Os:   "deb",
		Arch: "amd64",
		// contains filtered or unexported fields
	},
	{
		Os:   rhelOS,
		Arch: "amd64",
		// contains filtered or unexported fields
	},
	{
		Os:   "linux",
		Arch: "amd64",
		// contains filtered or unexported fields
	},
	{
		Os:   "win",
		Arch: "amd64",
		// contains filtered or unexported fields
	},
	{
		Os:   "win-installer",
		Arch: "amd64",
		// contains filtered or unexported fields
	},
}

Functions

func PackageGrafana

func PackageGrafana(
	ctx context.Context,
	version string,
	grafanaDir string,
	cfg config.Config,
	edition config.Edition,
	variants []config.Variant,
	shouldSign bool,
	p syncutil.WorkerPool,
) error

PackageGrafana packages Grafana for various variants.

func PackageRegexp

func PackageRegexp(edition config.Edition) *regexp.Regexp

PackageRegexp returns a regexp for matching packages corresponding to a certain Grafana edition.

Types

type PublishConfig

type PublishConfig struct {
	config.Config

	Edition         config.Edition
	ReleaseMode     config.ReleaseMode
	GrafanaAPIKey   string
	WhatsNewURL     string
	ReleaseNotesURL string
	DryRun          bool
	TTL             string
	SimulateRelease bool
}

Jump to

Keyboard shortcuts

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