info

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Environment Variables
	BackplaneURLEnvName        = "BACKPLANE_URL"
	BackplaneProxyEnvName      = "HTTPS_PROXY"
	BackplaneConfigPathEnvName = "BACKPLANE_CONFIG"
	BackplaneKubeconfigEnvName = "KUBECONFIG"

	// Configuration
	BackplaneConfigDefaultFilePath = ".config/backplane"
	BackplaneConfigDefaultFileName = "config.json"

	// Session
	BackplaneDefaultSessionDirectory = "backplane"

	// GitHub API get fetch the latest tag
	UpstreamReleaseAPI = "https://api.github.com/repos/openshift/backplane-cli/releases/latest"

	// Upstream git module
	UpstreamGitModule = "https://github.com/openshift/backplane-cli/cmd/ocm-backplane"

	// GitHub README page
	UpstreamREADMETemplate = "https://github.com/openshift/backplane-cli/-/blob/%s/README.md"

	// GitHub Host
	GitHubHost = "github.com"

	// Nginx configuration template for monitoring-plugin
	MonitoringPluginNginxConfigTemplate = `` /* 266-byte string literal not displayed */

	MonitoringPluginNginxConfigFilename = "monitoring-plugin-nginx-%s.conf"
)

Variables

View Source
var (
	// Version of the backplane-cli
	// This will be set via Goreleaser during the build process
	Version string

	// ReadBuildInfo is a function that read the build info from go build.
	ReadBuildInfo = debug.ReadBuildInfo

	UpstreamREADMETagged = fmt.Sprintf(UpstreamREADMETemplate, Version)
)

Functions

This section is empty.

Types

type DefaultInfoServiceImpl added in v0.1.37

type DefaultInfoServiceImpl struct {
}

func (*DefaultInfoServiceImpl) GetBuildVersion added in v0.1.37

func (i *DefaultInfoServiceImpl) GetBuildVersion() string

type InfoService added in v0.1.37

type InfoService interface {
	// get the version of the current build
	GetBuildVersion() string
}
var DefaultInfoService InfoService = &DefaultInfoServiceImpl{}

Jump to

Keyboard shortcuts

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