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

trigger

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

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 CreateOpts struct {
	FuncUrn         string                 `json:"-"`
	TriggerTypeCode string                 `json:"trigger_type_code" required:"true"`
	TriggerStatus   string                 `json:"trigger_status,omitempty"`
	EventTypeCode   string                 `json:"event_type_code,omitempty"`
	EventData       map[string]interface{} `json:"event_data" required:"true"`
}

type TriggerFuncInfo added in v0.9.3

type TriggerFuncInfo struct {
	FunctionUrn    string `json:"function_urn,omitempty"`
	InvocationType string `json:"invocation_type,omitempty"`
	Timeout        int    `json:"timeout" required:"true"`
	Version        string `json:"version,omitempty"`
}

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)

type UpdateOpts added in v0.9.3

type UpdateOpts struct {
	FuncUrn         string                 `json:"-"`
	TriggerId       string                 `json:"-"`
	TriggerTypeCode string                 `json:"-"`
	TriggerStatus   string                 `json:"trigger_status,omitempty"`
	EventData       map[string]interface{} `json:"event_data,omitempty"`
}

Jump to

Keyboard shortcuts

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