kubernetesk8s.io/kubernetes/pkg/kubectl/cmd/annotate Index | Files

package annotate

import "k8s.io/kubernetes/pkg/kubectl/cmd/annotate"

Index

Functions

func NewCmdAnnotate

func NewCmdAnnotate(parent string, f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.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

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

annotate.go

Version
v1.13.5
Published
Mar 22, 2019
Platform
js/wasm
Imports
19 packages
Last checked
4 minutes ago

Tools for package owners.