Back to godoc.org

Package fakes

v0.55.0
Latest Go to latest
Published: Aug 4, 2019 | License: Apache-2.0 | Module: github.com/genevievelesperance/leftovers

Index

Package Files

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 (e *AddressesClient) DescribeAddresses(input *ec2.DescribeAddressesInput) (*ec2.DescribeAddressesOutput, error)

func (*AddressesClient) ReleaseAddress

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

type ImagesClient

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

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

func (*ImagesClient) DescribeImages

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

func (i *InstancesClient) DescribeAddresses(input *ec2.DescribeAddressesInput) (*ec2.DescribeAddressesOutput, error)

func (*InstancesClient) DescribeInstances

func (i *InstancesClient) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)

func (*InstancesClient) ReleaseAddress

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

func (*InstancesClient) TerminateInstances

func (i *InstancesClient) TerminateInstances(input *ec2.TerminateInstancesInput) (*ec2.TerminateInstancesOutput, error)

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 (i *InternetGatewaysClient) DeleteInternetGateway(input *ec2.DeleteInternetGatewayInput) (*ec2.DeleteInternetGatewayOutput, error)

func (*InternetGatewaysClient) DescribeInternetGateways

func (i *InternetGatewaysClient) DescribeInternetGateways(input *ec2.DescribeInternetGatewaysInput) (*ec2.DescribeInternetGatewaysOutput, error)

func (*InternetGatewaysClient) DetachInternetGateway

func (i *InternetGatewaysClient) DetachInternetGateway(input *ec2.DetachInternetGatewayInput) (*ec2.DetachInternetGatewayOutput, error)

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

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

type NatGatewaysClient

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

func (e *NatGatewaysClient) DeleteNatGateway(input *ec2.DeleteNatGatewayInput) (*ec2.DeleteNatGatewayOutput, error)

func (*NatGatewaysClient) DescribeNatGateways

func (e *NatGatewaysClient) DescribeNatGateways(input *ec2.DescribeNatGatewaysInput) (*ec2.DescribeNatGatewaysOutput, error)

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 (e *NetworkInterfaceClient) DeleteNetworkInterface(input *ec2.DeleteNetworkInterfaceInput) (*ec2.DeleteNetworkInterfaceOutput, error)

func (*NetworkInterfaceClient) DescribeNetworkInterfaces

func (e *NetworkInterfaceClient) DescribeNetworkInterfaces(input *ec2.DescribeNetworkInterfacesInput) (*ec2.DescribeNetworkInterfacesOutput, error)

type ResourceTags

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

func (*ResourceTags) Delete

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 (i *RouteTablesClient) DeleteRouteTable(input *ec2.DeleteRouteTableInput) (*ec2.DeleteRouteTableOutput, error)

func (*RouteTablesClient) DescribeRouteTables

func (i *RouteTablesClient) DescribeRouteTables(input *ec2.DescribeRouteTablesInput) (*ec2.DescribeRouteTablesOutput, error)

func (*RouteTablesClient) DisassociateRouteTable

func (i *RouteTablesClient) DisassociateRouteTable(input *ec2.DisassociateRouteTableInput) (*ec2.DisassociateRouteTableOutput, error)

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 (e *SecurityGroupsClient) DeleteSecurityGroup(input *ec2.DeleteSecurityGroupInput) (*ec2.DeleteSecurityGroupOutput, error)

func (*SecurityGroupsClient) DescribeSecurityGroups

func (e *SecurityGroupsClient) DescribeSecurityGroups(input *ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error)

func (*SecurityGroupsClient) RevokeSecurityGroupEgress

func (e *SecurityGroupsClient) RevokeSecurityGroupEgress(input *ec2.RevokeSecurityGroupEgressInput) (*ec2.RevokeSecurityGroupEgressOutput, error)

func (*SecurityGroupsClient) RevokeSecurityGroupIngress

func (e *SecurityGroupsClient) RevokeSecurityGroupIngress(input *ec2.RevokeSecurityGroupIngressInput) (*ec2.RevokeSecurityGroupIngressOutput, error)

type SnapshotsClient

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

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

func (*SnapshotsClient) DescribeSnapshots

func (e *SnapshotsClient) DescribeSnapshots(input *ec2.DescribeSnapshotsInput) (*ec2.DescribeSnapshotsOutput, error)

type StsClient

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

func (*StsClient) GetCallerIdentity

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)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier