command

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 71 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package command creates and initializes the tanzu CLI.

Package command provides commands

Package command provides commands

Index

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

func Execute

func Execute() error

Execute executes the CLI.

func NewRootCmd

func NewRootCmd() (*cobra.Command, error)

NewRootCmd creates a root command.

func RunCommandAndGetStdOutAndErr added in v0.90.0

func RunCommandAndGetStdOutAndErr(cmd *cobra.Command, args []string) ([]byte, []byte, error)

RunCommandAndGetStdOutAndErr executes the cobra command and returns the command's stdout,stderr and error

Types

type ContextCreationType added in v1.1.0

type ContextCreationType string

type ContextListOutputRow added in v1.1.0

type ContextListOutputRow struct {
	Name           string
	IsActive       string
	Type           string
	Project        string
	ProjectID      string
	Space          string
	ClusterGroup   string
	Endpoint       string
	KubeconfigPath string
	KubeContext    string
}

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 DeploymentMetadataOrganization struct {
	DisplayName string `json:"displayName"`
	ID          string `json:"id"`
	Name        string `json:"name"`
}

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)

Directories

Path Synopsis
Package plugintemplates provides templates for CLI doc generation
Package plugintemplates provides templates for CLI doc generation

Jump to

Keyboard shortcuts

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