cmd

package
v0.0.0-...-1b83794 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFileKey                = "CONFIG_FILE"
	OpsManagerURLKey             = "OPS_MANAGER_URL"
	OpsManagerURLAliasKey        = "TARGET"
	OpsManagerUsernameKey        = "OPS_MANAGER_USERNAME"
	OpsManagerPasswordKey        = "OPS_MANAGER_PASSWORD"
	OpsManagerClientIdKey        = "OPS_MANAGER_CLIENT_ID"
	OpsManagerClientSecretKey    = "OPS_MANAGER_CLIENT_SECRET"
	OpsManagerTimeoutKey         = "OPS_MANAGER_TIMEOUT"
	OpsManagerRequestTimeoutKey  = "OPS_MANAGER_REQUEST_TIMEOUT"
	EnvTypeKey                   = "ENV_TYPE"
	OutputPathKey                = "OUTPUT_DIR"
	SkipTlsVerifyKey             = "INSECURE_SKIP_TLS_VERIFY"
	SkipTlsVerifyKeyAlias        = "SKIP_SSL_VALIDATION"
	WithCredhubInfoKey           = "WITH_CREDHUB_INFO"
	UsageServiceURLKey           = "USAGE_SERVICE_URL"
	UsageServiceClientIDKey      = "USAGE_SERVICE_CLIENT_ID"
	UsageServiceClientSecretKey  = "USAGE_SERVICE_CLIENT_SECRET"
	UsageServiceTimeoutKey       = "USAGE_SERVICE_TIMEOUT"
	CfApiURLKey                  = "CF_API_URL"
	UsageServiceSkipTlsVerifyKey = "USAGE_SERVICE_INSECURE_SKIP_TLS_VERIFY"
	FoundationNicknameKey        = "FOUNDATION_NICKNAME"
	OperationalDataOnlyKey       = "OPERATIONAL_DATA_ONLY"

	ConfigFlag                    = "config"
	OpsManagerURLFlag             = "url"
	OpsManagerURLAliasFlag        = "target"
	OpsManagerUsernameFlag        = "username"
	OpsManagerPasswordFlag        = "password"
	OpsManagerClientIdFlag        = "client-id"
	OpsManagerClientSecretFlag    = "client-secret"
	OpsManagerTimeoutFlag         = "ops-manager-timeout"
	OpsManagerRequestTimeoutFlag  = "ops-manager-request-timeout"
	CollectFromCredhubFlag        = "with-credhub-info"
	EnvTypeFlag                   = "env-type"
	OutputPathFlag                = "output-dir"
	SkipTlsVerifyFlag             = "insecure-skip-tls-verify"
	SkipTlsVerifyAliasFlag        = "skip-ssl-validation"
	UsageServiceURLFlag           = "usage-service-url"
	UsageServiceClientIDFlag      = "usage-service-client-id"
	UsageServiceClientSecretFlag  = "usage-service-client-secret"
	UsageServiceTimeoutFlag       = "usage-service-timeout"
	CfApiURLFlag                  = "cf-api-url"
	UsageServiceSkipTlsVerifyFlag = "usage-service-insecure-skip-tls-verify"
	FoundationNicknameFlag        = "foundation-nickname"
	OperationalDataOnlyFlag       = "operational-data-only"

	EnvTypeSandbox       = "sandbox"
	EnvTypeDevelopment   = "development"
	EnvTypeQA            = "qa"
	EnvTypePreProduction = "pre-production"
	EnvTypeProduction    = "production"

	OutputFilePrefix                 = "FoundationDetails_"
	CredhubClientError               = "Failed creating credhub client"
	InvalidEnvTypeFailureFormat      = "Invalid env-type %s. See help for the list of valid types."
	InvalidAuthConfigurationMessage  = "Invalid auth configuration. Requires username/password or client/secret to be set."
	InvalidUsageConfigurationMessage = "Not all usage service configurations provided."
	CreateTarFileFailureFormat       = "Could not create tar file %s"
	UsageServiceURLParsingError      = "error parsing Usage Service URL"
	GetUAAURLError                   = "error getting UAA URL"
)
View Source
const (
	RequiredConfigErrorFormat = "Missing required flags: %s"

	PendingChangesExistsExitCode = 3
)
View Source
const (
	DataTarFilePathFlag   = "path"
	DataTarFilePathKey    = "DATA_TAR_FILE_PATH"
	ApiKeyFlag            = "api-key"
	ApiKeyKey             = "API_KEY"
	TelemetryEndpointFlag = "override-telemetry-endpoint"

	SendFailureMessage      = "Failed to send data"
	FileNotFoundErrorFormat = "File not found at: %s"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

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