cmd

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "unknown"

Version is set during build time

Functions

func NewCmdEmitEvent

func NewCmdEmitEvent(streams genericclioptions.IOStreams) *cobra.Command

NewCmdEmitEvent provides a cobra command wrapping EmitEventOptions

Types

type EmitEventOptions

type EmitEventOptions struct {
	Namespace        string
	EnforceNamespace bool
	BuilderArgs      []string

	Builder       func() *resource.Builder
	DynamicClient dynamic.Interface

	FilenameOptions *resource.FilenameOptions
	// contains filtered or unexported fields
}

EmitEventOptions is struct for emitevent command

func NewEmitEventOptions

func NewEmitEventOptions(streams genericclioptions.IOStreams) *EmitEventOptions

NewEmitEventOptions provides an instance of EmitEventOptions with default values

func (*EmitEventOptions) Complete

func (o *EmitEventOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current context

func (*EmitEventOptions) Run

func (o *EmitEventOptions) Run() error

Run emits the event to given k8s object

func (*EmitEventOptions) Validate

func (o *EmitEventOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

Jump to

Keyboard shortcuts

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