bluemix

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EnvTrace is the environment variable `IBMCLOUD_TRACE` and `BLUEMIX_TRACE` (deprecated)
	EnvTrace = newEnv("IBMCLOUD_TRACE", "BLUEMIX_TRACE")
	// EnvColor is the environment variable `IBMCLOUD_COLOR` and `BLUEMIX_COLOR` (deprecated)
	EnvColor = newEnv("IBMCLOUD_COLOR", "BLUEMIX_COLOR")
	// EnvVersionCheck is the environment variable `IBMCLOUD_VERSION_CHECK` and `BLUEMIX_VERSION_CHECK` (deprecated)
	EnvVersionCheck = newEnv("IBMCLOUD_VERSION_CHECK", "BLUEMIX_VERSION_CHECK")
	// EnvAnalytics is the environment variable `IBMCLOUD_ANALYTICS` and `BLUEMIX_ANALYTICS` (deprecated)
	EnvAnalytics = newEnv("IBMCLOUD_ANALYTICS", "BLUEMIX_ANALYTICS")
	// EnvHTTPTimeout is the environment variable `IBMCLOUD_HTTP_TIMEOUT` and `BLUEMIX_HTTP_TIMEOUT` (deprecated)
	EnvHTTPTimeout = newEnv("IBMCLOUD_HTTP_TIMEOUT", "BLUEMIX_HTTP_TIMEOUT")
	// EnvAPIKey is the environment variable `IBMCLOUD_API_KEY` and `BLUEMIX_API_KEY` (deprecated)
	EnvAPIKey = newEnv("IBMCLOUD_API_KEY", "BLUEMIX_API_KEY")
	// EnvCRToken is the environment variable `IBMCLOUD_CR_TOKEN`
	EnvCRTokenKey = newEnv("IBMCLOUD_CR_TOKEN")
	// EnvCRProfile is the environment variable `IBMCLOUD_CR_PROFILE`
	EnvCRProfile = newEnv("IBMCLOUD_CR_PROFILE")
	// EnvCRVpcUrl is the environment variable `IBMCLOUD_CR_VPC_URL`
	EnvCRVpcUrl = newEnv("IBMCLOUD_CR_VPC_URL")
	// EnvConfigHome is the environment variable `IBMCLOUD_HOME` and `BLUEMIX_HOME` (deprecated)
	EnvConfigHome = newEnv("IBMCLOUD_HOME", "BLUEMIX_HOME")
	// EnvConfigDir is the environment variable `IBMCLOUD_CONFIG_HOME`
	EnvConfigDir = newEnv("IBMCLOUD_CONFIG_HOME")
	// EnvQuiet is the environment variable `IBMCLOUD_QUIET`
	EnvQuiet = newEnv("IBMCLOUD_QUIET")

	// for internal use
	EnvCLIName         = newEnv("IBMCLOUD_CLI", "BLUEMIX_CLI")
	EnvPluginNamespace = newEnv("IBMCLOUD_PLUGIN_NAMESPACE", "BLUEMIX_PLUGIN_NAMESPACE")
)
View Source
var Version = VersionType{Major: 0, Minor: 8, Build: 2}

Version is the SDK version

Functions

This section is empty.

Types

type Env added in v0.2.0

type Env struct {
	// contains filtered or unexported fields
}

Env is an environment variable supported by IBM Cloud CLI for specific purpose An Env could be bound to multiple environment variables due to historical reasons (i.e. renaming) Make sure you define the latest environment variable first

func (Env) Get added in v0.2.0

func (e Env) Get() string

Get will return the value of the environment variable, the first found non-empty value will be returned

func (Env) Set added in v0.2.0

func (e Env) Set(val string) error

Set will set the value to **ALL** belonging environment variables

type VersionType

type VersionType struct {
	Major int // major version
	Minor int // minor version
	Build int // build number
}

VersionType describe version info

func (VersionType) String

func (v VersionType) String() string

String will return the version in semver format string "Major.Minor.Build"

Directories

Path Synopsis
iam
uaa
vpc
config_helpers
Package config_helpers provides helper functions to locate configuration files.
Package config_helpers provides helper functions to locate configuration files.
core_config
Package core_config provides functions to load core configuration.
Package core_config provides functions to load core configuration.

Jump to

Keyboard shortcuts

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