Documentation
¶
Index ¶
- func NewErrorLambdaResponse(eventId string, err error, stderr string) *liblambda.Response
- func NewLambdaClient(target string) (lambda.LambdaClient, error)
- func NewSimpleLambdaEvent(event string) *liblambda.Event
- func NewSimpleLambdaResponse(eventId, stdout, stderr, responseString string, err error) (response *liblambda.Response)
- type BasicCodeExecutor
- type ContainerExecutor
- type DockerContainerManager
- type Function
- type LambdaExecutor
- type LocalOsExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorLambdaResponse ¶
func NewLambdaClient ¶
func NewLambdaClient(target string) (lambda.LambdaClient, error)
func NewSimpleLambdaEvent ¶
Types ¶
type BasicCodeExecutor ¶
type BasicCodeExecutor struct {
// contains filtered or unexported fields
}
type ContainerExecutor ¶
type ContainerExecutor struct { Env map[string]string State string ContainerId string // contains filtered or unexported fields }
func NewContainerExecutor ¶
func NewContainerExecutor(function *Function) ContainerExecutor
func (*ContainerExecutor) StartContainer ¶
func (executor *ContainerExecutor) StartContainer(tempDir string) error
func (*ContainerExecutor) StopContainer ¶
func (executor *ContainerExecutor) StopContainer()
type DockerContainerManager ¶
type DockerContainerManager struct {
// contains filtered or unexported fields
}
func (*DockerContainerManager) Init ¶
func (manager *DockerContainerManager) Init() error
type Function ¶
type Function struct { Name string `json:"name"` Description string `json:"description"` Executor LambdaExecutor CodeUri string `json:"codeuri"` Handler string `json:"handler"` Timeout time.Duration TimeoutSeconds string `json:"timeout-seconds"` Runtime string `json:"runtime"` Arn string `json:"arn"` Tags map[string]string `json:"tags"` Env map[string]string `json:"env"` }
func (*Function) CalculateArn ¶
type LambdaExecutor ¶
type LambdaExecutor interface {
// contains filtered or unexported methods
}
type LocalOsExecutor ¶
type LocalOsExecutor struct {
// contains filtered or unexported fields
}
func NewLocalOsExecutor ¶
func NewLocalOsExecutor(function Function) *LocalOsExecutor
Click to show internal directories.
Click to hide internal directories.