Documentation ¶
Overview ¶
Package aws contains the services for AWS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleBase64 ¶
HandleBase64 tries to decode the provided byte slice.
Types ¶
type Facade ¶
type Facade interface { // Invoke the lambda from the provided arn.ARN using the provided Request. Invoke(ctx context.Context, ref FnRef, request *Request) (*Response, error) // CanInvoke checks, if the lambda function can be invoked. Returns an error if this is not the case. CanInvoke(ctx context.Context, ref FnRef) error }
Facade for invocation.
type FnRef ¶
type FnRef struct { // Name of the function Name string // RoleARN to be assumed (optional) RoleARN *arn.ARN }
FnRef provides the necessary parameters for invoking a lambda function.
type Headers ¶
func (*Headers) MarshalJSON ¶
func (*Headers) UnmarshalJSON ¶
func (*Headers) UnmarshalYAML ¶
type Request ¶
type Request struct { // Host in the request. Host string `json:"host,omitempty" yaml:"host,omitempty"` // URI (complete) from the request. URI string `json:"uri,omitempty" yaml:"uri,omitempty"` // Headers of the request. Headers Headers `json:"headers,omitempty" yaml:"header,omitempty"` // Method from the request. Method string `json:"method,omitempty" yaml:"method,omitempty"` // Vars parsed from the path. Vars map[string]string `json:"vars,omitempty" yaml:"vars,omitempty"` // Body from the request Body []byte `json:"body,omitempty" yaml:"body,omitempty"` }
Request to be sent to the lambda.
Click to show internal directories.
Click to hide internal directories.