core

package
v0.0.0-...-dd4bf65 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

func (Lambda) GetName

func (l Lambda) GetName() string

GetName allows others to retrieve Lambda name 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) Get

func (lambdas Lambdas) Get() []Lambda

Get returns the internal array of lambdas from Lambdas type TODO add tests

func (Lambdas) GetIterator

func (lambdas Lambdas) GetIterator() *LambdasIterator

GetIterator retrieves an iterator to the current Lambdass TODO add tests

func (Lambdas) Load

func (lambdas Lambdas) Load() Lambdas

Process list the lambdas associated to an AWS account and print them TODO refactor and add tests

func (Lambdas) Print

func (lambdas Lambdas) Print() Lambdas

Print func walks through all lambdas stored at Lambdas type and print them to the standard output

func (*Lambdas) Put

func (lambdas *Lambdas) Put(lambda Lambda)

Size returns the amount of lambdas found TODO add tests

func (Lambdas) Set

func (lambdas Lambdas) Set(newLambdas []Lambda)

Set replaces the internal array of lambdas TODO add tests

func (Lambdas) Size

func (lambdas Lambdas) Size() int

Size returns the amount of lambdas found TODO add tests

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

Jump to

Keyboard shortcuts

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