Documentation
¶
Index ¶
- Variables
- type FunctionStatusOperation
- func (o *FunctionStatusOperation) Description() string
- func (o *FunctionStatusOperation) Execute(ctx context.Context, params map[string]interface{}) (interface{}, error)
- func (o *FunctionStatusOperation) GetFunctionStatus(ctx context.Context) ([]cloud.FunctionStatus, error)
- func (o *FunctionStatusOperation) IsUIVisible() bool
- func (o *FunctionStatusOperation) Name() string
- type LambdaExecuteOperation
- func (o *LambdaExecuteOperation) Description() string
- func (o *LambdaExecuteOperation) Execute(ctx context.Context, params map[string]interface{}) (interface{}, error)
- func (o *LambdaExecuteOperation) ExecuteFunction(ctx context.Context, functionName string, payload string) (*cloud.LambdaExecuteResult, error)
- func (o *LambdaExecuteOperation) IsUIVisible() bool
- func (o *LambdaExecuteOperation) Name() string
- type Service
- type WorkflowsCategory
Constants ¶
This section is empty.
Variables ¶
var ( ErrLoadConfig = errors.New("failed to load AWS config") ErrListFunctions = errors.New("failed to list functions") ErrGetFunction = errors.New("failed to get function details") )
Common errors.
var (
ErrInvokeFunction = errors.New("failed to invoke function")
)
Common errors for Lambda execution.
Functions ¶
This section is empty.
Types ¶
type FunctionStatusOperation ¶
type FunctionStatusOperation struct {
// contains filtered or unexported fields
}
FunctionStatusOperation represents an operation to view Lambda function status.
func NewFunctionStatusOperation ¶
func NewFunctionStatusOperation(profile, region string) *FunctionStatusOperation
NewFunctionStatusOperation creates a new function status operation.
func (*FunctionStatusOperation) Description ¶
func (o *FunctionStatusOperation) Description() string
Description returns the operation's description.
func (*FunctionStatusOperation) Execute ¶
func (o *FunctionStatusOperation) Execute(ctx context.Context, params map[string]interface{}) (interface{}, error)
Execute executes the operation with the given parameters.
func (*FunctionStatusOperation) GetFunctionStatus ¶ added in v0.1.5
func (o *FunctionStatusOperation) GetFunctionStatus(ctx context.Context) ([]cloud.FunctionStatus, error)
GetFunctionStatus returns the status of all Lambda functions.
func (*FunctionStatusOperation) IsUIVisible ¶
func (o *FunctionStatusOperation) IsUIVisible() bool
IsUIVisible returns whether this operation should be visible in the UI.
func (*FunctionStatusOperation) Name ¶
func (o *FunctionStatusOperation) Name() string
Name returns the operation's name.
type LambdaExecuteOperation ¶ added in v0.1.5
type LambdaExecuteOperation struct {
// contains filtered or unexported fields
}
LambdaExecuteOperation represents an operation to execute a Lambda function.
func NewLambdaExecuteOperation ¶ added in v0.1.5
func NewLambdaExecuteOperation(profile, region string) *LambdaExecuteOperation
NewLambdaExecuteOperation creates a new Lambda execute operation.
func (*LambdaExecuteOperation) Description ¶ added in v0.1.5
func (o *LambdaExecuteOperation) Description() string
Description returns the operation's description.
func (*LambdaExecuteOperation) Execute ¶ added in v0.1.5
func (o *LambdaExecuteOperation) Execute(ctx context.Context, params map[string]interface{}) (interface{}, error)
Execute executes the operation with the given parameters.
func (*LambdaExecuteOperation) ExecuteFunction ¶ added in v0.1.5
func (o *LambdaExecuteOperation) ExecuteFunction(ctx context.Context, functionName string, payload string) (*cloud.LambdaExecuteResult, error)
ExecuteFunction executes a Lambda function with the given payload.
func (*LambdaExecuteOperation) IsUIVisible ¶ added in v0.1.5
func (o *LambdaExecuteOperation) IsUIVisible() bool
IsUIVisible returns whether this operation should be visible in the UI.
func (*LambdaExecuteOperation) Name ¶ added in v0.1.5
func (o *LambdaExecuteOperation) Name() string
Name returns the operation's name.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the Lambda service.
func NewService ¶
NewService creates a new Lambda service.
func (*Service) Categories ¶
Categories returns all available categories for this service.
func (*Service) Description ¶
Description returns the service's description.
type WorkflowsCategory ¶
type WorkflowsCategory struct {
// contains filtered or unexported fields
}
WorkflowsCategory represents the Lambda workflows category.
func NewWorkflowsCategory ¶
func NewWorkflowsCategory(profile, region string) *WorkflowsCategory
NewWorkflowsCategory creates a new Lambda workflows category.
func (*WorkflowsCategory) Description ¶
func (c *WorkflowsCategory) Description() string
Description returns the category's description.
func (*WorkflowsCategory) IsUIVisible ¶
func (c *WorkflowsCategory) IsUIVisible() bool
IsUIVisible returns whether this category should be visible in the UI.
func (*WorkflowsCategory) Name ¶
func (c *WorkflowsCategory) Name() string
Name returns the category's name.
func (*WorkflowsCategory) Operations ¶
func (c *WorkflowsCategory) Operations() []cloud.Operation
Operations returns all available operations for this category.