Help us shape the future of Go! Take the 2026 Go Developer Survey

trigger

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func List

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

Querying All Triggers of a Function

Types

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 {
	gophercloud.ErrResult
}

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 {
	pagination.SinglePageBase
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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