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 computeoptimizerdouble contains test double implementation of computeoptimizeriface.ComputeOptimizerAPI
Package computeoptimizerdouble provides a TestDouble implementation of computeoptimizeriface.ComputeOptimizerAPI ¶
Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00
Index ¶
- type ComputeOptimizerDouble
- func (d *ComputeOptimizerDouble) GetAutoScalingGroupRecommendations(i0 *computeoptimizer.GetAutoScalingGroupRecommendationsInput) (r0 *computeoptimizer.GetAutoScalingGroupRecommendationsOutput, r1 error)
- func (d *ComputeOptimizerDouble) GetAutoScalingGroupRecommendationsRequest(i0 *computeoptimizer.GetAutoScalingGroupRecommendationsInput) (r0 *request.Request, ...)
- func (d *ComputeOptimizerDouble) GetAutoScalingGroupRecommendationsWithContext(i0 context.Context, ...) (r0 *computeoptimizer.GetAutoScalingGroupRecommendationsOutput, r1 error)
- func (d *ComputeOptimizerDouble) GetEC2InstanceRecommendations(i0 *computeoptimizer.GetEC2InstanceRecommendationsInput) (r0 *computeoptimizer.GetEC2InstanceRecommendationsOutput, r1 error)
- func (d *ComputeOptimizerDouble) GetEC2InstanceRecommendationsRequest(i0 *computeoptimizer.GetEC2InstanceRecommendationsInput) (r0 *request.Request, r1 *computeoptimizer.GetEC2InstanceRecommendationsOutput)
- func (d *ComputeOptimizerDouble) GetEC2InstanceRecommendationsWithContext(i0 context.Context, i1 *computeoptimizer.GetEC2InstanceRecommendationsInput, ...) (r0 *computeoptimizer.GetEC2InstanceRecommendationsOutput, r1 error)
- func (d *ComputeOptimizerDouble) GetEC2RecommendationProjectedMetrics(i0 *computeoptimizer.GetEC2RecommendationProjectedMetricsInput) (r0 *computeoptimizer.GetEC2RecommendationProjectedMetricsOutput, r1 error)
- func (d *ComputeOptimizerDouble) GetEC2RecommendationProjectedMetricsRequest(i0 *computeoptimizer.GetEC2RecommendationProjectedMetricsInput) (r0 *request.Request, ...)
- func (d *ComputeOptimizerDouble) GetEC2RecommendationProjectedMetricsWithContext(i0 context.Context, ...) (r0 *computeoptimizer.GetEC2RecommendationProjectedMetricsOutput, r1 error)
- func (d *ComputeOptimizerDouble) GetEnrollmentStatus(i0 *computeoptimizer.GetEnrollmentStatusInput) (r0 *computeoptimizer.GetEnrollmentStatusOutput, r1 error)
- func (d *ComputeOptimizerDouble) GetEnrollmentStatusRequest(i0 *computeoptimizer.GetEnrollmentStatusInput) (r0 *request.Request, r1 *computeoptimizer.GetEnrollmentStatusOutput)
- func (d *ComputeOptimizerDouble) GetEnrollmentStatusWithContext(i0 context.Context, i1 *computeoptimizer.GetEnrollmentStatusInput, ...) (r0 *computeoptimizer.GetEnrollmentStatusOutput, r1 error)
- func (d *ComputeOptimizerDouble) GetRecommendationSummaries(i0 *computeoptimizer.GetRecommendationSummariesInput) (r0 *computeoptimizer.GetRecommendationSummariesOutput, r1 error)
- func (d *ComputeOptimizerDouble) GetRecommendationSummariesRequest(i0 *computeoptimizer.GetRecommendationSummariesInput) (r0 *request.Request, r1 *computeoptimizer.GetRecommendationSummariesOutput)
- func (d *ComputeOptimizerDouble) GetRecommendationSummariesWithContext(i0 context.Context, i1 *computeoptimizer.GetRecommendationSummariesInput, ...) (r0 *computeoptimizer.GetRecommendationSummariesOutput, r1 error)
- func (d *ComputeOptimizerDouble) UpdateEnrollmentStatus(i0 *computeoptimizer.UpdateEnrollmentStatusInput) (r0 *computeoptimizer.UpdateEnrollmentStatusOutput, r1 error)
- func (d *ComputeOptimizerDouble) UpdateEnrollmentStatusRequest(i0 *computeoptimizer.UpdateEnrollmentStatusInput) (r0 *request.Request, r1 *computeoptimizer.UpdateEnrollmentStatusOutput)
- func (d *ComputeOptimizerDouble) UpdateEnrollmentStatusWithContext(i0 context.Context, i1 *computeoptimizer.UpdateEnrollmentStatusInput, ...) (r0 *computeoptimizer.UpdateEnrollmentStatusOutput, r1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputeOptimizerDouble ¶
type ComputeOptimizerDouble struct { computeoptimizeriface.ComputeOptimizerAPI *awsdouble.AWSTestDouble }
ComputeOptimizerDouble is TestDouble for computeoptimizeriface.ComputeOptimizerAPI
func NewDouble ¶
func NewDouble(t godouble.T, configurators ...func(*awsdouble.AWSTestDouble)) *ComputeOptimizerDouble
Constructor for ComputeOptimizerDouble 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 (*ComputeOptimizerDouble) GetAutoScalingGroupRecommendations ¶
func (d *ComputeOptimizerDouble) GetAutoScalingGroupRecommendations(i0 *computeoptimizer.GetAutoScalingGroupRecommendationsInput) (r0 *computeoptimizer.GetAutoScalingGroupRecommendationsOutput, r1 error)
func (*ComputeOptimizerDouble) GetAutoScalingGroupRecommendationsRequest ¶
func (d *ComputeOptimizerDouble) GetAutoScalingGroupRecommendationsRequest(i0 *computeoptimizer.GetAutoScalingGroupRecommendationsInput) (r0 *request.Request, r1 *computeoptimizer.GetAutoScalingGroupRecommendationsOutput)
func (*ComputeOptimizerDouble) GetAutoScalingGroupRecommendationsWithContext ¶
func (d *ComputeOptimizerDouble) GetAutoScalingGroupRecommendationsWithContext(i0 context.Context, i1 *computeoptimizer.GetAutoScalingGroupRecommendationsInput, i2 ...request.Option) (r0 *computeoptimizer.GetAutoScalingGroupRecommendationsOutput, r1 error)
func (*ComputeOptimizerDouble) GetEC2InstanceRecommendations ¶
func (d *ComputeOptimizerDouble) GetEC2InstanceRecommendations(i0 *computeoptimizer.GetEC2InstanceRecommendationsInput) (r0 *computeoptimizer.GetEC2InstanceRecommendationsOutput, r1 error)
func (*ComputeOptimizerDouble) GetEC2InstanceRecommendationsRequest ¶
func (d *ComputeOptimizerDouble) GetEC2InstanceRecommendationsRequest(i0 *computeoptimizer.GetEC2InstanceRecommendationsInput) (r0 *request.Request, r1 *computeoptimizer.GetEC2InstanceRecommendationsOutput)
func (*ComputeOptimizerDouble) GetEC2InstanceRecommendationsWithContext ¶
func (d *ComputeOptimizerDouble) GetEC2InstanceRecommendationsWithContext(i0 context.Context, i1 *computeoptimizer.GetEC2InstanceRecommendationsInput, i2 ...request.Option) (r0 *computeoptimizer.GetEC2InstanceRecommendationsOutput, r1 error)
func (*ComputeOptimizerDouble) GetEC2RecommendationProjectedMetrics ¶
func (d *ComputeOptimizerDouble) GetEC2RecommendationProjectedMetrics(i0 *computeoptimizer.GetEC2RecommendationProjectedMetricsInput) (r0 *computeoptimizer.GetEC2RecommendationProjectedMetricsOutput, r1 error)
func (*ComputeOptimizerDouble) GetEC2RecommendationProjectedMetricsRequest ¶
func (d *ComputeOptimizerDouble) GetEC2RecommendationProjectedMetricsRequest(i0 *computeoptimizer.GetEC2RecommendationProjectedMetricsInput) (r0 *request.Request, r1 *computeoptimizer.GetEC2RecommendationProjectedMetricsOutput)
func (*ComputeOptimizerDouble) GetEC2RecommendationProjectedMetricsWithContext ¶
func (d *ComputeOptimizerDouble) GetEC2RecommendationProjectedMetricsWithContext(i0 context.Context, i1 *computeoptimizer.GetEC2RecommendationProjectedMetricsInput, i2 ...request.Option) (r0 *computeoptimizer.GetEC2RecommendationProjectedMetricsOutput, r1 error)
func (*ComputeOptimizerDouble) GetEnrollmentStatus ¶
func (d *ComputeOptimizerDouble) GetEnrollmentStatus(i0 *computeoptimizer.GetEnrollmentStatusInput) (r0 *computeoptimizer.GetEnrollmentStatusOutput, r1 error)
func (*ComputeOptimizerDouble) GetEnrollmentStatusRequest ¶
func (d *ComputeOptimizerDouble) GetEnrollmentStatusRequest(i0 *computeoptimizer.GetEnrollmentStatusInput) (r0 *request.Request, r1 *computeoptimizer.GetEnrollmentStatusOutput)
func (*ComputeOptimizerDouble) GetEnrollmentStatusWithContext ¶
func (d *ComputeOptimizerDouble) GetEnrollmentStatusWithContext(i0 context.Context, i1 *computeoptimizer.GetEnrollmentStatusInput, i2 ...request.Option) (r0 *computeoptimizer.GetEnrollmentStatusOutput, r1 error)
func (*ComputeOptimizerDouble) GetRecommendationSummaries ¶
func (d *ComputeOptimizerDouble) GetRecommendationSummaries(i0 *computeoptimizer.GetRecommendationSummariesInput) (r0 *computeoptimizer.GetRecommendationSummariesOutput, r1 error)
func (*ComputeOptimizerDouble) GetRecommendationSummariesRequest ¶
func (d *ComputeOptimizerDouble) GetRecommendationSummariesRequest(i0 *computeoptimizer.GetRecommendationSummariesInput) (r0 *request.Request, r1 *computeoptimizer.GetRecommendationSummariesOutput)
func (*ComputeOptimizerDouble) GetRecommendationSummariesWithContext ¶
func (d *ComputeOptimizerDouble) GetRecommendationSummariesWithContext(i0 context.Context, i1 *computeoptimizer.GetRecommendationSummariesInput, i2 ...request.Option) (r0 *computeoptimizer.GetRecommendationSummariesOutput, r1 error)
func (*ComputeOptimizerDouble) UpdateEnrollmentStatus ¶
func (d *ComputeOptimizerDouble) UpdateEnrollmentStatus(i0 *computeoptimizer.UpdateEnrollmentStatusInput) (r0 *computeoptimizer.UpdateEnrollmentStatusOutput, r1 error)
func (*ComputeOptimizerDouble) UpdateEnrollmentStatusRequest ¶
func (d *ComputeOptimizerDouble) UpdateEnrollmentStatusRequest(i0 *computeoptimizer.UpdateEnrollmentStatusInput) (r0 *request.Request, r1 *computeoptimizer.UpdateEnrollmentStatusOutput)
func (*ComputeOptimizerDouble) UpdateEnrollmentStatusWithContext ¶
func (d *ComputeOptimizerDouble) UpdateEnrollmentStatusWithContext(i0 context.Context, i1 *computeoptimizer.UpdateEnrollmentStatusInput, i2 ...request.Option) (r0 *computeoptimizer.UpdateEnrollmentStatusOutput, r1 error)