Documentation
¶
Overview ¶
Package lambda implements the aws.lambda source plugin: lists AWS Lambda functions and emits serverless_function evidence records with cross-vendor VPC-placement, tracing, and environment-variable-encryption attributes.
Index ¶
Constants ¶
View Source
const EvidenceTypeID = "serverless_function"
EvidenceTypeID is the evidence type this plugin emits.
View Source
const SourceID = "aws.lambda"
SourceID is the registered ID for the aws.lambda plugin instance.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
ListFunctions(ctx context.Context, params *awslambda.ListFunctionsInput, optFns ...func(*awslambda.Options)) (*awslambda.ListFunctionsOutput, error)
}
API is the subset of the Lambda client this plugin uses.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is the in-process aws.lambda source.
func NewFromAWS ¶
NewFromAWS constructs a Plugin backed by the real AWS SDK.
func (*Plugin) Collect ¶
func (p *Plugin) Collect(ctx context.Context, req core.SlotRequest) ([]core.EvidenceRecord, error)
Collect lists functions and returns one serverless_function record per function.
Click to show internal directories.
Click to hide internal directories.