package annotate
import "k8s.io/kubernetes/pkg/kubectl/cmd/annotate"
Index ¶
- func NewCmdAnnotate(parent string, f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- type AnnotateOptions
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 ¶
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 ¶
annotate.go
- Version
- v1.15.0-beta.0
- Published
- May 14, 2019
- Platform
- js/wasm
- Imports
- 19 packages
- Last checked
- 3 seconds ago –
Tools for package owners.