Documentation ¶
Index ¶
- func CreateFunction(input CreateFunctionInput) (map[string]interface{}, error)
- func DeleteFunction(input DeleteFunctionInput)
- func ReadFunction(input ReadFunctionInput) (map[string]interface{}, error)
- func Rollback(input DeleteFunctionInput, err error)
- func UpdateFunction(input UpdateFunctionInput) (map[string]interface{}, error)
- type CreateFunctionInput
- type DeleteFunctionInput
- type HTTPCreateEvent
- type HTTPCreateFunctionInput
- type HTTPDeleteEvent
- type HTTPDeleteFunctionInput
- type HTTPReadEvent
- type HTTPReadFunctionInput
- type HTTPUpdateEvent
- type HTTPUpdateFunctionInput
- type ReadFunctionInput
- type S3CreateEvent
- type S3CreateFunctionInput
- type S3DeleteEvent
- type S3DeleteFunctionInput
- type S3ReadEvent
- type S3ReadFunctionInput
- type S3UpdateEvent
- type S3UpdateFunctionInput
- type SQSCreateEvent
- type SQSCreateFunctionInput
- type SQSDeleteEvent
- type SQSReadEvent
- type UpdateFunctionInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFunction ¶
func CreateFunction(input CreateFunctionInput) (map[string]interface{}, error)
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{}, error)
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
func UpdateFunction ¶
func UpdateFunction(input UpdateFunctionInput) (map[string]interface{}, error)
UpdateFunction will update function and all the dependencies
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 ¶
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 ¶
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 HTTPUpdateEvent ¶
type HTTPUpdateEvent struct { Path *string Method *string Existing bool ApiId *string ResourceId *string ApiName *string ExecutionRole *string }
HTTPUpdateEvent HTTP (API Gateway) trigger of a lambda function
type HTTPUpdateFunctionInput ¶
type HTTPUpdateFunctionInput struct { UpdateFunctionConfigurationInput *lambda.UpdateFunctionConfigurationInput HTTPUpdateEvent }
HTTPUpdateFunctionInput is an implementation of UpdateFunctionInput Update serveless function with http trigger
func (HTTPUpdateFunctionInput) GetUpdateFunctionConfiguration ¶
func (input HTTPUpdateFunctionInput) GetUpdateFunctionConfiguration() *lambda.UpdateFunctionConfigurationInput
GetUpdateFunctionConfiguration return the UpdateFunctionConfigurationInput from the custom input
func (HTTPUpdateFunctionInput) UpdateDependencies ¶
func (input HTTPUpdateFunctionInput) UpdateDependencies(lambdaResult *lambda.FunctionConfiguration) (map[string]interface{}, error)
UpdateDependencies create all the dependencies for the HTTPEvent
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 Suffix *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 ¶
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 ¶
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
type S3UpdateEvent ¶
type S3UpdateEvent struct { Bucket *string Prefix *string Suffix *string Types []*string Key *string StatementId *string }
S3UpdateEvent S3 trigger of a lambda function
type S3UpdateFunctionInput ¶
type S3UpdateFunctionInput struct { UpdateFunctionConfigurationInput *lambda.UpdateFunctionConfigurationInput S3UpdateEvent }
S3UpdateFunctionInput is an implementation of UpdateFunctionInput Update serveless function with s3 trigger
func (S3UpdateFunctionInput) GetUpdateFunctionConfiguration ¶
func (input S3UpdateFunctionInput) GetUpdateFunctionConfiguration() *lambda.UpdateFunctionConfigurationInput
GetUpdateFunctionConfiguration return the UpdateFunctionConfigurationInput from the custom input
func (S3UpdateFunctionInput) UpdateDependencies ¶
func (input S3UpdateFunctionInput) UpdateDependencies(lambdaResult *lambda.FunctionConfiguration) (map[string]interface{}, error)
UpdateDependencies implements the dependencies deletion for S3 Event
type SQSCreateEvent ¶
type SQSCreateEvent struct { Existing bool QueueName *string DelaySeconds *int MaximumMessageSize *int MessageRetentionPeriod *int ReceiveMessageWaitTimeSeconds *int VisibilityTimeout *int FifoQueue bool KmsMasterKeyId *string ContentBasedDeduplication bool }
SQSCreateEvent SQS trigger of a lambda function
type SQSCreateFunctionInput ¶
type SQSCreateFunctionInput struct { FunctionInput *lambda.CreateFunctionInput SQSCreateEvent }
SQSCreateFunctionInput is an implementation of CreateFunctionInput Create serveless function with SQS as trigger
type SQSDeleteEvent ¶
SQSDeleteEvent SQS trigger of a lambda function
type SQSReadEvent ¶
type SQSReadEvent struct {
QueueUrl *string
}
SQSReadEvent SQS trigger of a lambda function
type UpdateFunctionInput ¶
type UpdateFunctionInput interface { UpdateDependencies(*lambda.FunctionConfiguration) (map[string]interface{}, error) GetUpdateFunctionConfiguration() *lambda.UpdateFunctionConfigurationInput }
UpdateFunctionInput is an interface to Update a serverless function and the relative trigger
Source Files ¶
- abstract.go
- abstract_create.go
- abstract_delete.go
- abstract_read.go
- abstract_update.go
- events_create.go
- events_delete.go
- events_read.go
- events_update.go
- function.go
- implementation_create_http.go
- implementation_create_s3.go
- implementation_delete_http.go
- implementation_delete_s3.go
- implementation_read_http.go
- implementation_read_s3.go
- implementation_update_http.go
- implementation_update_s3.go