info

package
v0.1.38 Latest Latest
Warning

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

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

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

	UpstreamREADMETagged = fmt.Sprintf(UpstreamREADMETemplate, Version)
)

Functions

This section is empty.

Types

type BuildInfoService added in v0.1.35

type BuildInfoService interface {
	// return the BuildInfo from Go build
	GetBuildInfo() (info *debug.BuildInfo, ok bool)
}
var DefaultBuildInfoService BuildInfoService = &DefaultBuildInfoServiceImpl{}

type DefaultBuildInfoServiceImpl added in v0.1.35

type DefaultBuildInfoServiceImpl struct {
}

func (*DefaultBuildInfoServiceImpl) GetBuildInfo added in v0.1.35

func (b *DefaultBuildInfoServiceImpl) GetBuildInfo() (info *debug.BuildInfo, ok bool)

type DefaultInfoServiceImpl added in v0.1.35

type DefaultInfoServiceImpl struct {
}

func (*DefaultInfoServiceImpl) GetVersion added in v0.1.35

func (i *DefaultInfoServiceImpl) GetVersion() string

type InfoService added in v0.1.35

type InfoService interface {
	// get the current binary version from available sources
	GetVersion() string
}
var DefaultInfoService InfoService = &DefaultInfoServiceImpl{}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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