Documentation ¶
Overview ¶
Package aws_signing_client returns an HTTP client for use with AWS services that require signatures but are not supported by the official AWS SDK for Go, such as the Amazon Elasticsearch Service, that signs requests before sending.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(v4s *v4.Signer, client *http.Client, service string, region string, cl ContextLogger) (*http.Client, error)
New obtains an HTTP client with a RoundTripper that signs AWS requests for the provided service. An existing client can be specified for the `client` value, or--if nil--a new HTTP client will be created.
Types ¶
type ContextLogger ¶
ContextLogger is used for context-enabled logging.
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
DefaultLogger implements ContextLogger interface using log.Logger. This effectively means the context is ignored.
type MissingRegionError ¶
type MissingRegionError struct{}
MissingRegionError is an implementation of the error interface that indicates that no AWS region was provided in order to create a client.
func (MissingRegionError) Error ¶
func (err MissingRegionError) Error() string
Error implements the error interface.
type MissingServiceError ¶
type MissingServiceError struct{}
MissingServiceError is an implementation of the error interface that indicates that no AWS service was provided in order to create a client.
func (MissingServiceError) Error ¶
func (err MissingServiceError) Error() string
Error implements the error interface.
type MissingSignerError ¶
type MissingSignerError struct{}
MissingSignerError is an implementation of the error interface that indicates that no AWS v4.Signer was provided in order to create a client.
func (MissingSignerError) Error ¶
func (err MissingSignerError) Error() string
Error implements the error interface.