Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdResult ¶
Types ¶
type BasePrinter ¶
type BasePrinter struct {
// contains filtered or unexported fields
}
func (*BasePrinter) PrintSummary ¶
func (bp *BasePrinter) PrintSummary()
type Operations ¶
func NewOperations ¶
func NewOperations() Operations
type RawPrinter ¶
type RawPrinter struct {
BasePrinter
}
func (*RawPrinter) CollectData ¶
func (rp *RawPrinter) CollectData(result *runnerpb.Once_RunResult)
type ReconcilerPrinter ¶
type ReconcilerPrinter struct {
BasePrinter
}
func (*ReconcilerPrinter) CollectData ¶
func (rp *ReconcilerPrinter) CollectData(result *runnerpb.Once_RunResult)
type ReconcilerResource ¶
type ReconcilerResource struct {
Reconcilername string
Group string
Kind string
Namespace string
Name string
}
func (ReconcilerResource) ResourceNameString ¶
func (r ReconcilerResource) ResourceNameString() string
type ResourcePrinter ¶
type ResourcePrinter struct {
BasePrinter
}
func (*ResourcePrinter) CollectData ¶
func (rp *ResourcePrinter) CollectData(result *runnerpb.Once_RunResult)
type ResultFlags ¶
type ResultFlags struct {
RunResultsFlags *genericclioptions.RunResultFlags
}
func (*ResultFlags) AddFlags ¶
func (r *ResultFlags) AddFlags(cmd *cobra.Command)
AddFlags add flags tp the command
func (*ResultFlags) ToOptions ¶
func (r *ResultFlags) ToOptions(cmd *cobra.Command, f util.Factory, streams *genericclioptions.IOStreams) (*ResultOptions, error)
ToOptions renders the options based on the flags that were set and will be the base context used to run the command
type ResultOptions ¶
type ResultOptions struct {
Factory util.Factory
Streams *genericclioptions.IOStreams
ResultOutputFormat string
}
func (*ResultOptions) Validate ¶
func (r *ResultOptions) Validate(args []string) error
type SummaryPrinter ¶
type SummaryPrinter interface {
CollectData(result *runnerpb.Once_RunResult)
PrintSummary()
}
func NewRawPrinter ¶
func NewRawPrinter() SummaryPrinter
func NewReconcilerPrinter ¶
func NewReconcilerPrinter() SummaryPrinter
func NewResourcePrinter ¶
func NewResourcePrinter() SummaryPrinter
Click to show internal directories.
Click to hide internal directories.