async_config

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 string) (err error)

Types

type AsyncInvokeResp

type AsyncInvokeResp struct {
	FuncUrn           string             `json:"func_urn"`
	MaxEventAge       int                `json:"max_async_event_age_in_seconds"`
	MaxRetry          int                `json:"max_async_retry_attempts"`
	DestinationConfig *DestinationConfig `json:"destination_config,omitempty"`
	CreatedTime       string             `json:"created_time"`
	LastModified      string             `json:"last_modified"`
	EnableStatusLog   bool               `json:"enable_async_status_log"`
}

func Get

func Get(client *golangsdk.ServiceClient, funcURN string) (*AsyncInvokeResp, error)

func Update

func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*AsyncInvokeResp, error)

type Destination

type Destination struct {
	Destination string `json:"destination,omitempty"`
	Param       string `json:"param,omitempty"`
}

type DestinationConfig

type DestinationConfig struct {
	OnSuccess *Destination `json:"on_success,omitempty"`
	OnFailure *Destination `json:"on_failure,omitempty"`
}

type UpdateOpts

type UpdateOpts struct {
	FuncUrn           string             `json:"-"`
	MaxEventAge       *int               `json:"max_async_event_age_in_seconds,omitempty"`
	MaxRetry          *int               `json:"max_async_retry_attempts,omitempty"`
	EnableStatusLog   *bool              `json:"enable_async_status_log,omitempty"`
	DestinationConfig *DestinationConfig `json:"destination_config,omitempty"`
}

Jump to

Keyboard shortcuts

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