fakes

package
v0.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressesClient

type AddressesClient struct {
	DescribeAddressesCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeAddressesInput
		}
		Returns struct {
			Output *ec2.DescribeAddressesOutput
			Error  error
		}
	}

	ReleaseAddressCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.ReleaseAddressInput
		}
		Returns struct {
			Output *ec2.ReleaseAddressOutput
			Error  error
		}
	}
}

func (*AddressesClient) DescribeAddresses

func (*AddressesClient) ReleaseAddress

func (e *AddressesClient) ReleaseAddress(input *ec2.ReleaseAddressInput) (*ec2.ReleaseAddressOutput, error)

type ImagesClient added in v0.25.0

type ImagesClient struct {
	DescribeImagesCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeImagesInput
		}
		Returns struct {
			Output *ec2.DescribeImagesOutput
			Error  error
		}
	}

	DeregisterImageCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeregisterImageInput
		}
		Returns struct {
			Output *ec2.DeregisterImageOutput
			Error  error
		}
	}
}

func (*ImagesClient) DeregisterImage added in v0.25.0

func (i *ImagesClient) DeregisterImage(input *ec2.DeregisterImageInput) (*ec2.DeregisterImageOutput, error)

func (*ImagesClient) DescribeImages added in v0.25.0

func (i *ImagesClient) DescribeImages(input *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error)

type InstancesClient

type InstancesClient struct {
	DescribeInstancesCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeInstancesInput
		}
		Returns struct {
			Output *ec2.DescribeInstancesOutput
			Error  error
		}
	}

	TerminateInstancesCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.TerminateInstancesInput
		}
		Returns struct {
			Output *ec2.TerminateInstancesOutput
			Error  error
		}
	}

	DescribeAddressesCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeAddressesInput
		}
		Returns struct {
			Output *ec2.DescribeAddressesOutput
			Error  error
		}
	}

	ReleaseAddressCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.ReleaseAddressInput
		}
		Returns struct {
			Output *ec2.ReleaseAddressOutput
			Error  error
		}
	}
}

func (*InstancesClient) DescribeAddresses added in v0.27.0

func (*InstancesClient) DescribeInstances

func (*InstancesClient) ReleaseAddress added in v0.27.0

func (i *InstancesClient) ReleaseAddress(input *ec2.ReleaseAddressInput) (*ec2.ReleaseAddressOutput, error)

func (*InstancesClient) TerminateInstances

type InternetGateways

type InternetGateways struct {
	DeleteCall struct {
		CallCount int
		Receives  struct {
			VpcId string
		}
		Returns struct {
			Error error
		}
	}
}

func (*InternetGateways) Delete

func (r *InternetGateways) Delete(vpcId string) error

type InternetGatewaysClient

type InternetGatewaysClient struct {
	DescribeInternetGatewaysCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeInternetGatewaysInput
		}
		Returns struct {
			Output *ec2.DescribeInternetGatewaysOutput
			Error  error
		}
	}

	DetachInternetGatewayCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DetachInternetGatewayInput
		}
		Returns struct {
			Output *ec2.DetachInternetGatewayOutput
			Error  error
		}
	}

	DeleteInternetGatewayCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteInternetGatewayInput
		}
		Returns struct {
			Output *ec2.DeleteInternetGatewayOutput
			Error  error
		}
	}
}

func (*InternetGatewaysClient) DeleteInternetGateway

func (*InternetGatewaysClient) DescribeInternetGateways

func (*InternetGatewaysClient) DetachInternetGateway

type KeyPairsClient

type KeyPairsClient struct {
	DescribeKeyPairsCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeKeyPairsInput
		}
		Returns struct {
			Output *ec2.DescribeKeyPairsOutput
			Error  error
		}
	}

	DeleteKeyPairCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteKeyPairInput
		}
		Returns struct {
			Output *ec2.DeleteKeyPairOutput
			Error  error
		}
	}
}

func (*KeyPairsClient) DeleteKeyPair

func (e *KeyPairsClient) DeleteKeyPair(input *ec2.DeleteKeyPairInput) (*ec2.DeleteKeyPairOutput, error)

func (*KeyPairsClient) DescribeKeyPairs

func (e *KeyPairsClient) DescribeKeyPairs(input *ec2.DescribeKeyPairsInput) (*ec2.DescribeKeyPairsOutput, error)

