Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestEndpointResolver ¶
func TestEndpointResolver(url string) aws.EndpointResolverWithOptions
TestEndpointResolver returns an endpoint resolver that uses the given URL for the resolved endpoint
Types ¶
type MockHttpClient ¶
type MockHttpClient struct { Response *http.Response ResponseError error CapturedReq *http.Request CapturedBody []byte }
MockHttpClient is a simple utility for mocking HTTP responses and capturing requests
type StubCredentialsProvider ¶
type StubCredentialsProvider struct{}
StubCredentialsProvider provides a stub credential provider that returns static credentials that never expire.
func (StubCredentialsProvider) Retrieve ¶
func (StubCredentialsProvider) Retrieve(context.Context) (aws.Credentials, error)
Retrieve satisfies the CredentialsProvider interface. Returns stub credential value, and never error.
Click to show internal directories.
Click to hide internal directories.