Documentation ¶
Index ¶
- type LambdaCrdAPI
- func (lambdaCrdAPI *LambdaCrdAPI) Delete(request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
- func (lambdaCrdAPI *LambdaCrdAPI) Get(request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
- func (lambdaCrdAPI *LambdaCrdAPI) HTTPMethodProxy(request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
- func (lambdaCrdAPI *LambdaCrdAPI) Post(request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LambdaCrdAPI ¶
type LambdaCrdAPI struct {
// contains filtered or unexported fields
}
LambdaCrdAPI Lambda implementation of CrdAPI
func NewLambdaCrdAPI ¶
func NewLambdaCrdAPI(repo repository.KeyValueRepo, toStructFunction func(jsonString string) (interface{}, error)) *LambdaCrdAPI
NewLambdaCrdAPI generating a struct to allow CRD actions
func (*LambdaCrdAPI) Delete ¶
func (lambdaCrdAPI *LambdaCrdAPI) Delete(request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
Delete removes an entity
func (*LambdaCrdAPI) Get ¶
func (lambdaCrdAPI *LambdaCrdAPI) Get(request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
Get method returns all stored entities
func (*LambdaCrdAPI) HTTPMethodProxy ¶
func (lambdaCrdAPI *LambdaCrdAPI) HTTPMethodProxy(request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
HTTPMethodProxy proxies requests to CRD method based on HTTP method
func (*LambdaCrdAPI) Post ¶
func (lambdaCrdAPI *LambdaCrdAPI) Post(request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
Post method create a new entity
Click to show internal directories.
Click to hide internal directories.