-
Notifications
You must be signed in to change notification settings - Fork 23
/
roles_client.go
41 lines (34 loc) · 904 Bytes
/
roles_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 RolesClient struct {
ListRolesCall struct {
CallCount int
Receives struct {
Input *iam.ListRolesInput
}
Returns struct {
Output *iam.ListRolesOutput
Error error
}
}
DeleteRoleCall struct {
CallCount int
Receives struct {
Input *iam.DeleteRoleInput
}
Returns struct {
Output *iam.DeleteRoleOutput
Error error
}
}
}
func (i *RolesClient) ListRoles(input *iam.ListRolesInput) (*iam.ListRolesOutput, error) {
i.ListRolesCall.CallCount++
i.ListRolesCall.Receives.Input = input
return i.ListRolesCall.Returns.Output, i.ListRolesCall.Returns.Error
}
func (i *RolesClient) DeleteRole(input *iam.DeleteRoleInput) (*iam.DeleteRoleOutput, error) {
i.DeleteRoleCall.CallCount++
i.DeleteRoleCall.Receives.Input = input
return i.DeleteRoleCall.Returns.Output, i.DeleteRoleCall.Returns.Error
}