Version: v1.0.20 Latest Latest

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 2 Imported by: 0




View Source
const (
	FGS     = "fgs"
	TRIGGER = "triggers"


This section is empty.


func List

func List(c *gophercloud.ServiceClient, functionUrn string) pagination.Pager

Querying All Triggers of a Function


type CreateOpts

type CreateOpts struct {
	TriggerTypeCode string                 `json:"trigger_type_code" required:"true"`
	EventTypeCode   string                 `json:"event_type_code" required:"true"`
	EventData       map[string]interface{} `json:"event_data" required:"true"`

Trigger struct

func (CreateOpts) ToCreateTriggerMap

func (opts CreateOpts) ToCreateTriggerMap() (map[string]interface{}, error)

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToCreateTriggerMap() (map[string]interface{}, error)

type CreateResult

type CreateResult struct {
	// contains filtered or unexported fields

func Create

func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder, functionUrn string) (r CreateResult)

Creating a Trigger

func (CreateResult) Extract

func (r CreateResult) Extract() (*Trigger, error)

type DeleteResult

type DeleteResult struct {

func Delete

func Delete(c *gophercloud.ServiceClient, functionUrn, triggerTypeCode, triggerId string) (r DeleteResult)

Deleting a Trigger

func DeleteAll

func DeleteAll(c *gophercloud.ServiceClient, functionUrn string) (r DeleteResult)

Deleting All Triggers of a Function

type GetResult

type GetResult struct {
	// contains filtered or unexported fields

func Get

func Get(c *gophercloud.ServiceClient, functionUrn, triggerTypeCode, triggerId string) (r GetResult)

Querying the Information About a Trigger

func (GetResult) Extract

func (r GetResult) Extract() (*Trigger, error)

type Trigger

type Trigger struct {
	TriggerId       string                 `json:"trigger_id"`
	TriggerTypeCode string                 `json:"trigger_type_code"`
	EventData       map[string]interface{} `json:"event_data"`
	EventTypeCode   string                 `json:"event_type_code,omitempty"`
	Status          string                 `json:"trigger_status,omitempty"`
	LastUpdatedTime string                 `json:"last_updated_time,omitempty"`
	CreatedTime     string                 `json:"created_time,omitempty"`
	LastError       string                 `json:"last_error,omitempty"`

func ExtractList

func ExtractList(r pagination.Page) ([]Trigger, error)

type TriggerPage

type TriggerPage struct {


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL