Documentation ¶
Index ¶
- Variables
- func BashCompleteTriggers(c *cli.Context)
- func Create() cli.Command
- func CreateTrigger(client *fnclient.Fn, trigger *models.Trigger) error
- func Delete() cli.Command
- func GetTrigger(client *fnclient.Fn, appName, fnName, triggerName string) (*models.Trigger, error)
- func GetTriggerByAppFnAndTriggerNames(appName, fnName, triggerName string) (*models.Trigger, error)
- func GetTriggerByName(client *fnclient.Fn, appID string, fnID string, triggerName string) (*models.Trigger, error)
- func Inspect() cli.Command
- func List() cli.Command
- func PutTrigger(t *fnclient.Fn, trigger *models.Trigger) error
- func Update() cli.Command
- func WithFlags(c *cli.Context, t *models.Trigger)
- type NameNotFoundError
Constants ¶
This section is empty.
Variables ¶
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 BashCompleteTriggers ¶
BashCompleteTriggers can be called from a BashComplete function to provide function completion suggestions (Assumes the current context already contains an app name and a function name as the first 2 arguments. This should be confirmed before calling this)
func CreateTrigger ¶
CreateTrigger request
func GetTrigger ¶
GetTrigger looks up a trigger using the provided client by app, function and trigger name
func GetTriggerByAppFnAndTriggerNames ¶
GetTriggerByAppFnAndTriggerNames looks up a trigger using app, fn and trigger names
func GetTriggerByName ¶
func GetTriggerByName(client *fnclient.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 ¶
type NameNotFoundError ¶
type NameNotFoundError struct {
Name string
}
NameNotFoundError error for app not found when looked up by name
func (NameNotFoundError) Error ¶
func (n NameNotFoundError) Error() string