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 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
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
}
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
}
Click to show internal directories.
Click to hide internal directories.