Documentation
¶
Index ¶
- func Delete(client *golangsdk.ServiceClient, funcURN, triggerType, triggerId string) (err error)
- func DeleteTriggers(client *golangsdk.ServiceClient, funcURN string) (err error)
- type CreateOpts
- type TriggerFuncInfo
- type TriggerFuncResp
- func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*TriggerFuncResp, error)
- func Get(client *golangsdk.ServiceClient, funcURN, triggerType, triggerId string) (*TriggerFuncResp, error)
- func GetTriggers(client *golangsdk.ServiceClient, funcURN string) ([]TriggerFuncResp, error)
- func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*TriggerFuncResp, error)
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(client *golangsdk.ServiceClient, funcURN, triggerType, triggerId string) (err error)
func DeleteTriggers ¶ added in v0.9.3
func DeleteTriggers(client *golangsdk.ServiceClient, funcURN string) (err error)
Types ¶
type CreateOpts ¶
type TriggerFuncInfo ¶ added in v0.9.3
type TriggerFuncResp ¶ added in v0.9.3
type TriggerFuncResp struct {
TriggerId string `json:"trigger_id"`
TriggerTypeCode string `json:"trigger_type_code"`
TriggerStatus string `json:"trigger_status"`
EventData map[string]interface{} `json:"event_data"`
LastUpdatedTime string `json:"last_updated_time"`
CreatedTime string `json:"created_time"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*TriggerFuncResp, error)
func Get ¶
func Get(client *golangsdk.ServiceClient, funcURN, triggerType, triggerId string) (*TriggerFuncResp, error)
func GetTriggers ¶ added in v0.9.3
func GetTriggers(client *golangsdk.ServiceClient, funcURN string) ([]TriggerFuncResp, error)
func Update ¶ added in v0.9.3
func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*TriggerFuncResp, error)
Click to show internal directories.
Click to hide internal directories.