trigger

package
v0.0.0-...-706a057 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 Create

func Create() cli.Command

Create trigger command

func CreateTrigger

func CreateTrigger(client *clientv2.Fn, trigger *models.Trigger) error

CreateTrigger request

func Delete

func Delete() cli.Command

Delete trigger command

func GetTrigger

func GetTrigger(client *clientv2.Fn, appName, fnName, triggerName string) (*models.Trigger, error)

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 Inspect

func Inspect() cli.Command

Inspect trigger command

func List

func List() cli.Command

List trigger command

func PutTrigger

func PutTrigger(t *clientv2.Fn, trigger *models.Trigger) error

PutTrigger updates the provided trigger with new values

func Update

func Update() cli.Command

Update trigger command

func WithFlags

func WithFlags(c *cli.Context, t *models.Trigger)

WithFlags returns a trigger with the specified flags

Types

This section is empty.

Jump to

Keyboard shortcuts

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