oncecmd

package
v0.0.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdOnce added in v0.0.15

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

Types

type BasePrinter added in v0.0.15

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

func (*BasePrinter) PrintSummary added in v0.0.15

func (bp *BasePrinter) PrintSummary()

type OnceFlags added in v0.0.15

type OnceFlags struct {
	RunResultsFlags *genericclioptions.RunResultFlags
}

func NewOnceFlags added in v0.0.15

func NewOnceFlags() *OnceFlags

The defaults are determined here

func (*OnceFlags) AddFlags added in v0.0.15

func (r *OnceFlags) AddFlags(cmd *cobra.Command)

AddFlags add flags tp the command

func (*OnceFlags) ToOptions added in v0.0.15

func (r *OnceFlags) ToOptions(cmd *cobra.Command, f util.Factory, streams *genericclioptions.IOStreams) (*OnceOptions, error)

ToOptions renders the options based on the flags that were set and will be the base context used to run the command

type OnceOptions added in v0.0.15

type OnceOptions struct {
	Factory            util.Factory
	Streams            *genericclioptions.IOStreams
	ResultOutputFormat string
}

func (*OnceOptions) Run added in v0.0.15

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

func (*OnceOptions) Validate added in v0.0.15

func (r *OnceOptions) Validate(args []string) error

type Operations added in v0.0.15

type Operations map[runnerpb.Operation]int

func NewOperations added in v0.0.15

func NewOperations() Operations

type RawPrinter added in v0.0.15

type RawPrinter struct {
	BasePrinter
}

func (*RawPrinter) CollectData added in v0.0.15

func (rp *RawPrinter) CollectData(result *runnerpb.Once_RunResult)

type ReconcilerPrinter added in v0.0.15

type ReconcilerPrinter struct {
	BasePrinter
}

func (*ReconcilerPrinter) CollectData added in v0.0.15

func (rp *ReconcilerPrinter) CollectData(result *runnerpb.Once_RunResult)

type ReconcilerResource added in v0.0.15

type ReconcilerResource struct {
	Reconcilername string
	Group          string
	Kind           string
	Namespace      string
	Name           string
}

func (ReconcilerResource) ResourceNameString added in v0.0.15

func (r ReconcilerResource) ResourceNameString() string

type ResourcePrinter added in v0.0.15

type ResourcePrinter struct {
	BasePrinter
}

func (*ResourcePrinter) CollectData added in v0.0.15

func (rp *ResourcePrinter) CollectData(result *runnerpb.Once_RunResult)

type SummaryPrinter added in v0.0.15

type SummaryPrinter interface {
	CollectData(result *runnerpb.Once_RunResult)
	PrintSummary()
}

func NewRawPrinter added in v0.0.15

func NewRawPrinter() SummaryPrinter

func NewReconcilerPrinter added in v0.0.15

func NewReconcilerPrinter() SummaryPrinter

func NewResourcePrinter added in v0.0.15

func NewResourcePrinter() SummaryPrinter

Jump to

Keyboard shortcuts

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