Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.0.3"
Version is the version of ssm-sign-proxy.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceContext ¶
type InstanceContext struct { InstanceID string `json:"instance_id"` Hostname string `json:"hostname"` }
InstanceContext contains the information to identify the ARN invoking the lambda
type Lambda ¶
type Lambda struct { Config aws.Config Prefix string Client *http.Client // contains filtered or unexported fields }
Lambda is a lambda function.
type Parameter ¶
type Parameter struct { // general http headers Headers http.Header // basic authorization User string Password string // rewrite url Path string // general queries Queries url.Values }
Parameter is parameter for signing.
type Proxy ¶
type Proxy struct { Config aws.Config FunctionName string ErrorHandler func(http.ResponseWriter, *http.Request, error) // contains filtered or unexported fields }
Proxy is a proxy which signs requests using AWS System Manager Parameter Store.
type Request ¶
type Request struct { HTTPMethod string `json:"httpMethod"` Path string `json:"path"` QueryStringParameters map[string]string `json:"queryStringParameters,omitempty"` MultiValueQueryStringParameters map[string][]string `json:"multiValueQueryStringParameters,omitempty"` Headers map[string]string `json:"headers,omitempty"` MultiValueHeaders map[string][]string `json:"multiValueHeaders,omitempty"` RequestContext RequestContext `json:"requestContext"` IsBase64Encoded bool `json:"isBase64Encoded"` Body string `json:"body"` }
Request contains data originating from the proxy.
func NewRequest ¶
NewRequest converts the request to AWS Lambda event.
type RequestContext ¶
type RequestContext struct {
Instance InstanceContext `json:"instance"`
}
RequestContext contains the information to identify the instance invoking the lambda
type Response ¶
type Response struct { StatusCode int `json:"statusCode"` StatusDescription string `json:"statusDescription"` Headers map[string]string `json:"headers"` MultiValueHeaders map[string][]string `json:"multiValueHeaders"` Body string `json:"body"` IsBase64Encoded bool `json:"isBase64Encoded"` }
Response configures the response to be returned by the ALB Lambda target group for the request
func NewResponse ¶
NewResponse returns new Response.
Click to show internal directories.
Click to hide internal directories.