lambda

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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

func NewService(profile, region string) *Service

NewService creates a new Lambda service.

func (*Service) Categories

func (s *Service) Categories() []cloud.Category

Categories returns all available categories for this service.

func (*Service) Description

func (s *Service) Description() string

Description returns the service's description.

func (*Service) Name

func (s *Service) Name() string

Name returns the service's name.

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.

Jump to

Keyboard shortcuts

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