Documentation ¶
Index ¶
- type Client
- func (_m *Client) CreatePolicyAndAttach(username string, policyName string, policyDocument string) (string, error)
- func (_m *Client) CreateUser(username string) (*serviceiam.AccessKey, error)
- func (_m *Client) DeletePolicyAndDetach(username string, policyName string) error
- func (_m *Client) DeleteUser(username string) error
- func (_m *Client) GetPolicyVersion(policyName string) (string, error)
- func (_m *Client) UpdatePolicy(policyName string, policyDocument string) (string, error)
- type MockRoleClient
- type MockRolePolicyAttachmentClient
- func (m *MockRolePolicyAttachmentClient) AttachRolePolicyRequest(input *iam.AttachRolePolicyInput) iam.AttachRolePolicyRequest
- func (m *MockRolePolicyAttachmentClient) DetachRolePolicyRequest(input *iam.DetachRolePolicyInput) iam.DetachRolePolicyRequest
- func (m *MockRolePolicyAttachmentClient) ListAttachedRolePoliciesRequest(input *iam.ListAttachedRolePoliciesInput) iam.ListAttachedRolePoliciesRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) CreatePolicyAndAttach ¶
func (_m *Client) CreatePolicyAndAttach(username string, policyName string, policyDocument string) (string, error)
CreatePolicyAndAttach provides a mock function with given fields: username, policyName, policyDocument
func (*Client) CreateUser ¶
func (_m *Client) CreateUser(username string) (*serviceiam.AccessKey, error)
CreateUser provides a mock function with given fields: username
func (*Client) DeletePolicyAndDetach ¶
DeletePolicyAndDetach provides a mock function with given fields: username, policyName
func (*Client) DeleteUser ¶
DeleteUser provides a mock function with given fields: username
func (*Client) GetPolicyVersion ¶
GetPolicyVersion provides a mock function with given fields: policyName
type MockRoleClient ¶
type MockRoleClient struct { MockGetRoleRequest func(*iam.GetRoleInput) iam.GetRoleRequest MockCreateRoleRequest func(*iam.CreateRoleInput) iam.CreateRoleRequest MockDeleteRoleRequest func(*iam.DeleteRoleInput) iam.DeleteRoleRequest }
MockRoleClient is a type that implements all the methods for RoleClient interface
func (*MockRoleClient) CreateRoleRequest ¶
func (m *MockRoleClient) CreateRoleRequest(input *iam.CreateRoleInput) iam.CreateRoleRequest
CreateRoleRequest mocks CreateRoleRequest method
func (*MockRoleClient) DeleteRoleRequest ¶
func (m *MockRoleClient) DeleteRoleRequest(input *iam.DeleteRoleInput) iam.DeleteRoleRequest
DeleteRoleRequest mocks DeleteRoleRequest method
func (*MockRoleClient) GetRoleRequest ¶
func (m *MockRoleClient) GetRoleRequest(input *iam.GetRoleInput) iam.GetRoleRequest
GetRoleRequest mocks GetRoleRequest method
type MockRolePolicyAttachmentClient ¶
type MockRolePolicyAttachmentClient struct { MockAttachRolePolicyRequest func(*iam.AttachRolePolicyInput) iam.AttachRolePolicyRequest MockListAttachedRolePoliciesRequest func(*iam.ListAttachedRolePoliciesInput) iam.ListAttachedRolePoliciesRequest MockDetachRolePolicyRequest func(*iam.DetachRolePolicyInput) iam.DetachRolePolicyRequest }
MockRolePolicyAttachmentClient is a type that implements all the methods for RolePolicyAttachmentClient interface
func (*MockRolePolicyAttachmentClient) AttachRolePolicyRequest ¶
func (m *MockRolePolicyAttachmentClient) AttachRolePolicyRequest(input *iam.AttachRolePolicyInput) iam.AttachRolePolicyRequest
AttachRolePolicyRequest mocks AttachRolePolicyRequest method
func (*MockRolePolicyAttachmentClient) DetachRolePolicyRequest ¶
func (m *MockRolePolicyAttachmentClient) DetachRolePolicyRequest(input *iam.DetachRolePolicyInput) iam.DetachRolePolicyRequest
DetachRolePolicyRequest mocks DetachRolePolicyRequest method
func (*MockRolePolicyAttachmentClient) ListAttachedRolePoliciesRequest ¶
func (m *MockRolePolicyAttachmentClient) ListAttachedRolePoliciesRequest(input *iam.ListAttachedRolePoliciesInput) iam.ListAttachedRolePoliciesRequest
ListAttachedRolePoliciesRequest mocks ListAttachedRolePoliciesRequest method