forked from genevieve/leftovers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
aliases_client.go
55 lines (51 loc) · 1.51 KB
/
aliases_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
package fakes
import (
"sync"
awskms "github.com/aws/aws-sdk-go/service/kms"
)
type AliasesClient struct {
DeleteAliasCall struct {
sync.Mutex
CallCount int
Receives struct {
DeleteAliasInput *awskms.DeleteAliasInput
}
Returns struct {
DeleteAliasOutput *awskms.DeleteAliasOutput
Error error
}
Stub func(*awskms.DeleteAliasInput) (*awskms.DeleteAliasOutput, error)
}
ListAliasesCall struct {
sync.Mutex
CallCount int
Receives struct {
ListAliasesInput *awskms.ListAliasesInput
}
Returns struct {
ListAliasesOutput *awskms.ListAliasesOutput
Error error
}
Stub func(*awskms.ListAliasesInput) (*awskms.ListAliasesOutput, error)
}
}
func (f *AliasesClient) DeleteAlias(param1 *awskms.DeleteAliasInput) (*awskms.DeleteAliasOutput, error) {
f.DeleteAliasCall.Lock()
defer f.DeleteAliasCall.Unlock()
f.DeleteAliasCall.CallCount++
f.DeleteAliasCall.Receives.DeleteAliasInput = param1
if f.DeleteAliasCall.Stub != nil {
return f.DeleteAliasCall.Stub(param1)
}
return f.DeleteAliasCall.Returns.DeleteAliasOutput, f.DeleteAliasCall.Returns.Error
}
func (f *AliasesClient) ListAliases(param1 *awskms.ListAliasesInput) (*awskms.ListAliasesOutput, error) {
f.ListAliasesCall.Lock()
defer f.ListAliasesCall.Unlock()
f.ListAliasesCall.CallCount++
f.ListAliasesCall.Receives.ListAliasesInput = param1
if f.ListAliasesCall.Stub != nil {
return f.ListAliasesCall.Stub(param1)
}
return f.ListAliasesCall.Returns.ListAliasesOutput, f.ListAliasesCall.Returns.Error
}