trigger

package
v1.0.23-3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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