type Logger

type Logger struct {
	PrintfCall struct {
		CallCount int
		Receives  struct {
			Message   string
			Arguments []interface{}
		}
		Messages []string
	}

	PromptWithDetailsCall struct {
		CallCount int
		Receives  struct {
			Type string
			Name string
		}
		Returns struct {
			Proceed bool
		}
	}
}

func (*Logger) Printf

func (l *Logger) Printf(message string, a ...interface{})

func (*Logger) PromptWithDetails added in v0.21.0

func (l *Logger) PromptWithDetails(resourceType, resourceName string) bool

type NatGatewaysClient added in v0.31.0

type NatGatewaysClient struct {
	DescribeNatGatewaysCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeNatGatewaysInput
		}
		Returns struct {
			Output *ec2.DescribeNatGatewaysOutput
			Error  error
		}
	}

	DeleteNatGatewayCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteNatGatewayInput
		}
		Returns struct {
			Output *ec2.DeleteNatGatewayOutput
			Error  error
		}
	}
}

func (*NatGatewaysClient) DeleteNatGateway added in v0.31.0

func (*NatGatewaysClient) DescribeNatGateways added in v0.31.0

type NetworkInterfaceClient

type NetworkInterfaceClient struct {
	DescribeNetworkInterfacesCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeNetworkInterfacesInput
		}
		Returns struct {
			Output *ec2.DescribeNetworkInterfacesOutput
			Error  error
		}
	}

	DeleteNetworkInterfaceCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteNetworkInterfaceInput
		}
		Returns struct {
			Output *ec2.DeleteNetworkInterfaceOutput
			Error  error
		}
	}
}

func (*NetworkInterfaceClient) DeleteNetworkInterface

func (*NetworkInterfaceClient) DescribeNetworkInterfaces

type ResourceTags added in v0.24.0

type ResourceTags struct {
	DeleteCall struct {
		CallCount int
		Receives  struct {
			ResourceType string
			ResourceId   string
		}
		Returns struct {
			Error error
		}
	}
}

func (*ResourceTags) Delete added in v0.24.0

func (r *ResourceTags) Delete(resourceType, resourceId string) error

type RouteTables

type RouteTables struct {
	DeleteCall struct {
		CallCount int
		Receives  struct {
			VpcId string
		}
		Returns struct {
			Error error
		}
	}
}

func (*RouteTables) Delete

func (r *RouteTables) Delete(vpcId string) error

type RouteTablesClient

type RouteTablesClient struct {
	DescribeRouteTablesCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeRouteTablesInput
		}
		Returns struct {
			Output *ec2.DescribeRouteTablesOutput
			Error  error
		}
	}

	DisassociateRouteTableCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DisassociateRouteTableInput
		}
		Returns struct {
			Output *ec2.DisassociateRouteTableOutput
			Error  error
		}
	}

	DeleteRouteTableCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteRouteTableInput
		}
		Returns struct {
			Output *ec2.DeleteRouteTableOutput
			Error  error
		}
	}
}

func (*RouteTablesClient) DeleteRouteTable

func (*RouteTablesClient) DescribeRouteTables

func (*RouteTablesClient) DisassociateRouteTable

type SecurityGroupsClient

type SecurityGroupsClient struct {
	DescribeSecurityGroupsCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeSecurityGroupsInput
		}
		Returns struct {
			Output *ec2.DescribeSecurityGroupsOutput
			Error  error
		}
	}

	RevokeSecurityGroupIngressCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.RevokeSecurityGroupIngressInput
		}
		Returns struct {
			Output *ec2.RevokeSecurityGroupIngressOutput
			Error  error
		}
	}

	RevokeSecurityGroupEgressCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.RevokeSecurityGroupEgressInput
		}
		Returns struct {
			Output *ec2.RevokeSecurityGroupEgressOutput
			Error  error
		}
	}

	DeleteSecurityGroupCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteSecurityGroupInput
		}
		Returns struct {
			Output *ec2.DeleteSecurityGroupOutput
			Error  error
		}
	}
}

func (*SecurityGroupsClient) DeleteSecurityGroup

func (*SecurityGroupsClient) DescribeSecurityGroups

func (*SecurityGroupsClient) RevokeSecurityGroupEgress

func (*SecurityGroupsClient) RevokeSecurityGroupIngress

