Documentation ¶
Index ¶
- type MockIAMClient
- func (m *MockIAMClient) CreatePolicyAndAttach(username string, policyName string, policyDocument string) (string, error)
- func (m *MockIAMClient) CreateUser(username string) (*iam.AccessKey, error)
- func (m *MockIAMClient) DeletePolicyAndDetach(username string, policyName string) error
- func (m *MockIAMClient) DeleteUser(username string) error
- func (m *MockIAMClient) GetPolicyVersion(username string) (string, error)
- func (m *MockIAMClient) UpdatePolicy(username string, policyDocument string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIAMClient ¶
type MockIAMClient struct { MockCreateUser func(username string) (*iam.AccessKey, error) MockDeleteUser func(username string) error MockGetPolicyVersion func(username string) (string, error) MockCreatePolicyAndAttach func(username string, policyName string, policyDocument string) (string, error) MockUpdatePolicy func(username string, policyDocument string) (string, error) MockDeletePolicyAndDetach func(username string, policyName string) error }
MockIAMClient for testing.
func (*MockIAMClient) CreatePolicyAndAttach ¶
func (m *MockIAMClient) CreatePolicyAndAttach(username string, policyName string, policyDocument string) (string, error)
CreatePolicyAndAttach calls the underlying MockCreatePolicyAndAttach method.
func (*MockIAMClient) CreateUser ¶
func (m *MockIAMClient) CreateUser(username string) (*iam.AccessKey, error)
CreateUser calls the underlying MockCreateUser method.
func (*MockIAMClient) DeletePolicyAndDetach ¶
func (m *MockIAMClient) DeletePolicyAndDetach(username string, policyName string) error
DeletePolicyAndDetach calls the underlying MockDeletePolicyAndDetach method.
func (*MockIAMClient) DeleteUser ¶
func (m *MockIAMClient) DeleteUser(username string) error
DeleteUser calls the underlying MockDeleteUser method.
func (*MockIAMClient) GetPolicyVersion ¶
func (m *MockIAMClient) GetPolicyVersion(username string) (string, error)
GetPolicyVersion calls the underlying MockGetPolicyVersion method.
func (*MockIAMClient) UpdatePolicy ¶
func (m *MockIAMClient) UpdatePolicy(username string, policyDocument string) (string, error)
UpdatePolicy calls the underlying MockUpdatePolicy method.
Click to show internal directories.
Click to hide internal directories.