Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPPlugin ¶
GetHTTPPlugin is required as part of the Secretless plugin spec for HTTP connector plugins. It returns the HTTP plugin.
func NewConnector ¶
NewConnector returns an http.Connector that decorates each incoming http request with authorization data.
func PluginInfo ¶
PluginInfo is required as part of the Secretless plugin spec. It provides important metadata about the plugin.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector injects an HTTP request with AWS authorization headers.
func (*Connector) Connect ¶
func (c *Connector) Connect( req *gohttp.Request, credentialsByID connector.CredentialValuesByID, ) error
Connect is the function that implements the http.Connector func signature. It has access to the client http.Request and the credentials (as a map), and is expected to decorate the request with Authorization headers.
Connect uses the "accessKeyId", "secretAccessKey" and optional "accessToken" credentials to sign the Authorization header, following the AWS signature format.