lambda

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: MIT Imports: 8 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.

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

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