corwhisk

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 11 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 WhiskFunctionConfig

type WhiskFunctionConfig struct {
	Memory       int
	Timeout      int
	FunctionName string
}

Jump to

Keyboard shortcuts

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