Documentation ¶
Index ¶
- Constants
- func ErrorAPINotReady(apiName string, status string) error
- func ErrorClusterAccessConfigOrPromptsRequired() error
- func ErrorClusterConfigOrPromptsRequired() error
- func ErrorClusterConfigure(out string) error
- func ErrorClusterDebug(out string) error
- func ErrorClusterDown(out string) error
- func ErrorClusterInfo(out string) error
- func ErrorClusterRefresh(out string) error
- func ErrorClusterUp(out string) error
- func ErrorCommandNotSupportedForKind(kind userconfig.Kind, command string) error
- func ErrorConnectToDockerDaemon() error
- func ErrorCortexYAMLNotFound() error
- func ErrorCredentialsInClusterConfig(cmd string, path string) error
- func ErrorDeployFromTopLevelDir(genericDirName string, providerType types.ProviderType) error
- func ErrorDockerCtrlC() error
- func ErrorDockerPermissions(err error) error
- func ErrorEnvironmentNotFound(envName string) error
- func ErrorFieldNotFoundInEnvironment(fieldName string, envName string) error
- func ErrorInvalidOperatorEndpoint(endpoint string) error
- func ErrorInvalidProvider(providerStr string) error
- func ErrorLocalEnvironmentCantUseAWSProvider() error
- func ErrorMissingAWSCredentials() error
- func ErrorNoOperatorLoadBalancer() error
- func ErrorNoTerminalWidth() error
- func ErrorNotSupportedInLocalEnvironment() error
- func ErrorOneAWSEnvVarSet(setEnvVar string, missingEnvVar string) error
- func ErrorOneAWSFlagSet(setFlag string, missingFlag string) error
- func ErrorOnlyAWSClusterEnvVarSet() error
- func ErrorOnlyAWSClusterFlagSet() error
- func ErrorOperatorConfigFromLocalEnvironment() error
- func ErrorOperatorEndpointInLocalEnvironment() error
- func ErrorResponseUnknown(body string, statusCode int) error
- func ErrorShellCompletionNotSupported(shell string) error
- func Execute()
- func MustGetOperatorConfig(envName string) cluster.OperatorConfig
- func ReadOrConfigureEnv(envName string) (cliconfig.Environment, error)
- type AWSCredentials
Constants ¶
View Source
const ( ErrInvalidProvider = "cli.invalid_provider" ErrNotSupportedInLocalEnvironment = "cli.not_supported_in_local_environment" ErrLocalEnvironmentCantUseAWSProvider = "cli.local_environment_cant_use_aws_provider" ErrCommandNotSupportedForKind = "cli.command_not_supported_for_kind" ErrEnvironmentNotFound = "cli.environment_not_found" ErrOperatorEndpointInLocalEnvironment = "cli.operator_endpoint_in_local_environment" ErrOperatorConfigFromLocalEnvironment = "cli.operater_config_from_local_environment" ErrFieldNotFoundInEnvironment = "cli.field_not_found_in_environment" ErrInvalidOperatorEndpoint = "cli.invalid_operator_endpoint" ErrNoOperatorLoadBalancer = "cli.no_operator_load_balancer" ErrCortexYAMLNotFound = "cli.cortex_yaml_not_found" ErrConnectToDockerDaemon = "cli.connect_to_docker_daemon" ErrDockerPermissions = "cli.docker_permissions" ErrDockerCtrlC = "cli.docker_ctrl_c" ErrResponseUnknown = "cli.response_unknown" ErrAPINotReady = "cli.api_not_ready" ErrOneAWSEnvVarSet = "cli.one_aws_env_var_set" ErrOneAWSFlagSet = "cli.one_aws_flag_set" ErrOnlyAWSClusterEnvVarSet = "cli.only_aws_cluster_env_var_set" ErrOnlyAWSClusterFlagSet = "cli.only_aws_cluster_flag_set" ErrMissingAWSCredentials = "cli.missing_aws_credentials" ErrCredentialsInClusterConfig = "cli.credentials_in_cluster_config" ErrClusterUp = "cli.cluster_up" ErrClusterConfigure = "cli.cluster_configure" ErrClusterInfo = "cli.cluster_info" ErrClusterDebug = "cli.cluster_debug" ErrClusterRefresh = "cli.cluster_refresh" ErrClusterDown = "cli.cluster_down" ErrDuplicateCLIEnvNames = "cli.duplicate_cli_env_names" ErrClusterConfigOrPromptsRequired = "cli.cluster_config_or_prompts_required" ErrClusterAccessConfigOrPromptsRequired = "cli.cluster_access_config_or_prompts_required" ErrShellCompletionNotSupported = "cli.shell_completion_not_supported" ErrNoTerminalWidth = "cli.no_terminal_width" ErrDeployFromTopLevelDir = "cli.deploy_from_top_level_dir" )
Variables ¶
This section is empty.
Functions ¶
func ErrorAPINotReady ¶ added in v0.4.0
func ErrorClusterAccessConfigOrPromptsRequired ¶ added in v0.16.0
func ErrorClusterAccessConfigOrPromptsRequired() error
func ErrorClusterConfigOrPromptsRequired ¶ added in v0.16.0
func ErrorClusterConfigOrPromptsRequired() error
func ErrorClusterConfigure ¶ added in v0.17.0
func ErrorClusterDebug ¶ added in v0.15.0
func ErrorClusterDown ¶ added in v0.15.0
func ErrorClusterInfo ¶ added in v0.15.0
func ErrorClusterRefresh ¶ added in v0.15.0
func ErrorClusterUp ¶ added in v0.15.0
func ErrorCommandNotSupportedForKind ¶ added in v0.19.0
func ErrorCommandNotSupportedForKind(kind userconfig.Kind, command string) error
func ErrorConnectToDockerDaemon ¶ added in v0.15.0
func ErrorConnectToDockerDaemon() error
func ErrorCortexYAMLNotFound ¶ added in v0.15.0
func ErrorCortexYAMLNotFound() error
func ErrorCredentialsInClusterConfig ¶ added in v0.20.0
Deprecation: specifying aws creds in cluster configuration is no longer supported
func ErrorDeployFromTopLevelDir ¶ added in v0.18.0
func ErrorDeployFromTopLevelDir(genericDirName string, providerType types.ProviderType) error
func ErrorDockerCtrlC ¶ added in v0.15.0
func ErrorDockerCtrlC() error
func ErrorDockerPermissions ¶ added in v0.15.0
func ErrorEnvironmentNotFound ¶ added in v0.16.0
func ErrorFieldNotFoundInEnvironment ¶ added in v0.16.0
unexpected error if code tries to create operator config from local environment
func ErrorInvalidOperatorEndpoint ¶ added in v0.15.0
func ErrorInvalidProvider ¶ added in v0.16.0
func ErrorLocalEnvironmentCantUseAWSProvider ¶ added in v0.22.0
func ErrorLocalEnvironmentCantUseAWSProvider() error
func ErrorMissingAWSCredentials ¶ added in v0.20.0
func ErrorMissingAWSCredentials() error
func ErrorNoOperatorLoadBalancer ¶ added in v0.20.0
func ErrorNoOperatorLoadBalancer() error
func ErrorNoTerminalWidth ¶ added in v0.18.0
func ErrorNoTerminalWidth() error
func ErrorNotSupportedInLocalEnvironment ¶ added in v0.16.0
func ErrorNotSupportedInLocalEnvironment() error
func ErrorOneAWSEnvVarSet ¶ added in v0.15.0
func ErrorOneAWSFlagSet ¶ added in v0.20.0
func ErrorOnlyAWSClusterEnvVarSet ¶ added in v0.21.0
func ErrorOnlyAWSClusterEnvVarSet() error
func ErrorOnlyAWSClusterFlagSet ¶ added in v0.21.0
func ErrorOnlyAWSClusterFlagSet() error
func ErrorOperatorConfigFromLocalEnvironment ¶ added in v0.16.0
func ErrorOperatorConfigFromLocalEnvironment() error
unexpected error if code tries to create operator config from local environment
func ErrorOperatorEndpointInLocalEnvironment ¶ added in v0.16.0
func ErrorOperatorEndpointInLocalEnvironment() error
func ErrorResponseUnknown ¶ added in v0.15.0
func ErrorShellCompletionNotSupported ¶ added in v0.17.0
func MustGetOperatorConfig ¶ added in v0.16.0
func MustGetOperatorConfig(envName string) cluster.OperatorConfig
func ReadOrConfigureEnv ¶ added in v0.16.0
func ReadOrConfigureEnv(envName string) (cliconfig.Environment, error)
Types ¶
type AWSCredentials ¶ added in v0.10.0
type AWSCredentials struct { AWSAccessKeyID string `json:"aws_access_key_id"` AWSSecretAccessKey string `json:"aws_secret_access_key"` ClusterAWSAccessKeyID string `json:"cluster_aws_access_key_id"` ClusterAWSSecretAccessKey string `json:"cluster_aws_secret_access_key"` }
func (*AWSCredentials) ContainsCreds ¶ added in v0.18.0
func (awsCreds *AWSCredentials) ContainsCreds(accessKeyID string, secretAccessKey string) bool
Returns true if the provided credentials match either the operator or the CLI credentials
func (*AWSCredentials) MaskedString ¶ added in v0.20.0
func (awsCreds *AWSCredentials) MaskedString() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.