in pkg/cloudprovider/aws/fake/ec2api.go [389:455]
func (e *EC2API) DescribeInstanceTypeOfferingsPagesWithContext(_ context.Context, _ *ec2.DescribeInstanceTypeOfferingsInput, fn func(*ec2.DescribeInstanceTypeOfferingsOutput, bool) bool, _ ...request.Option) error {
if e.DescribeInstanceTypeOfferingsOutput != nil {
fn(e.DescribeInstanceTypeOfferingsOutput, false)
return nil
}
fn(&ec2.DescribeInstanceTypeOfferingsOutput{
InstanceTypeOfferings: []*ec2.InstanceTypeOffering{
{
InstanceType: aws.String("m5.large"),
Location: aws.String("test-zone-1a"),
},
{
InstanceType: aws.String("m5.large"),
Location: aws.String("test-zone-1b"),
},
{
InstanceType: aws.String("m5.large"),
Location: aws.String("test-zone-1c"),
},
{
InstanceType: aws.String("m5.xlarge"),
Location: aws.String("test-zone-1a"),
},
{
InstanceType: aws.String("m5.xlarge"),
Location: aws.String("test-zone-1b"),
},
{
InstanceType: aws.String("m5.2xlarge"),
Location: aws.String("test-zone-1a"),
},
{
InstanceType: aws.String("m5.4xlarge"),
Location: aws.String("test-zone-1a"),
},
{
InstanceType: aws.String("m5.8xlarge"),
Location: aws.String("test-zone-1a"),
},
{
InstanceType: aws.String("p3.8xlarge"),
Location: aws.String("test-zone-1a"),
},
{
InstanceType: aws.String("p3.8xlarge"),
Location: aws.String("test-zone-1b"),
},
{
InstanceType: aws.String("t3.large"),
Location: aws.String("test-zone-1a"),
},
{
InstanceType: aws.String("t3.large"),
Location: aws.String("test-zone-1b"),
},
{
InstanceType: aws.String("inf1.2xlarge"),
Location: aws.String("test-zone-1a"),
},
{
InstanceType: aws.String("inf1.6xlarge"),
Location: aws.String("test-zone-1a"),
},
},
}, false)
return nil
}