Documentation ¶
Overview ¶
Package command creates and initializes the tanzu CLI.
Package command provides commands ¶
Package command provides commands
Index ¶
- Constants
- func Execute() error
- func NewRootCmd() (*cobra.Command, error)
- func RunCommandAndGetStdOutAndErr(cmd *cobra.Command, args []string) ([]byte, []byte, error)
- type ContextCreationType
- type ContextListOutputRow
- type DeploymentMetadata
- type DeploymentMetadataOrganization
- type TKGKubeconfigFetcher
- type TKGKubeconfigFetcherOptions
Constants ¶
View Source
const ( CeipOptInStatus = "Opt-in" CeipOptOutStatus = "Opt-out" )
CeipOptOutStatus and CeipOptInStatus are constants for the CEIP opt-in/out verbiage
View Source
const ( ConfigLiteralFeatures = "features" ConfigLiteralEnv = "env" )
ConfigLiterals used with set/unset commands
View Source
const DefaultDocsDir = "docs/cli/commands"
DefaultDocsDir is the base docs directory
View Source
const ErrorDocsOutputFolderNotExists = "" /* 137-byte string literal not displayed */
View Source
const FalseStr = "false"
View Source
const NA = "n/a"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextCreationType ¶ added in v1.1.0
type ContextCreationType string
type ContextListOutputRow ¶ added in v1.1.0
type DeploymentMetadata ¶ added in v1.5.0
type DeploymentMetadata struct { APIEndpoint string `json:"apiEndpoint"` Organization DeploymentMetadataOrganization `json:"organization"` }
type DeploymentMetadataOrganization ¶ added in v1.5.0
type TKGKubeconfigFetcher ¶ added in v0.90.0
type TKGKubeconfigFetcher interface {
GetPinnipedKubeconfig() (mergeFilePath, currentContext string, err error)
}
func NewTKGKubeconfigFetcher ¶ added in v0.90.0
func NewTKGKubeconfigFetcher(endpoint, endpointCACertPath string, insecureSkipTLSVerify bool) TKGKubeconfigFetcher
type TKGKubeconfigFetcherOptions ¶ added in v0.90.0
type TKGKubeconfigFetcherOptions struct { Endpoint string InsecureSkipTLSVerify bool EndpointCACertPath string CmdExecutor func(command *cobra.Command, args []string) (stdOut []byte, stderr []byte, err error) }
func (*TKGKubeconfigFetcherOptions) GetPinnipedKubeconfig ¶ added in v0.90.0
func (tkfo *TKGKubeconfigFetcherOptions) GetPinnipedKubeconfig() (string, string, error)
Source Files ¶
- ceip_participation.go
- cert.go
- completion.go
- completion_helper.go
- config.go
- context.go
- context_tkg_helper.go
- discovery_source.go
- doc.go
- eula.go
- init.go
- login.go
- login_helper.go
- org_validation_helper.go
- plugin.go
- plugin_bundle.go
- plugin_group.go
- plugin_search.go
- root.go
- root_initializers.go
- version.go
Click to show internal directories.
Click to hide internal directories.