Documentation
      ¶
    
    
  
    
  
    Index ¶
- func DeleteResult(r *resource.Result, out io.Writer, ignoreNotFound bool, shortOutput bool, ...) error
 - func DescribeMatchingResources(mapper meta.RESTMapper, typer runtime.ObjectTyper, f *cmdutil.Factory, ...) error
 - func NewCmdAnnotate(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdApiVersions(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdAttach(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer) *cobra.Command
 - func NewCmdClusterInfo(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdCreate(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdDelete(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdDescribe(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdExec(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer) *cobra.Command
 - func NewCmdExposeService(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdGet(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdLabel(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdLog(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdNamespace(out io.Writer) *cobra.Command
 - func NewCmdPatch(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdPortForward(f *cmdutil.Factory) *cobra.Command
 - func NewCmdProxy(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdReplace(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdRollingUpdate(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdRun(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer) *cobra.Command
 - func NewCmdScale(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdStop(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewCmdVersion(f *cmdutil.Factory, out io.Writer) *cobra.Command
 - func NewKubectlCommand(f *cmdutil.Factory, in io.Reader, out, err io.Writer) *cobra.Command
 - func ReapResult(r *resource.Result, f *cmdutil.Factory, out io.Writer, ...) error
 - func Run(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer, ...) error
 - func RunApiVersions(f *cmdutil.Factory, w io.Writer) error
 - func RunClusterInfo(factory *cmdutil.Factory, out io.Writer, cmd *cobra.Command) error
 - func RunCreate(f *cmdutil.Factory, cmd *cobra.Command, out io.Writer) error
 - func RunDelete(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error
 - func RunDescribe(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error
 - func RunExpose(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error
 - func RunGet(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error
 - func RunLabel(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error
 - func RunLog(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error
 - func RunPatch(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error
 - func RunPortForward(f *cmdutil.Factory, cmd *cobra.Command, args []string, fw portForwarder) error
 - func RunProxy(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command) error
 - func RunReplace(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error
 - func RunRollingUpdate(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error
 - func RunScale(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error
 - func RunStop(f *cmdutil.Factory, cmd *cobra.Command, args []string, out io.Writer) error
 - func RunVersion(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command) error
 - func ValidateArgs(cmd *cobra.Command, args []string) error
 - type AnnotateOptions
 - type AttachOptions
 - type DefaultRemoteAttach
 - type DefaultRemoteExecutor
 - type ExecOptions
 - type RemoteAttach
 - type RemoteExecutor
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteResult ¶ added in v0.16.0
func DescribeMatchingResources ¶ added in v0.17.0
func NewCmdAnnotate ¶ added in v1.1.0
func NewCmdApiVersions ¶ added in v0.15.0
func NewCmdAttach ¶ added in v1.1.0
func NewCmdClusterInfo ¶ added in v0.15.0
func NewCmdCreate ¶ added in v0.15.0
func NewCmdDelete ¶ added in v0.15.0
func NewCmdDescribe ¶ added in v0.15.0
func NewCmdExec ¶ added in v0.15.0
func NewCmdExposeService ¶ added in v0.15.0
func NewCmdGet ¶ added in v0.15.0
NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.
func NewCmdLabel ¶ added in v0.15.0
func NewCmdNamespace ¶
TODO remove once people have been given enough time to notice
func NewCmdPatch ¶ added in v0.21.0
func NewCmdReplace ¶ added in v0.21.0
func NewCmdRollingUpdate ¶ added in v0.15.0
func NewCmdScale ¶ added in v0.18.0
NewCmdScale returns a cobra command with the appropriate configuration and flags to run scale
func NewCmdStop ¶ added in v0.15.0
func NewKubectlCommand ¶ added in v0.15.0
NewKubectlCommand creates the `kubectl` command and its nested children.
func ReapResult ¶ added in v0.16.0
func RunClusterInfo ¶ added in v0.13.0
func RunDescribe ¶ added in v0.13.0
func RunGet ¶ added in v0.9.0
RunGet implements the generic Get command TODO: convert all direct flag accessors to a struct and pass that instead of cmd
func RunLog ¶ added in v0.13.0
func RunLog(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, p *logParams) error
RunLog retrieves a pod log
func RunPortForward ¶ added in v0.13.0
func RunReplace ¶ added in v0.21.0
func RunRollingUpdate ¶ added in v0.13.0
func RunScale ¶ added in v0.18.0
func RunScale(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, shortOutput bool) error
RunScale executes the scaling
func RunVersion ¶ added in v0.13.0
Types ¶
type AnnotateOptions ¶ added in v1.1.0
type AnnotateOptions struct {
	// contains filtered or unexported fields
}
    AnnotateOptions have the data required to perform the annotate operation
func (*AnnotateOptions) Complete ¶ added in v1.1.0
Complete adapts from the command line args and factory to the data required.
func (AnnotateOptions) RunAnnotate ¶ added in v1.1.0
func (o AnnotateOptions) RunAnnotate() error
RunAnnotate does the work
func (AnnotateOptions) Validate ¶ added in v1.1.0
func (o AnnotateOptions) Validate(args []string) error
Validate checks to the AnnotateOptions to see if there is sufficient information run the command.
type AttachOptions ¶ added in v1.1.0
type AttachOptions struct {
	Namespace     string
	PodName       string
	ContainerName string
	Stdin         bool
	TTY           bool
	In  io.Reader
	Out io.Writer
	Err io.Writer
	Attach RemoteAttach
	Client *client.Client
	Config *client.Config
}
    AttachOptions declare the arguments accepted by the Exec command
func (*AttachOptions) Complete ¶ added in v1.1.0
Complete verifies command line arguments and loads data from the command environment
func (*AttachOptions) Run ¶ added in v1.1.0
func (p *AttachOptions) Run() error
Run executes a validated remote execution against a pod.
func (*AttachOptions) Validate ¶ added in v1.1.0
func (p *AttachOptions) Validate() error
Validate checks that the provided attach options are specified.
type DefaultRemoteAttach ¶ added in v1.1.0
type DefaultRemoteAttach struct{}
    DefaultRemoteAttach is the standard implementation of attaching
type DefaultRemoteExecutor ¶ added in v1.1.0
type DefaultRemoteExecutor struct{}
    DefaultRemoteExecutor is the standard implementation of remote command execution
type ExecOptions ¶ added in v1.1.0
type ExecOptions struct {
	Namespace     string
	PodName       string
	ContainerName string
	Stdin         bool
	TTY           bool
	Command       []string
	In  io.Reader
	Out io.Writer
	Err io.Writer
	Executor RemoteExecutor
	Client   *client.Client
	Config   *client.Config
}
    ExecOptions declare the arguments accepted by the Exec command
func (*ExecOptions) Complete ¶ added in v1.1.0
Complete verifies command line arguments and loads data from the command environment
func (*ExecOptions) Run ¶ added in v1.1.0
func (p *ExecOptions) Run() error
Run executes a validated remote execution against a pod.
func (*ExecOptions) Validate ¶ added in v1.1.0
func (p *ExecOptions) Validate() error
Validate checks that the provided exec options are specified.