forked from cloudfoundry/bosh-bootloader
-
Notifications
You must be signed in to change notification settings - Fork 2
/
iam_client.go
56 lines (49 loc) · 1.64 KB
/
iam_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
package fakes
import "github.com/aws/aws-sdk-go/service/iam"
type IAMClient struct {
UploadServerCertificateCall struct {
CallCount int
Receives struct {
Input *iam.UploadServerCertificateInput
}
Returns struct {
Output *iam.UploadServerCertificateOutput
Error error
}
}
GetServerCertificateCall struct {
CallCount int
Receives struct {
Input *iam.GetServerCertificateInput
}
Returns struct {
Output *iam.GetServerCertificateOutput
Error error
}
}
DeleteServerCertificateCall struct {
CallCount int
Receives struct {
Input *iam.DeleteServerCertificateInput
}
Returns struct {
Output *iam.DeleteServerCertificateOutput
Error error
}
}
}
func (c *IAMClient) UploadServerCertificate(input *iam.UploadServerCertificateInput) (*iam.UploadServerCertificateOutput, error) {
c.UploadServerCertificateCall.CallCount++
c.UploadServerCertificateCall.Receives.Input = input
return c.UploadServerCertificateCall.Returns.Output, c.UploadServerCertificateCall.Returns.Error
}
func (c *IAMClient) GetServerCertificate(input *iam.GetServerCertificateInput) (*iam.GetServerCertificateOutput, error) {
c.GetServerCertificateCall.CallCount++
c.GetServerCertificateCall.Receives.Input = input
return c.GetServerCertificateCall.Returns.Output, c.GetServerCertificateCall.Returns.Error
}
func (c *IAMClient) DeleteServerCertificate(input *iam.DeleteServerCertificateInput) (*iam.DeleteServerCertificateOutput, error) {
c.DeleteServerCertificateCall.CallCount++
c.DeleteServerCertificateCall.Receives.Input = input
return c.DeleteServerCertificateCall.Returns.Output, c.DeleteServerCertificateCall.Returns.Error
}