cmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdGraph

func NewCmdGraph(parent string, flags *genericclioptions.ConfigFlags, streams genericclioptions.IOStreams) *cobra.Command

NewCmdGraph creates a command object for the "graph" action.

Types

type GraphOptions

type GraphOptions struct {
	AllNamespaces     bool
	ChunkSize         int64
	CmdParent         string
	ExplicitNamespace bool
	FieldSelector     string
	LabelSelector     string
	Namespace         string
	Namespaces        []string
	OutputFormat      string
	Truncate          int

	resource.FilenameOptions
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

GraphOptions contains the input to the graph command.

func NewGraphOptions

func NewGraphOptions(parent string, flags *genericclioptions.ConfigFlags, streams genericclioptions.IOStreams) *GraphOptions

NewGraphOptions returns a GraphOptions with default chunk size 500.

func (*GraphOptions) Complete

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

Complete takes the command arguments and factory and infers any remaining options.

func (*GraphOptions) Run

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

Run performs the graph operation.

func (*GraphOptions) Validate

func (o *GraphOptions) Validate(cmd *cobra.Command, args []string) error

Validate checks the set of flags provided by the user.

Jump to

Keyboard shortcuts

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