trigger

package
v0.0.0-...-a045990 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTriggerCommand

func NewTriggerCommand(p *commands.KnParams) *cobra.Command

NewTriggerCommand to create trigger command group

func NewTriggerCreateCommand

func NewTriggerCreateCommand(p *commands.KnParams) *cobra.Command

NewTriggerCreateCommand to create trigger create command

func NewTriggerDeleteCommand

func NewTriggerDeleteCommand(p *commands.KnParams) *cobra.Command

NewTriggerDeleteCommand represent 'revision delete' command

func NewTriggerDescribeCommand

func NewTriggerDescribeCommand(p *commands.KnParams) *cobra.Command

NewTriggerDescribeCommand returns a new command for describe a trigger

func NewTriggerListCommand

func NewTriggerListCommand(p *commands.KnParams) *cobra.Command

NewTriggerListCommand represents 'kn trigger list' command

func NewTriggerUpdateCommand

func NewTriggerUpdateCommand(p *commands.KnParams) *cobra.Command

NewTriggerUpdateCommand prepares the command for a tigger update

func TriggerListHandlers

func TriggerListHandlers(h hprinters.PrintHandler)

TriggerListHandlers handles printing human readable table for `kn source list-types` command's output

Types

type TriggerUpdateFlags

type TriggerUpdateFlags struct {
	Broker       string
	InjectBroker bool
	Filters      []string
}

TriggerUpdateFlags are flags for create and update a trigger

func (*TriggerUpdateFlags) Add

func (f *TriggerUpdateFlags) Add(cmd *cobra.Command)

Add is to set parameters

func (*TriggerUpdateFlags) GetFilters

func (f *TriggerUpdateFlags) GetFilters() (map[string]string, error)

GetFilters to return a map type of filters

func (*TriggerUpdateFlags) GetUpdateFilters

func (f *TriggerUpdateFlags) GetUpdateFilters() (map[string]string, []string, error)

GetUpdateFilters to return a map type of filters

Jump to

Keyboard shortcuts

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