cmd

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 65 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidProvider                     = "cli.invalid_provider"
	ErrInvalidLegacyProvider               = "cli.invalid_legacy_provider"
	ErrNoAvailableEnvironment              = "cli.no_available_environment"
	ErrEnvironmentNotSet                   = "cli.environment_not_set"
	ErrEnvironmentNotFound                 = "cli.environment_not_found"
	ErrFieldNotFoundInEnvironment          = "cli.field_not_found_in_environment"
	ErrInvalidOperatorEndpoint             = "cli.invalid_operator_endpoint"
	ErrNoOperatorLoadBalancer              = "cli.no_operator_load_balancer"
	ErrCortexYAMLNotFound                  = "cli.cortex_yaml_not_found"
	ErrDockerCtrlC                         = "cli.docker_ctrl_c"
	ErrResponseUnknown                     = "cli.response_unknown"
	ErrMissingAWSCredentials               = "cli.missing_aws_credentials"
	ErrCredentialsInClusterConfig          = "cli.credentials_in_cluster_config"
	ErrClusterUp                           = "cli.cluster_up"
	ErrClusterConfigure                    = "cli.cluster_configure"
	ErrClusterDebug                        = "cli.cluster_debug"
	ErrClusterRefresh                      = "cli.cluster_refresh"
	ErrClusterDown                         = "cli.cluster_down"
	ErrSpecifyAtLeastOneFlag               = "cli.specify_at_least_one_flag"
	ErrMinInstancesLowerThan               = "cli.min_instances_lower_than"
	ErrMaxInstancesLowerThan               = "cli.max_instances_lower_than"
	ErrMinInstancesGreaterThanMaxInstances = "cli.min_instances_greater_than_max_instances"
	ErrNodeGroupNotFound                   = "cli.nodegroup_not_found"
	ErrMutuallyExclusiveFlags              = "cli.mutually_exclusive_flags"
	ErrClusterAccessConfigRequired         = "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"
	ErrAPINameMustBeProvided               = "cli.api_name_must_be_provided"
	ErrAPINotFoundInConfig                 = "cli.api_not_found_in_config"
	ErrClusterUIDsLimitInBucket            = "cli.cluster_uids_limit_in_bucket"
)

Variables

This section is empty.

Functions

func ErrorAPINameMustBeProvided added in v0.34.0

func ErrorAPINameMustBeProvided() error

func ErrorAPINotFoundInConfig added in v0.34.0

func ErrorAPINotFoundInConfig(apiName string) error

func ErrorClusterAccessConfigRequired added in v0.31.0

func ErrorClusterAccessConfigRequired(cliFlagsOnly bool) 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 ErrorClusterDown added in v0.15.0

func ErrorClusterDown(out string) error

func ErrorClusterRefresh added in v0.15.0

func ErrorClusterRefresh(out string) error

func ErrorClusterUIDsLimitInBucket added in v0.35.0

func ErrorClusterUIDsLimitInBucket(bucket string) error

func ErrorClusterUp added in v0.15.0

func ErrorClusterUp(out string) error

func ErrorCortexYAMLNotFound added in v0.15.0

func ErrorCortexYAMLNotFound() error

func ErrorDeployFromTopLevelDir added in v0.18.0

func ErrorDeployFromTopLevelDir(genericDirName string) error

func ErrorDockerCtrlC added in v0.15.0

func ErrorDockerCtrlC() error

func ErrorEnvironmentNotFound added in v0.16.0

func ErrorEnvironmentNotFound(envName string) error

func ErrorEnvironmentNotSet added in v0.26.0

func ErrorEnvironmentNotSet() error

func ErrorFieldNotFoundInEnvironment added in v0.16.0

func ErrorFieldNotFoundInEnvironment(fieldName string, envName string) error

func ErrorInvalidLegacyProvider added in v0.26.0

func ErrorInvalidLegacyProvider(providerStr, cliConfigPath string) error

func ErrorInvalidOperatorEndpoint added in v0.15.0

func ErrorInvalidOperatorEndpoint(endpoint string) error

func ErrorInvalidProvider added in v0.16.0

func ErrorInvalidProvider(providerStr, cliConfigPath string) error

func ErrorMaxInstancesLowerThan added in v0.33.0

func ErrorMaxInstancesLowerThan(minValue int64) error

func ErrorMinInstancesGreaterThanMaxInstances added in v0.33.0

func ErrorMinInstancesGreaterThanMaxInstances(minInstances, maxInstances int64) error

func ErrorMinInstancesLowerThan added in v0.33.0

func ErrorMinInstancesLowerThan(minValue int64) error

func ErrorMutuallyExclusiveFlags added in v0.37.0

func ErrorMutuallyExclusiveFlags(flagA, flagB string) error

func ErrorNoAvailableEnvironment added in v0.26.0

func ErrorNoAvailableEnvironment() error

func ErrorNoOperatorLoadBalancer added in v0.20.0

func ErrorNoOperatorLoadBalancer(whichLB string) error

func ErrorNoTerminalWidth added in v0.18.0

func ErrorNoTerminalWidth() error

func ErrorNodeGroupNotFound added in v0.33.0

func ErrorNodeGroupNotFound(scalingNodeGroupName, clusterName, clusterRegion string, availableNodeGroups []string) 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 ErrorSpecifyAtLeastOneFlag added in v0.33.0

func ErrorSpecifyAtLeastOneFlag(flagsToSpecify ...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 LoadBalancer added in v0.34.0

type LoadBalancer string
var (
	OperatorLoadBalancer LoadBalancer = "operator"
	APILoadBalancer      LoadBalancer = "api"
)

func (LoadBalancer) String added in v0.34.0

func (lb LoadBalancer) String() string

Jump to

Keyboard shortcuts

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