type SnapshotsClient added in v0.25.0

type SnapshotsClient struct {
	DescribeSnapshotsCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeSnapshotsInput
		}
		Returns struct {
			Output *ec2.DescribeSnapshotsOutput
			Error  error
		}
	}

	DeleteSnapshotCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteSnapshotInput
		}
		Returns struct {
			Output *ec2.DeleteSnapshotOutput
			Error  error
		}
	}
}

func (*SnapshotsClient) DeleteSnapshot added in v0.25.0

func (e *SnapshotsClient) DeleteSnapshot(input *ec2.DeleteSnapshotInput) (*ec2.DeleteSnapshotOutput, error)

func (*SnapshotsClient) DescribeSnapshots added in v0.25.0

type StsClient added in v0.25.0

type StsClient struct {
	GetCallerIdentityCall struct {
		CallCount int
		Receives  struct {
			Input *sts.GetCallerIdentityInput
		}
		Returns struct {
			Output *sts.GetCallerIdentityOutput
			Error  error
		}
	}
}

func (*StsClient) GetCallerIdentity added in v0.25.0

func (s *StsClient) GetCallerIdentity(input *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error)

type Subnets

type Subnets struct {
	DeleteCall struct {
		CallCount int
		Receives  struct {
			VpcId string
		}
		Returns struct {
			Error error
		}
	}
}

func (*Subnets) Delete

func (s *Subnets) Delete(vpcId string) error

type SubnetsClient

type SubnetsClient struct {
	DescribeSubnetsCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeSubnetsInput
		}
		Returns struct {
			Output *ec2.DescribeSubnetsOutput
			Error  error
		}
	}

	DeleteSubnetCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteSubnetInput
		}
		Returns struct {
			Output *ec2.DeleteSubnetOutput
			Error  error
		}
	}
}

func (*SubnetsClient) DeleteSubnet

func (i *SubnetsClient) DeleteSubnet(input *ec2.DeleteSubnetInput) (*ec2.DeleteSubnetOutput, error)

func (*SubnetsClient) DescribeSubnets

func (i *SubnetsClient) DescribeSubnets(input *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)

type TagsClient

type TagsClient struct {
	DescribeTagsCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeTagsInput
		}
		Returns struct {
			Output *ec2.DescribeTagsOutput
			Error  error
		}
	}

	DeleteTagsCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteTagsInput
		}
		Returns struct {
			Output *ec2.DeleteTagsOutput
			Error  error
		}
	}
}

func (*TagsClient) DeleteTags

func (e *TagsClient) DeleteTags(input *ec2.DeleteTagsInput) (*ec2.DeleteTagsOutput, error)

func (*TagsClient) DescribeTags

func (e *TagsClient) DescribeTags(input *ec2.DescribeTagsInput) (*ec2.DescribeTagsOutput, error)

type VolumesClient

type VolumesClient struct {
	DescribeVolumesCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeVolumesInput
		}
		Returns struct {
			Output *ec2.DescribeVolumesOutput
			Error  error
		}
	}

	DeleteVolumeCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteVolumeInput
		}
		Returns struct {
			Output *ec2.DeleteVolumeOutput
			Error  error
		}
	}
}

func (*VolumesClient) DeleteVolume

func (e *VolumesClient) DeleteVolume(input *ec2.DeleteVolumeInput) (*ec2.DeleteVolumeOutput, error)

func (*VolumesClient) DescribeVolumes

func (e *VolumesClient) DescribeVolumes(input *ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error)

type VpcClient

type VpcClient struct {
	DescribeVpcsCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DescribeVpcsInput
		}
		Returns struct {
			Output *ec2.DescribeVpcsOutput
			Error  error
		}
	}

	DeleteVpcCall struct {
		CallCount int
		Receives  struct {
			Input *ec2.DeleteVpcInput
		}
		Returns struct {
			Output *ec2.DeleteVpcOutput
			Error  error
		}
	}
}

func (*VpcClient) DeleteVpc

func (e *VpcClient) DeleteVpc(input *ec2.DeleteVpcInput) (*ec2.DeleteVpcOutput, error)

func (*VpcClient) DescribeVpcs

func (e *VpcClient) DescribeVpcs(input *ec2.DescribeVpcsInput) (*ec2.DescribeVpcsOutput, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL