trigger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func List

func List(c *golangsdk.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 *golangsdk.ServiceClient, opts CreateOptsBuilder, functionUrn string) (r CreateResult)

Creating a Trigger

func (CreateResult) Extract

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

type DeleteResult

type DeleteResult struct {
	golangsdk.ErrResult
}

func Delete

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

Deleting a Trigger

func DeleteAll

func DeleteAll(c *golangsdk.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 *golangsdk.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
}

Jump to

Keyboard shortcuts

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