Documentation
¶
Index ¶
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.
Functions ¶
This section is empty.
Types ¶
type FunctionStatus ¶
type FunctionStatus struct {
Name string
Runtime string
Memory int32
Timeout int32
LastUpdate string
Role string
Handler string
Description string
FunctionArn string
CodeSize int64
Version string
PackageType string
Architecture string
LogGroup string
}
FunctionStatus represents the status of a Lambda function
func GetFunctionStatus ¶
func GetFunctionStatus(ctx context.Context, profile, region string) ([]FunctionStatus, error)
GetFunctionStatus returns the status of all Lambda functions
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) 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 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.