resultcmd

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdResult

func NewCmdResult(f util.Factory, streams *genericclioptions.IOStreams) *cobra.Command

Types

type BasePrinter

type BasePrinter struct {
	// contains filtered or unexported fields
}

func (*BasePrinter) PrintSummary

func (bp *BasePrinter) PrintSummary()

type Operations

type Operations map[runnerpb.Operation]int

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 NewResultFlags

func NewResultFlags() *ResultFlags

The defaults are determined here

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) Run

func (r *ResultOptions) Run(ctx context.Context, args []string) error

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

Jump to

Keyboard shortcuts

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