Documentation ¶
Index ¶
- Variables
- func Create() cli.Command
- func CreateTrigger(client *clientv2.Fn, trigger *models.Trigger) error
- func Delete() cli.Command
- func GetTrigger(client *clientv2.Fn, appName, fnName, triggerName string) (*models.Trigger, error)
- func GetTriggerByName(client *clientv2.Fn, appID string, fnID string, triggerName string) (*models.Trigger, error)
- func Inspect() cli.Command
- func List() cli.Command
- func PutTrigger(t *clientv2.Fn, trigger *models.Trigger) error
- func Update() cli.Command
- func WithFlags(c *cli.Context, t *models.Trigger)
Constants ¶
This section is empty.
Variables ¶
View Source
var TriggerFlags = []cli.Flag{ cli.StringFlag{ Name: "source,s", Usage: "trigger source", }, cli.StringFlag{ Name: "type, t", Usage: "Todo", }, cli.StringSliceFlag{ Name: "annotation", Usage: "fn annotation (can be specified multiple times)", }, }
TriggerFlags used to create/update triggers
Functions ¶
func CreateTrigger ¶
CreateTrigger request
func GetTrigger ¶
GetTrigger looks up a trigger using the provided client by app, function and trigger name
func GetTriggerByName ¶
func GetTriggerByName(client *clientv2.Fn, appID string, fnID string, triggerName string) (*models.Trigger, error)
GetTriggerByName looks up a trigger using the provided client by app and function ID and trigger name
func PutTrigger ¶
PutTrigger updates the provided trigger with new values
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.