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
Click to show internal directories.
Click to hide internal directories.