Documentation
¶
Overview ¶
Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00 For SDKVersion 1.28.13 Package outpostsdouble contains test double implementation of outpostsiface.OutpostsAPI
Package outpostsdouble provides a TestDouble implementation of outpostsiface.OutpostsAPI ¶
Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00
Index ¶
- type OutpostsDouble
- func (d *OutpostsDouble) CreateOutpost(i0 *outposts.CreateOutpostInput) (r0 *outposts.CreateOutpostOutput, r1 error)
- func (d *OutpostsDouble) CreateOutpostRequest(i0 *outposts.CreateOutpostInput) (r0 *request.Request, r1 *outposts.CreateOutpostOutput)
- func (d *OutpostsDouble) CreateOutpostWithContext(i0 context.Context, i1 *outposts.CreateOutpostInput, i2 ...request.Option) (r0 *outposts.CreateOutpostOutput, r1 error)
- func (d *OutpostsDouble) GetOutpost(i0 *outposts.GetOutpostInput) (r0 *outposts.GetOutpostOutput, r1 error)
- func (d *OutpostsDouble) GetOutpostInstanceTypes(i0 *outposts.GetOutpostInstanceTypesInput) (r0 *outposts.GetOutpostInstanceTypesOutput, r1 error)
- func (d *OutpostsDouble) GetOutpostInstanceTypesRequest(i0 *outposts.GetOutpostInstanceTypesInput) (r0 *request.Request, r1 *outposts.GetOutpostInstanceTypesOutput)
- func (d *OutpostsDouble) GetOutpostInstanceTypesWithContext(i0 context.Context, i1 *outposts.GetOutpostInstanceTypesInput, ...) (r0 *outposts.GetOutpostInstanceTypesOutput, r1 error)
- func (d *OutpostsDouble) GetOutpostRequest(i0 *outposts.GetOutpostInput) (r0 *request.Request, r1 *outposts.GetOutpostOutput)
- func (d *OutpostsDouble) GetOutpostWithContext(i0 context.Context, i1 *outposts.GetOutpostInput, i2 ...request.Option) (r0 *outposts.GetOutpostOutput, r1 error)
- func (d *OutpostsDouble) ListOutposts(i0 *outposts.ListOutpostsInput) (r0 *outposts.ListOutpostsOutput, r1 error)
- func (d *OutpostsDouble) ListOutpostsPages(i0 *outposts.ListOutpostsInput, ...) (r0 error)
- func (d *OutpostsDouble) ListOutpostsPagesWithContext(i0 context.Context, i1 *outposts.ListOutpostsInput, ...) (r0 error)
- func (d *OutpostsDouble) ListOutpostsRequest(i0 *outposts.ListOutpostsInput) (r0 *request.Request, r1 *outposts.ListOutpostsOutput)
- func (d *OutpostsDouble) ListOutpostsWithContext(i0 context.Context, i1 *outposts.ListOutpostsInput, i2 ...request.Option) (r0 *outposts.ListOutpostsOutput, r1 error)
- func (d *OutpostsDouble) ListSites(i0 *outposts.ListSitesInput) (r0 *outposts.ListSitesOutput, r1 error)
- func (d *OutpostsDouble) ListSitesPages(i0 *outposts.ListSitesInput, i1 func(*outposts.ListSitesOutput, bool) bool) (r0 error)
- func (d *OutpostsDouble) ListSitesPagesWithContext(i0 context.Context, i1 *outposts.ListSitesInput, ...) (r0 error)
- func (d *OutpostsDouble) ListSitesRequest(i0 *outposts.ListSitesInput) (r0 *request.Request, r1 *outposts.ListSitesOutput)
- func (d *OutpostsDouble) ListSitesWithContext(i0 context.Context, i1 *outposts.ListSitesInput, i2 ...request.Option) (r0 *outposts.ListSitesOutput, r1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutpostsDouble ¶
type OutpostsDouble struct { outpostsiface.OutpostsAPI *awsdouble.AWSTestDouble }
OutpostsDouble is TestDouble for outpostsiface.OutpostsAPI
func NewDouble ¶
func NewDouble(t godouble.T, configurators ...func(*awsdouble.AWSTestDouble)) *OutpostsDouble
Constructor for OutpostsDouble Default configuration will ensure
API operations not explicitly stubbed will return an empty output struct pointer, and nil error. To simulate long polling, "Poll" operations will return these values after a random delay of up to 100ms.
WithContext methods implement a 'Fake' method that returns a cancellation error if the context is cancelled before the method is called.
Pages and PagesWithContext methods similarly implement a 'Fake' method that paginates over the underlying method.
This allows tests to only stub the simple api methods and be generally unconcerned whether the SUT is using the Context or Pagination forms of the API.
func (*OutpostsDouble) CreateOutpost ¶
func (d *OutpostsDouble) CreateOutpost(i0 *outposts.CreateOutpostInput) (r0 *outposts.CreateOutpostOutput, r1 error)
func (*OutpostsDouble) CreateOutpostRequest ¶
func (d *OutpostsDouble) CreateOutpostRequest(i0 *outposts.CreateOutpostInput) (r0 *request.Request, r1 *outposts.CreateOutpostOutput)
func (*OutpostsDouble) CreateOutpostWithContext ¶
func (d *OutpostsDouble) CreateOutpostWithContext(i0 context.Context, i1 *outposts.CreateOutpostInput, i2 ...request.Option) (r0 *outposts.CreateOutpostOutput, r1 error)
func (*OutpostsDouble) GetOutpost ¶
func (d *OutpostsDouble) GetOutpost(i0 *outposts.GetOutpostInput) (r0 *outposts.GetOutpostOutput, r1 error)
func (*OutpostsDouble) GetOutpostInstanceTypes ¶
func (d *OutpostsDouble) GetOutpostInstanceTypes(i0 *outposts.GetOutpostInstanceTypesInput) (r0 *outposts.GetOutpostInstanceTypesOutput, r1 error)
func (*OutpostsDouble) GetOutpostInstanceTypesRequest ¶
func (d *OutpostsDouble) GetOutpostInstanceTypesRequest(i0 *outposts.GetOutpostInstanceTypesInput) (r0 *request.Request, r1 *outposts.GetOutpostInstanceTypesOutput)
func (*OutpostsDouble) GetOutpostInstanceTypesWithContext ¶
func (d *OutpostsDouble) GetOutpostInstanceTypesWithContext(i0 context.Context, i1 *outposts.GetOutpostInstanceTypesInput, i2 ...request.Option) (r0 *outposts.GetOutpostInstanceTypesOutput, r1 error)
func (*OutpostsDouble) GetOutpostRequest ¶
func (d *OutpostsDouble) GetOutpostRequest(i0 *outposts.GetOutpostInput) (r0 *request.Request, r1 *outposts.GetOutpostOutput)
func (*OutpostsDouble) GetOutpostWithContext ¶
func (d *OutpostsDouble) GetOutpostWithContext(i0 context.Context, i1 *outposts.GetOutpostInput, i2 ...request.Option) (r0 *outposts.GetOutpostOutput, r1 error)
func (*OutpostsDouble) ListOutposts ¶
func (d *OutpostsDouble) ListOutposts(i0 *outposts.ListOutpostsInput) (r0 *outposts.ListOutpostsOutput, r1 error)
func (*OutpostsDouble) ListOutpostsPages ¶
func (d *OutpostsDouble) ListOutpostsPages(i0 *outposts.ListOutpostsInput, i1 func(*outposts.ListOutpostsOutput, bool) bool) (r0 error)
func (*OutpostsDouble) ListOutpostsPagesWithContext ¶
func (d *OutpostsDouble) ListOutpostsPagesWithContext(i0 context.Context, i1 *outposts.ListOutpostsInput, i2 func(*outposts.ListOutpostsOutput, bool) bool, i3 ...request.Option) (r0 error)
func (*OutpostsDouble) ListOutpostsRequest ¶
func (d *OutpostsDouble) ListOutpostsRequest(i0 *outposts.ListOutpostsInput) (r0 *request.Request, r1 *outposts.ListOutpostsOutput)
func (*OutpostsDouble) ListOutpostsWithContext ¶
func (d *OutpostsDouble) ListOutpostsWithContext(i0 context.Context, i1 *outposts.ListOutpostsInput, i2 ...request.Option) (r0 *outposts.ListOutpostsOutput, r1 error)
func (*OutpostsDouble) ListSites ¶
func (d *OutpostsDouble) ListSites(i0 *outposts.ListSitesInput) (r0 *outposts.ListSitesOutput, r1 error)
func (*OutpostsDouble) ListSitesPages ¶
func (d *OutpostsDouble) ListSitesPages(i0 *outposts.ListSitesInput, i1 func(*outposts.ListSitesOutput, bool) bool) (r0 error)
func (*OutpostsDouble) ListSitesPagesWithContext ¶
func (d *OutpostsDouble) ListSitesPagesWithContext(i0 context.Context, i1 *outposts.ListSitesInput, i2 func(*outposts.ListSitesOutput, bool) bool, i3 ...request.Option) (r0 error)
func (*OutpostsDouble) ListSitesRequest ¶
func (d *OutpostsDouble) ListSitesRequest(i0 *outposts.ListSitesInput) (r0 *request.Request, r1 *outposts.ListSitesOutput)
func (*OutpostsDouble) ListSitesWithContext ¶
func (d *OutpostsDouble) ListSitesWithContext(i0 context.Context, i1 *outposts.ListSitesInput, i2 ...request.Option) (r0 *outposts.ListSitesOutput, r1 error)