cmd

package
v0.0.0-...-fc21188 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCommand = newRootCmd(os.Stdout)

RootCommand is the top-level command for Helm.

Functions

func NameFromCommandArgs

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

NameFromCommandArgs is a utility function for commands that assume the first argument is a resource name

func NewC3Command

func NewC3Command(f *cmdutil.Factory, in io.Reader, out, err io.Writer) *cobra.Command

func NewCmdCreateFromChart

func NewCmdCreateFromChart(facto *cmdutil.Factory, out io.Writer, c helm.Interface) *cobra.Command

func NewCmdExportIntoChart

func NewCmdExportIntoChart(f *cmdutil.Factory, out io.Writer) *cobra.Command

NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.

func NewCmdServiceAutoDiscovery

func NewCmdServiceAutoDiscovery(f *cmdutil.Factory, out io.Writer) *cobra.Command

NewCmdServiceAutoDiscovery creates a command object for the generic "get" action, which retrieves one or more resources from a server.

func PrintStatus

func PrintStatus(out io.Writer, res *services.GetReleaseStatusResponse)

PrintStatus prints out the status of a release. Shared because also used by install / upgrade

func RunCreate

func RunCreate(f *cmdutil.Factory, cmd *cobra.Command, out io.Writer, options *kubectlcmd.CreateOptions) error

func RunCreateFromChart

func RunCreateFromChart(f *cmdutil.Factory, cmd *cobra.Command, out io.Writer, options *CreateFromChartOptions) error

func RunCreateSubcommand

func RunCreateSubcommand(f *cmdutil.Factory, cmd *cobra.Command, out io.Writer, options *CreateSubcommandOptions) error

RunCreateSubcommand executes a create subcommand using the specified options

func RunExportIntoChart

func RunExportIntoChart(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, options *ExportIntoChartOptions) error

RunGet implements the generic Get command TODO: convert all direct flag accessors to a struct and pass that instead of cmd

func RunServiceAutoDiscovery

func RunServiceAutoDiscovery(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, options *ServiceAutoDiscoveryOptions) error

func ValidateArgs

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

k8s.io/kubernetes/pkg/kubectl/cmd/create.go

Types

type CreateFromChartOptions

type CreateFromChartOptions struct {
	Filenames []string
	Recursive bool
}

type CreateSubcommandOptions

type CreateSubcommandOptions struct {
	// Name of resource being created
	Name string
	// StructuredGenerator is the resource generator for the object being created
	StructuredGenerator kubectl.StructuredGenerator
	// DryRun is true if the command should be simulated but not run against the server
	DryRun bool
	// OutputFormat
	OutputFormat string
}

CreateSubcommandOptions is an options struct to support create subcommands

type ExportIntoChartOptions

type ExportIntoChartOptions struct {
	kubectlcmd.GetOptions
}

GetOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()

type ServiceAutoDiscoveryOptions

type ServiceAutoDiscoveryOptions struct {
	Filenames []string
	Recursive bool

	Raw string
}

ServiceAutoDiscoveryOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()

Jump to

Keyboard shortcuts

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