Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Session = func() *session.Session {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
}))
return session.Must(session.NewSession(&aws.Config{
DisableSSL: aws.Bool(true),
Endpoint: aws.String(server.URL),
}))
}()
Session is a mock session which is used to hit the mock server
Functions ¶
func NewMockClient ¶ added in v1.2.8
func NewMockClient(cfgs ...*aws.Config) *client.Client
NewMockClient creates and initializes a client that will connect to the mock server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.