/
buckets_client.go
77 lines (64 loc) · 1.88 KB
/
buckets_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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package fakes
import awss3 "github.com/aws/aws-sdk-go/service/s3"
type BucketsClient struct {
ListBucketsCall struct {
CallCount int
Receives struct {
Input *awss3.ListBucketsInput
}
Returns struct {
Output *awss3.ListBucketsOutput
Error error
}
}
DeleteBucketCall struct {
CallCount int
Receives struct {
Input *awss3.DeleteBucketInput
}
Returns struct {
Output *awss3.DeleteBucketOutput
Error error
}
}
ListObjectVersionsCall struct {
CallCount int
Receives struct {
Input *awss3.ListObjectVersionsInput
}
Returns struct {
Output *awss3.ListObjectVersionsOutput
Error error
}
}
DeleteObjectsCall struct {
CallCount int
Receives struct {
Input *awss3.DeleteObjectsInput
}
Returns struct {
Output *awss3.DeleteObjectsOutput
Error error
}
}
}
func (i *BucketsClient) ListBuckets(input *awss3.ListBucketsInput) (*awss3.ListBucketsOutput, error) {
i.ListBucketsCall.CallCount++
i.ListBucketsCall.Receives.Input = input
return i.ListBucketsCall.Returns.Output, i.ListBucketsCall.Returns.Error
}
func (i *BucketsClient) DeleteBucket(input *awss3.DeleteBucketInput) (*awss3.DeleteBucketOutput, error) {
i.DeleteBucketCall.CallCount++
i.DeleteBucketCall.Receives.Input = input
return i.DeleteBucketCall.Returns.Output, i.DeleteBucketCall.Returns.Error
}
func (i *BucketsClient) ListObjectVersions(input *awss3.ListObjectVersionsInput) (*awss3.ListObjectVersionsOutput, error) {
i.ListObjectVersionsCall.CallCount++
i.ListObjectVersionsCall.Receives.Input = input
return i.ListObjectVersionsCall.Returns.Output, i.ListObjectVersionsCall.Returns.Error
}
func (i *BucketsClient) DeleteObjects(input *awss3.DeleteObjectsInput) (*awss3.DeleteObjectsOutput, error) {
i.DeleteObjectsCall.CallCount++
i.DeleteObjectsCall.Receives.Input = input
return i.DeleteObjectsCall.Returns.Output, i.DeleteObjectsCall.Returns.Error
}