Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdOptions ¶
type CmdOptions struct { // RequestType represents the type of the requested object. RequestType string // RequestName represents the name of the requested object. RequestName string Flags *Flags Namespace string Client client.Interface ClientFlags *client.Flags Printer lineageprinters.Interface PrintFlags *lineageprinters.Flags genericclioptions.IOStreams }
CmdOptions contains all the options for running the lineage command.
func (*CmdOptions) Complete ¶
func (o *CmdOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options for the lineage command.
func (*CmdOptions) Run ¶
func (o *CmdOptions) Run() error
Run implements all the necessary functionality for the lineage command.
func (*CmdOptions) Validate ¶
func (o *CmdOptions) Validate() error
Validate validates all the required options for the lineage command.
type Flags ¶ added in v0.3.0
type Flags struct { AllNamespaces *bool Dependencies *bool Depth *uint ExcludeTypes *[]string IncludeTypes *[]string Scopes *[]string }
Flags composes common configuration flag structs used in the command.
func NewFlags ¶ added in v0.3.0
func NewFlags() *Flags
NewFlags returns flags associated with command configuration, with default values set.
func (*Flags) AddFlags ¶ added in v0.3.0
AddFlags receives a *pflag.FlagSet reference and binds flags related to configuration to it.
Click to show internal directories.
Click to hide internal directories.