Documentation
¶
Index ¶
Constants ¶
View Source
const MaxPullRetries = 4
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 WhiskCacheConfigInjector ¶ added in v0.1.2
type WhiskCacheConfigInjector interface {
corcache.CacheConfigIncector
ConfigureWhisk(action *whisk.Action) error
}
type WhiskClient ¶
func NewWhiskClient ¶
func NewWhiskClient(conf WhiskClientConfig) *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 WhiskClientConfig ¶ added in v0.1.2
type WhiskFunctionConfig ¶
type WhiskFunctionConfig struct {
Memory int
Timeout int
FunctionName string
CacheConfigInjector corcache.CacheConfigIncector
}
type WhiskPayload ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.