Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvironmentsKey = "environments" DefaultEnvironmentKey = "default_environment" NameKey = "name" OperatorEndpointKey = "operator_endpoint" )
View Source
const ( ErrEnvironmentNotConfigured = "cliconfig.environment_not_configured" ErrEnvironmentAlreadyConfigured = "cliconfig.environment_already_configured" ErrDuplicateEnvironmentNames = "cliconfig.duplicate_environment_names" )
Variables ¶
This section is empty.
Functions ¶
func CortexEndpointValidator ¶ added in v0.30.0
func ErrorEnvironmentAlreadyConfigured ¶ added in v0.35.0
Types ¶
type CLIConfig ¶
type CLIConfig struct { Telemetry *bool `json:"telemetry,omitempty" yaml:"telemetry,omitempty"` DefaultEnvironment *string `json:"default_environment" yaml:"default_environment"` Environments []*Environment `json:"environments" yaml:"environments"` }
func (*CLIConfig) ConvertToUserFacingCLIConfig ¶ added in v0.31.0
func (cliConfig *CLIConfig) ConvertToUserFacingCLIConfig() UserFacingCLIConfig
type Environment ¶
type Environment struct { Name string `json:"name" yaml:"name"` OperatorEndpoint string `json:"operator_endpoint" yaml:"operator_endpoint"` }
func (Environment) String ¶
func (env Environment) String(isDefault bool) string
func (*Environment) Validate ¶
func (env *Environment) Validate() error
type UserFacingCLIConfig ¶ added in v0.31.0
type UserFacingCLIConfig struct { DefaultEnvironment *string `json:"default_environment" yaml:"default_environment"` Environments []*Environment `json:"environments" yaml:"environments"` }
Click to show internal directories.
Click to hide internal directories.