-
Notifications
You must be signed in to change notification settings - Fork 22
/
vpc_client.go
41 lines (34 loc) · 918 Bytes
/
vpc_client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package fakes
import "github.com/aws/aws-sdk-go/service/ec2"
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 (e *VpcClient) DescribeVpcs(input *ec2.DescribeVpcsInput) (*ec2.DescribeVpcsOutput, error) {
e.DescribeVpcsCall.CallCount++
e.DescribeVpcsCall.Receives.Input = input
return e.DescribeVpcsCall.Returns.Output, e.DescribeVpcsCall.Returns.Error
}
func (e *VpcClient) DeleteVpc(input *ec2.DeleteVpcInput) (*ec2.DeleteVpcOutput, error) {
e.DeleteVpcCall.CallCount++
e.DeleteVpcCall.Receives.Input = input
return e.DeleteVpcCall.Returns.Output, e.DeleteVpcCall.Returns.Error
}