events

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

Types

type CreateOpts

type CreateOpts struct {
	FuncUrn string `json:"-"`
	Name    string `json:"name" required:"true"`
	Content string `json:"content" required:"true"`
}

type Event

type Event struct {
	Id           string `json:"id"`
	Content      string `json:"content"`
	LastModified int    `json:"last_modified"`
	Name         string `json:"name"`
}

func Get

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

func Update

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

type EventFuncResp

type EventFuncResp struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*EventFuncResp, error)

type ListEventsResponse

type ListEventsResponse struct {
	Events     []Event `json:"events"`
	NextMarker int     `json:"next_marker"`
	Count      int     `json:"count"`
}

func List

func List(client *golangsdk.ServiceClient, funcUrn string) (*ListEventsResponse, error)

type UpdateOpts

type UpdateOpts struct {
	FuncUrn string `json:"-"`
	EventId string `json:"-"`
	Content string `json:"content" required:"true"`
}

Jump to

Keyboard shortcuts

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