cmd

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 60 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidProvider                      = "cli.invalid_provider"
	ErrNotSupportedInLocalEnvironment       = "cli.not_supported_in_local_environment"
	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"
	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"
	ErrOneAWSConfigFieldSet                 = "cli.one_aws_config_field_set"
	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"
	ErrClusterUpInProgress                  = "cli.cluster_up_in_progress"
	ErrClusterAlreadyCreated                = "cli.cluster_already_created"
	ErrClusterDownInProgress                = "cli.cluster_down_in_progress"
	ErrClusterAlreadyDeleted                = "cli.cluster_already_deleted"
	ErrFailedClusterStatus                  = "cli.failed_cluster_status"
	ErrClusterDoesNotExist                  = "cli.cluster_does_not_exist"
	ErrAWSCredentialsRequired               = "cli.aws_credentials_required"
	ErrClusterConfigOrPromptsRequired       = "cli.cluster_config_or_prompts_required"
	ErrClusterAccessConfigOrPromptsRequired = "cli.cluster_access_config_or_prompts_required"
	ErrShellCompletionNotSupported          = "cli.shell_completion_not_supported"
)

Variables

This section is empty.

Functions

func CreateBucketIfNotFound added in v0.15.0

func CreateBucketIfNotFound(awsClient *aws.Client, bucket string) error

func CreateLogGroupIfNotFound added in v0.15.0

func CreateLogGroupIfNotFound(awsClient *aws.Client, logGroup string) error

func ErrorAPINotReady added in v0.4.0

func ErrorAPINotReady(apiName string, status string) error

func ErrorAWSCredentialsRequired added in v0.16.0

func ErrorAWSCredentialsRequired() error

func ErrorClusterAccessConfigOrPromptsRequired added in v0.16.0

func ErrorClusterAccessConfigOrPromptsRequired() error

func ErrorClusterAlreadyCreated added in v0.15.0

func ErrorClusterAlreadyCreated(clusterName string, region string) error

func ErrorClusterAlreadyDeleted added in v0.15.0

func ErrorClusterAlreadyDeleted(clusterName string, region string) error

func ErrorClusterConfigOrPromptsRequired added in v0.16.0

func ErrorClusterConfigOrPromptsRequired() error

func ErrorClusterConfigure added in v0.17.0

func ErrorClusterConfigure(out string) error

func ErrorClusterDebug added in v0.15.0

func ErrorClusterDebug(out string) error

func ErrorClusterDoesNotExist added in v0.15.0

func ErrorClusterDoesNotExist(clusterName string, region string) error

func ErrorClusterDown added in v0.15.0

func ErrorClusterDown(out string) error

func ErrorClusterDownInProgress added in v0.15.0

func ErrorClusterDownInProgress(clusterName string, region string) error

func ErrorClusterInfo added in v0.15.0

func ErrorClusterInfo(out string) error

func ErrorClusterRefresh added in v0.15.0

func ErrorClusterRefresh(out string) error

func ErrorClusterUp added in v0.15.0

func ErrorClusterUp(out string) error

func ErrorClusterUpInProgress added in v0.15.0

func ErrorClusterUpInProgress(clusterName string, region string) error

func ErrorConnectToDockerDaemon added in v0.15.0

func ErrorConnectToDockerDaemon() error

func ErrorCortexYAMLNotFound added in v0.15.0

func ErrorCortexYAMLNotFound() error

func ErrorDockerCtrlC added in v0.15.0

func ErrorDockerCtrlC() error

func ErrorDockerPermissions added in v0.15.0

func ErrorDockerPermissions(err error) error

func ErrorEnvironmentNotFound added in v0.16.0

func ErrorEnvironmentNotFound(envName string) error

func ErrorFailedClusterStatus added in v0.15.0

func ErrorFailedClusterStatus(status clusterstate.Status, clusterName string, region string) error

func ErrorFieldNotFoundInEnvironment added in v0.16.0

func ErrorFieldNotFoundInEnvironment(fieldName string, envName string) error

unexpected error if code tries to create operator config from local environment

func ErrorInvalidOperatorEndpoint added in v0.15.0

func ErrorInvalidOperatorEndpoint(endpoint string) error

func ErrorInvalidProvider added in v0.16.0

func ErrorInvalidProvider(providerStr string) error

func ErrorNotSupportedInLocalEnvironment added in v0.16.0

func ErrorNotSupportedInLocalEnvironment() error

func ErrorOneAWSConfigFieldSet added in v0.15.0

func ErrorOneAWSConfigFieldSet(setConfigField string, missingConfigField string, configPath string) error

func ErrorOneAWSEnvVarSet added in v0.15.0

func ErrorOneAWSEnvVarSet(setEnvVar string, missingEnvVar string) 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 ErrorResponseUnknown(body string, statusCode int) error

func ErrorShellCompletionNotSupported added in v0.17.0

func ErrorShellCompletionNotSupported(shell string) error

func Execute

func Execute()

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"`
	CortexAWSAccessKeyID     string `json:"cortex_aws_access_key_id"`
	CortexAWSSecretAccessKey string `json:"cortex_aws_secret_access_key"`
}

Jump to

Keyboard shortcuts

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