fake

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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