Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrCannotCreateSession is an error returned from any AWS session initialization that fails. ErrCannotCreateSession = errors.New("it was impossible to create an AWS session") // ErrCannotCreateSession is an error returned from any AWS session initialization that fails. ErrCannotRetrieveLambdas = errors.New("tt was impossible to retrieve AWS Lambda functions") )
Functions ¶
This section is empty.
Types ¶
type Lambda ¶
type Lambda struct {
// contains filtered or unexported fields
}
Lambda represents a AWS Lambda with all properties need by lambda-monitor to run
func LambdaBuilder ¶
func LambdaBuilder(awsFunction *lambda.FunctionConfiguration) (lambda *Lambda)
LambdaBuilder knows how to build a Lambda from a FunctionConfiguration provided by AWS package TODO add tests
type Lambdas ¶
type Lambdas struct {
// contains filtered or unexported fields
}
Lambdas stores a collection of Lambdas and collection related funcs to operate over them
func NewLambdaList ¶
func NewLambdaList() Lambdas
func (Lambdas) GetIterator ¶
func (lambdas Lambdas) GetIterator() *LambdasIterator
GetIterator retrieves an iterator to the current Lambdass TODO add tests
func (Lambdas) Load ¶
Process list the lambdas associated to an AWS account and print them TODO refactor and add tests
func (Lambdas) Print ¶
Print func walks through all lambdas stored at Lambdas type and print them to the standard output
type LambdasIterator ¶
type LambdasIterator struct {
// contains filtered or unexported fields
}
LambdasIterator contains a temporary data to iterate over a Lambdas type
func (LambdasIterator) Get ¶
func (iterator LambdasIterator) Get() (lambda Lambda)
Retrieves the lambda stored in the current head position TODO add tests
func (*LambdasIterator) Next ¶
func (iterator *LambdasIterator) Next() bool
Next moves the internal head of the iterator to the next position if its possible TODO add tests