Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAnnotate

func NewCmdAnnotate(parent string, f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

    NewCmdAnnotate creates the `annotate` command

    Types

    type AnnotateOptions

    type AnnotateOptions struct {
    	PrintFlags *genericclioptions.PrintFlags
    	PrintObj   printers.ResourcePrinterFunc
    
    	// Filename options
    	resource.FilenameOptions
    	RecordFlags *genericclioptions.RecordFlags
    
    	Recorder genericclioptions.Recorder
    
    	genericclioptions.IOStreams
    	// contains filtered or unexported fields
    }

      AnnotateOptions have the data required to perform the annotate operation

      func NewAnnotateOptions

      func NewAnnotateOptions(ioStreams genericclioptions.IOStreams) *AnnotateOptions

        NewAnnotateOptions creates the options for annotate

        func (*AnnotateOptions) Complete

        func (o *AnnotateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

          Complete adapts from the command line args and factory to the data required.

          func (AnnotateOptions) RunAnnotate

          func (o AnnotateOptions) RunAnnotate() error

            RunAnnotate does the work

            func (AnnotateOptions) Validate

            func (o AnnotateOptions) Validate() error

              Validate checks to the AnnotateOptions to see if there is sufficient information run the command.

              Source Files