corwhisk

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MaxRetries = 3

MaxLambdaRetries is the number of times to try invoking a function before giving up and returning an error

Variables

This section is empty.

Functions

This section is empty.

Types

type WhiskClient

type WhiskClient struct {
	Client *whisk.Client
}

func NewWhiskClient

func NewWhiskClient() *WhiskClient

NewLambdaClient initializes a new LambdaClient

func (*WhiskClient) DeleteFunction

func (l *WhiskClient) DeleteFunction(name string) error

func (*WhiskClient) DeployFunction

func (l *WhiskClient) DeployFunction(conf WhiskFunctionConfig) error

func (*WhiskClient) Invoke

func (l *WhiskClient) Invoke(name string, payload interface{}) (io.ReadCloser, error)

type WhiskClientApi added in v0.1.0

type WhiskClientApi interface {
	Invoke(name string, payload interface{}) (io.ReadCloser, error)
	DeployFunction(conf WhiskFunctionConfig) error
	DeleteFunction(name string) error
}

type WhiskFunctionConfig

type WhiskFunctionConfig struct {
	Memory       int
	Timeout      int
	FunctionName string
}

type WhiskPayload added in v0.1.0

type WhiskPayload struct {
	Value interface{}        `json:"value"`
	Env   map[string]*string `json:"env"`
}

Jump to

Keyboard shortcuts

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