-
Notifications
You must be signed in to change notification settings - Fork 23
/
access_keys_client.go
41 lines (34 loc) · 1019 Bytes
/
access_keys_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/iam"
type AccessKeysClient struct {
ListAccessKeysCall struct {
CallCount int
Receives struct {
Input *iam.ListAccessKeysInput
}
Returns struct {
Output *iam.ListAccessKeysOutput
Error error
}
}
DeleteAccessKeyCall struct {
CallCount int
Receives struct {
Input *iam.DeleteAccessKeyInput
}
Returns struct {
Output *iam.DeleteAccessKeyOutput
Error error
}
}
}
func (i *AccessKeysClient) ListAccessKeys(input *iam.ListAccessKeysInput) (*iam.ListAccessKeysOutput, error) {
i.ListAccessKeysCall.CallCount++
i.ListAccessKeysCall.Receives.Input = input
return i.ListAccessKeysCall.Returns.Output, i.ListAccessKeysCall.Returns.Error
}
func (i *AccessKeysClient) DeleteAccessKey(input *iam.DeleteAccessKeyInput) (*iam.DeleteAccessKeyOutput, error) {
i.DeleteAccessKeyCall.CallCount++
i.DeleteAccessKeyCall.Receives.Input = input
return i.DeleteAccessKeyCall.Returns.Output, i.DeleteAccessKeyCall.Returns.Error
}