Documentation ¶
Overview ¶
Package build contains the command / functions for the Grafana build process used when running the "build" target in the makefile
Index ¶
Constants ¶
View Source
const ( GoOSWindows = "windows" GoOSLinux = "linux" BackendBinary = "grafana" ServerBinary = "grafana-server" CLIBinary = "grafana-cli" )
Variables ¶
This section is empty.
Functions ¶
func LinuxPackageVersion ¶
LinuxPackageVersion extracts the linux package version and iteration out of the version string. The version string is likely extracted from the package JSON.
Types ¶
type BuildOpts ¶
type BuildOpts struct {
// contains filtered or unexported fields
}
BuildOpts are options provided to the build step
func BuildOptsFromFlags ¶
func BuildOptsFromFlags() BuildOpts
BuildOptsFromFlags reads the cmd args to assemble a BuildOpts object. This function calls flag.Parse()
type PackageJSON ¶
type PackageJSON struct {
Version string `json:"version"`
}
func OpenPackageJSON ¶
func OpenPackageJSON(dir string) (PackageJSON, error)
Opens the package.json file in the provided directory and returns a struct that represents its contents
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package verifystorybook contains the sub-command "verify-storybook".
|
Package verifystorybook contains the sub-command "verify-storybook". |
Package droneutil provides utility functions for working with Drone.
|
Package droneutil provides utility functions for working with Drone. |
Package golangutils holds utility functions, wrappers, and types for building Go binaries for Grafana.
|
Package golangutils holds utility functions, wrappers, and types for building Go binaries for Grafana. |
Package packaging holds functions and types for creating the tar.gz, deb, and rpm packages of Grafana.
|
Package packaging holds functions and types for creating the tar.gz, deb, and rpm packages of Grafana. |
Package validation provides functions and types for validating Grafana releases in both the pre-release and post-release phases.
|
Package validation provides functions and types for validating Grafana releases in both the pre-release and post-release phases. |
wire
module
|
Click to show internal directories.
Click to hide internal directories.