function

package
v0.0.0-...-0d1d2e0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFunction

func CreateFunction(input CreateFunctionInput) map[string]interface{}

CreateFunction will create function and all the dependencies

func DeleteFunction

func DeleteFunction(input DeleteFunctionInput)

DeleteFunction will delete the function and all the dependencies

func ReadFunction

func ReadFunction(input ReadFunctionInput) map[string]interface{}

ReadFunction will return the function and all the dependencies details

func Rollback

func Rollback(input DeleteFunctionInput, err error)

Rollback call the object's DeleteDependencies method

Types

type CreateFunctionInput

type CreateFunctionInput interface {
	CreateDependencies(*lambda.FunctionConfiguration) (map[string]interface{}, error)
	GetFunctionInput() *lambda.CreateFunctionInput
}

CreateFunctionInput is an interface to create a serverless function and the relative trigger

type DeleteFunctionInput

type DeleteFunctionInput interface {
	DeleteDependencies(*lambda.DeleteFunctionInput)
	GetFunctionInput() *lambda.DeleteFunctionInput
}

DeleteFunctionInput is an interface to delete a serverless function and the relative triggger

type HTTPCreateEvent

type HTTPCreateEvent struct {
	Path          *string
	Method        *string
	Existing      bool
	ApiId         *string
	ApiName       *string
	ExecutionRole *string
}

HTTPCreateEvent HTTP (API Gateway) trigger of a lambda function

type HTTPCreateFunctionInput

type HTTPCreateFunctionInput struct {
	FunctionInput *lambda.CreateFunctionInput
	HTTPCreateEvent
}

HTTPCreateFunctionInput is an implementation of CreateFunctionInput Create serveless function with http trigger

func (HTTPCreateFunctionInput) CreateDependencies

func (input HTTPCreateFunctionInput) CreateDependencies(lambdaResult *lambda.FunctionConfiguration) (map[string]interface{}, error)

CreateDependencies create all the dependencies for the HTTPEvent

func (HTTPCreateFunctionInput) GetFunctionInput

func (input HTTPCreateFunctionInput) GetFunctionInput() *lambda.CreateFunctionInput

GetFunctionInput return the CreateFunctionInput from the custom input

type HTTPDeleteEvent

type HTTPDeleteEvent struct {
	ApiId      *string
	ResourceId *string
	Method     *string
}

HTTPDeleteEvent HTTP (API Gateway) trigger of a lambda function

type HTTPDeleteFunctionInput

type HTTPDeleteFunctionInput struct {
	FunctionInput *lambda.DeleteFunctionInput
	HTTPDeleteEvent
}

HTTPDeleteFunctionInput is an implementation of CreateFunctionInput Create serveless function with http trigger

func (HTTPDeleteFunctionInput) DeleteDependencies

func (input HTTPDeleteFunctionInput) DeleteDependencies(lambdaResult *lambda.DeleteFunctionInput)

DeleteDependencies implements the dependencies deletion for HTTP Event

func (HTTPDeleteFunctionInput) GetFunctionInput

func (input HTTPDeleteFunctionInput) GetFunctionInput() *lambda.DeleteFunctionInput

GetFunctionInput return the DeleteFunctionInput from the custom input

type HTTPReadEvent

type HTTPReadEvent struct {
	ApiId      *string
	ResourceId *string
	Method     *string
}

HTTPReadEvent HTTP (API Gateway) trigger of a lambda function

type HTTPReadFunctionInput

type HTTPReadFunctionInput struct {
	FunctionConfigurationInput *lambda.GetFunctionConfigurationInput
	HTTPReadEvent
}

HTTPReadFunctionInput is an implementation of ReadFunctionInput Read serveless function with http trigger

func (HTTPReadFunctionInput) GetFunctionConfiguration

func (input HTTPReadFunctionInput) GetFunctionConfiguration() *lambda.GetFunctionConfigurationInput

GetFunctionInput return the ReadFunctionInput from the custom input

func (HTTPReadFunctionInput) ReadDependencies

func (input HTTPReadFunctionInput) ReadDependencies(lambdaResult *lambda.FunctionConfiguration) map[string]interface{}

ReadDependencies implements the dependencies deletion for HTTP Event

type ReadFunctionInput

type ReadFunctionInput interface {
	ReadDependencies(*lambda.FunctionConfiguration) map[string]interface{}
	GetFunctionConfiguration() *lambda.GetFunctionConfigurationInput
}

ReadFunctionInput is an interface to Read a serverless function and the relative trigger

type S3CreateEvent

type S3CreateEvent struct {
	Bucket *string
	Prefix *string
	Suffic *string
	Types  []*string
	Key    *string
}

S3CreateEvent S3 trigger of a lambda function

type S3CreateFunctionInput

type S3CreateFunctionInput struct {
	FunctionInput *lambda.CreateFunctionInput
	S3CreateEvent
}

S3CreateFunctionInput is an implementation of CreateFunctionInput Create serveless function with s3 trigger

func (S3CreateFunctionInput) CreateDependencies

func (input S3CreateFunctionInput) CreateDependencies(lambdaResult *lambda.FunctionConfiguration) (map[string]interface{}, error)

CreateDependencies create all the dependencies for S3Event

func (S3CreateFunctionInput) GetFunctionInput

func (input S3CreateFunctionInput) GetFunctionInput() *lambda.CreateFunctionInput

GetFunctionInput return the CreateFunctionInput from the custom input

type S3DeleteEvent

type S3DeleteEvent struct {
	Bucket      *string
	StatementId *string
}

S3DeleteEvent S3 trigger of a lambda function

type S3DeleteFunctionInput

type S3DeleteFunctionInput struct {
	FunctionInput *lambda.DeleteFunctionInput
	S3DeleteEvent
}

S3DeleteFunctionInput is an implementation of CreateFunctionInput Create serveless function with s3 trigger

func (S3DeleteFunctionInput) DeleteDependencies

func (input S3DeleteFunctionInput) DeleteDependencies(lambdaResult *lambda.DeleteFunctionInput)

DeleteDependencies implements the dependencies deletion for S3 Event

func (S3DeleteFunctionInput) GetFunctionInput

func (input S3DeleteFunctionInput) GetFunctionInput() *lambda.DeleteFunctionInput

GetFunctionInput return the DeleteFunctionInput from the custom input

type S3ReadEvent

type S3ReadEvent struct {
	Bucket      *string
	StatementId *string
}

S3ReadEvent S3 trigger of a lambda function

type S3ReadFunctionInput

type S3ReadFunctionInput struct {
	FunctionConfigurationInput *lambda.GetFunctionConfigurationInput
	S3ReadEvent
}

S3ReadFunctionInput is an implementation of ReadFunctionInput Read serveless function with s3 trigger

func (S3ReadFunctionInput) GetFunctionConfiguration

func (input S3ReadFunctionInput) GetFunctionConfiguration() *lambda.GetFunctionConfigurationInput

GetFunctionInput return the ReadFunctionInput from the custom input

func (S3ReadFunctionInput) ReadDependencies

func (input S3ReadFunctionInput) ReadDependencies(lambdaResult *lambda.FunctionConfiguration) map[string]interface{}

ReadDependencies implements the dependencies deletion for S3 Event

Jump to

Keyboard shortcuts

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