fake

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

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

func (_m *Client) DeletePolicyAndDetach(username string, policyName string) error

DeletePolicyAndDetach provides a mock function with given fields: username, policyName

func (*Client) DeleteUser

func (_m *Client) DeleteUser(username string) error

DeleteUser provides a mock function with given fields: username

func (*Client) GetPolicyVersion

func (_m *Client) GetPolicyVersion(policyName string) (string, error)

GetPolicyVersion provides a mock function with given fields: policyName

func (*Client) UpdatePolicy

func (_m *Client) UpdatePolicy(policyName string, policyDocument string) (string, error)

UpdatePolicy provides a mock function with given fields: policyName, policyDocument

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

AttachRolePolicyRequest mocks AttachRolePolicyRequest method

func (*MockRolePolicyAttachmentClient) DetachRolePolicyRequest

DetachRolePolicyRequest mocks DetachRolePolicyRequest method

func (*MockRolePolicyAttachmentClient) ListAttachedRolePoliciesRequest

ListAttachedRolePoliciesRequest mocks ListAttachedRolePoliciesRequest method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL