fake

package
v0.50.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAccessClient

type MockAccessClient struct {
	MockCreateAccessKey func(ctx context.Context, input *iam.CreateAccessKeyInput, opts []func(*iam.Options)) (*iam.CreateAccessKeyOutput, error)
	MockDeleteAccessKey func(ctx context.Context, input *iam.DeleteAccessKeyInput, opts []func(*iam.Options)) (*iam.DeleteAccessKeyOutput, error)
	MockListAccessKeys  func(ctx context.Context, input *iam.ListAccessKeysInput, opts []func(*iam.Options)) (*iam.ListAccessKeysOutput, error)
	MockUpdateAccessKey func(ctx context.Context, input *iam.UpdateAccessKeyInput, opts []func(*iam.Options)) (*iam.UpdateAccessKeyOutput, error)
}

MockAccessClient is a type that implements all the methods for AccessClient interface

func (MockAccessClient) CreateAccessKey

func (m MockAccessClient) CreateAccessKey(ctx context.Context, input *iam.CreateAccessKeyInput, opts ...func(*iam.Options)) (*iam.CreateAccessKeyOutput, error)

CreateAccessKey mocks CreateAccessKey method

func (MockAccessClient) DeleteAccessKey

func (m MockAccessClient) DeleteAccessKey(ctx context.Context, input *iam.DeleteAccessKeyInput, opts ...func(*iam.Options)) (*iam.DeleteAccessKeyOutput, error)

DeleteAccessKey mocks DeleteAccessKey method

func (MockAccessClient) ListAccessKeys

func (m MockAccessClient) ListAccessKeys(ctx context.Context, input *iam.ListAccessKeysInput, opts ...func(*iam.Options)) (*iam.ListAccessKeysOutput, error)

ListAccessKeys mocks ListAccessKeys method

func (MockAccessClient) UpdateAccessKey

func (m MockAccessClient) UpdateAccessKey(ctx context.Context, input *iam.UpdateAccessKeyInput, opts ...func(*iam.Options)) (*iam.UpdateAccessKeyOutput, error)

UpdateAccessKey mocks UpdateAccessKey method

type MockGroupClient

type MockGroupClient struct {
	MockGetGroup    func(ctx context.Context, input *iam.GetGroupInput, opts []func(*iam.Options)) (*iam.GetGroupOutput, error)
	MockCreateGroup func(ctx context.Context, input *iam.CreateGroupInput, opts []func(*iam.Options)) (*iam.CreateGroupOutput, error)
	MockDeleteGroup func(ctx context.Context, input *iam.DeleteGroupInput, opts []func(*iam.Options)) (*iam.DeleteGroupOutput, error)
	MockUpdateGroup func(ctx context.Context, input *iam.UpdateGroupInput, opts []func(*iam.Options)) (*iam.UpdateGroupOutput, error)
}

MockGroupClient is a type that implements all the methods for RoleClient interface

func (*MockGroupClient) CreateGroup

func (m *MockGroupClient) CreateGroup(ctx context.Context, input *iam.CreateGroupInput, opts ...func(*iam.Options)) (*iam.CreateGroupOutput, error)

CreateGroup mocks CreateGroup method

func (*MockGroupClient) DeleteGroup

func (m *MockGroupClient) DeleteGroup(ctx context.Context, input *iam.DeleteGroupInput, opts ...func(*iam.Options)) (*iam.DeleteGroupOutput, error)

DeleteGroup mocks DeleteGroup method

func (*MockGroupClient) GetGroup

func (m *MockGroupClient) GetGroup(ctx context.Context, input *iam.GetGroupInput, opts ...func(*iam.Options)) (*iam.GetGroupOutput, error)

GetGroup mocks GetGroup method

func (*MockGroupClient) UpdateGroup

func (m *MockGroupClient) UpdateGroup(ctx context.Context, input *iam.UpdateGroupInput, opts ...func(*iam.Options)) (*iam.UpdateGroupOutput, error)

UpdateGroup mocks UpdateGroup method

type MockGroupPolicyAttachmentClient

type MockGroupPolicyAttachmentClient struct {
	MockAttachGroupPolicy         func(ctx context.Context, input *iam.AttachGroupPolicyInput, opts []func(*iam.Options)) (*iam.AttachGroupPolicyOutput, error)
	MockListAttachedGroupPolicies func(ctx context.Context, input *iam.ListAttachedGroupPoliciesInput, opts []func(*iam.Options)) (*iam.ListAttachedGroupPoliciesOutput, error)
	MockDetachGroupPolicy         func(ctx context.Context, input *iam.DetachGroupPolicyInput, opts []func(*iam.Options)) (*iam.DetachGroupPolicyOutput, error)
}

MockGroupPolicyAttachmentClient is a type that implements all the methods for GroupPolicyAttachmentClient interface

func (*MockGroupPolicyAttachmentClient) AttachGroupPolicy

AttachGroupPolicy mocks AttachGroupPolicy method

func (*MockGroupPolicyAttachmentClient) DetachGroupPolicy

DetachGroupPolicy mocks DetachGroupPolicy method

func (*MockGroupPolicyAttachmentClient) ListAttachedGroupPolicies

ListAttachedGroupPolicies mocks ListAttachedGroupPolicies method

type MockGroupUserMembershipClient

type MockGroupUserMembershipClient struct {
	MockAddUserToGroup      func(ctx context.Context, input *iam.AddUserToGroupInput, opts []func(*iam.Options)) (*iam.AddUserToGroupOutput, error)
	MockRemoveUserFromGroup func(ctx context.Context, input *iam.RemoveUserFromGroupInput, opts []func(*iam.Options)) (*iam.RemoveUserFromGroupOutput, error)
	MockListGroupsForUser   func(ctx context.Context, input *iam.ListGroupsForUserInput, opts []func(*iam.Options)) (*iam.ListGroupsForUserOutput, error)
}

MockGroupUserMembershipClient is a type that implements all the methods for GroupUserMembershipClient interface

func (*MockGroupUserMembershipClient) AddUserToGroup

func (m *MockGroupUserMembershipClient) AddUserToGroup(ctx context.Context, input *iam.AddUserToGroupInput, opts ...func(*iam.Options)) (*iam.AddUserToGroupOutput, error)

AddUserToGroup mocks AddUserToGroup method

func (*MockGroupUserMembershipClient) ListGroupsForUser

ListGroupsForUser mocks ListGroupsForUser method

func (*MockGroupUserMembershipClient) RemoveUserFromGroup

RemoveUserFromGroup mocks RemoveUserFromGroup method

type MockOpenIDConnectProviderClient

type MockOpenIDConnectProviderClient struct {
	MockOpenIDConnectProviderInput              MockOpenIDConnectProviderInput
	MockGetOpenIDConnectProvider                func(ctx context.Context, input *iam.GetOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.GetOpenIDConnectProviderOutput, error)
	MockCreateOpenIDConnectProvider             func(ctx context.Context, input *iam.CreateOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.CreateOpenIDConnectProviderOutput, error)
	MockAddClientIDToOpenIDConnectProvider      func(ctx context.Context, input *iam.AddClientIDToOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.AddClientIDToOpenIDConnectProviderOutput, error)
	MockRemoveClientIDFromOpenIDConnectProvider func(ctx context.Context, input *iam.RemoveClientIDFromOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error)
	MockUpdateOpenIDConnectProviderThumbprint   func(ctx context.Context, input *iam.UpdateOpenIDConnectProviderThumbprintInput, opts []func(*iam.Options)) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error)
	MockDeleteOpenIDConnectProvider             func(ctx context.Context, input *iam.DeleteOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.DeleteOpenIDConnectProviderOutput, error)
	MockTagOpenIDConnectProvider                func(ctx context.Context, input *iam.TagOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.TagOpenIDConnectProviderOutput, error)
	MockUntagOpenIDConnectProvider              func(ctx context.Context, input *iam.UntagOpenIDConnectProviderInput, opts []func(*iam.Options)) (*iam.UntagOpenIDConnectProviderOutput, error)
	MockListOpenIDConnectProviders              func(ctx context.Context, input *iam.ListOpenIDConnectProvidersInput, opts []func(*iam.Options)) (*iam.ListOpenIDConnectProvidersOutput, error)
	MockListOpenIDConnectProviderTags           func(ctx context.Context, input *iam.ListOpenIDConnectProviderTagsInput, opts []func(*iam.Options)) (*iam.ListOpenIDConnectProviderTagsOutput, error)
}

MockOpenIDConnectProviderClient is a type that implements all the methods for OpenIDConnectProviderClient interface

func (*MockOpenIDConnectProviderClient) AddClientIDToOpenIDConnectProvider

AddClientIDToOpenIDConnectProvider mocks client call.

func (*MockOpenIDConnectProviderClient) CreateOpenIDConnectProvider

CreateOpenIDConnectProvider mocks client call.

func (*MockOpenIDConnectProviderClient) DeleteOpenIDConnectProvider

DeleteOpenIDConnectProvider mocks client call.

func (*MockOpenIDConnectProviderClient) GetOpenIDConnectProvider

GetOpenIDConnectProvider mocks client call.

func (*MockOpenIDConnectProviderClient) ListOpenIDConnectProviderTags added in v0.30.0

ListOpenIDConnectProviderTags mocks client call

func (*MockOpenIDConnectProviderClient) ListOpenIDConnectProviders added in v0.30.0

ListOpenIDConnectProviders mocks client call

func (*MockOpenIDConnectProviderClient) RemoveClientIDFromOpenIDConnectProvider

RemoveClientIDFromOpenIDConnectProvider mocks client call.

func (*MockOpenIDConnectProviderClient) TagOpenIDConnectProvider

TagOpenIDConnectProvider mocks client call

func (*MockOpenIDConnectProviderClient) UntagOpenIDConnectProvider

UntagOpenIDConnectProvider mocks client call

func (*MockOpenIDConnectProviderClient) UpdateOpenIDConnectProviderThumbprint

UpdateOpenIDConnectProviderThumbprint mocks client call.

type MockOpenIDConnectProviderInput

type MockOpenIDConnectProviderInput struct {
	CreateOIDCProviderInput            *iam.CreateOpenIDConnectProviderInput
	TagOpenIDConnectProviderInput      *iam.TagOpenIDConnectProviderInput
	UntagOpenIDConnectProviderInput    *iam.UntagOpenIDConnectProviderInput
	ListOpenIDConnectProvidersInput    *iam.ListOpenIDConnectProvidersInput
	ListOpenIDConnectProviderTagsInput *iam.ListOpenIDConnectProviderTagsInput
}

MockOpenIDConnectProviderInput holds the input structures for future inspections

type MockPolicyClient

type MockPolicyClient struct {
	MockPolicyInput         MockPolicyInput
	MockGetPolicy           func(ctx context.Context, input *iam.GetPolicyInput, opts []func(*iam.Options)) (*iam.GetPolicyOutput, error)
	MockCreatePolicy        func(ctx context.Context, input *iam.CreatePolicyInput, opts []func(*iam.Options)) (*iam.CreatePolicyOutput, error)
	MockDeletePolicy        func(ctx context.Context, input *iam.DeletePolicyInput, opts []func(*iam.Options)) (*iam.DeletePolicyOutput, error)
	MockGetPolicyVersion    func(ctx context.Context, input *iam.GetPolicyVersionInput, opts []func(*iam.Options)) (*iam.GetPolicyVersionOutput, error)
	MockCreatePolicyVersion func(ctx context.Context, input *iam.CreatePolicyVersionInput, opts []func(*iam.Options)) (*iam.CreatePolicyVersionOutput, error)
	MockListPolicyVersions  func(ctx context.Context, input *iam.ListPolicyVersionsInput, opts []func(*iam.Options)) (*iam.ListPolicyVersionsOutput, error)
	MockDeletePolicyVersion func(ctx context.Context, input *iam.DeletePolicyVersionInput, opts []func(*iam.Options)) (*iam.DeletePolicyVersionOutput, error)
	MockTagPolicy           func(ctx context.Context, input *iam.TagPolicyInput, opts []func(*iam.Options)) (*iam.TagPolicyOutput, error)
	MockUntagPolicy         func(ctx context.Context, input *iam.UntagPolicyInput, opts []func(*iam.Options)) (*iam.UntagPolicyOutput, error)
}

MockPolicyClient is a type that implements all the methods for PolicyClient interface

func (*MockPolicyClient) CreatePolicy

func (m *MockPolicyClient) CreatePolicy(ctx context.Context, input *iam.CreatePolicyInput, opts ...func(*iam.Options)) (*iam.CreatePolicyOutput, error)

CreatePolicy mocks CreatePolicy method

func (*MockPolicyClient) CreatePolicyVersion

func (m *MockPolicyClient) CreatePolicyVersion(ctx context.Context, input *iam.CreatePolicyVersionInput, opts ...func(*iam.Options)) (*iam.CreatePolicyVersionOutput, error)

CreatePolicyVersion mocks CreatePolicyVersion method

func (*MockPolicyClient) DeletePolicy

func (m *MockPolicyClient) DeletePolicy(ctx context.Context, input *iam.DeletePolicyInput, opts ...func(*iam.Options)) (*iam.DeletePolicyOutput, error)

DeletePolicy mocks DeletePolicy method

func (*MockPolicyClient) DeletePolicyVersion

func (m *MockPolicyClient) DeletePolicyVersion(ctx context.Context, input *iam.DeletePolicyVersionInput, opts ...func(*iam.Options)) (*iam.DeletePolicyVersionOutput, error)

DeletePolicyVersion mocks DeletePolicyVersion method

func (*MockPolicyClient) GetPolicy

func (m *MockPolicyClient) GetPolicy(ctx context.Context, input *iam.GetPolicyInput, opts ...func(*iam.Options)) (*iam.GetPolicyOutput, error)

GetPolicy mocks GetPolicy method

func (*MockPolicyClient) GetPolicyVersion

func (m *MockPolicyClient) GetPolicyVersion(ctx context.Context, input *iam.GetPolicyVersionInput, opts ...func(*iam.Options)) (*iam.GetPolicyVersionOutput, error)

GetPolicyVersion mocks GetPolicyVersion method

func (*MockPolicyClient) ListPolicyVersions

func (m *MockPolicyClient) ListPolicyVersions(ctx context.Context, input *iam.ListPolicyVersionsInput, opts ...func(*iam.Options)) (*iam.ListPolicyVersionsOutput, error)

ListPolicyVersions mocks ListPolicyVersions method

func (*MockPolicyClient) TagPolicy

func (m *MockPolicyClient) TagPolicy(ctx context.Context, input *iam.TagPolicyInput, opts ...func(*iam.Options)) (*iam.TagPolicyOutput, error)

TagPolicy mocks TagPolicy method

func (*MockPolicyClient) UntagPolicy

func (m *MockPolicyClient) UntagPolicy(ctx context.Context, input *iam.UntagPolicyInput, opts ...func(*iam.Options)) (*iam.UntagPolicyOutput, error)

UntagPolicy mocks UnTagPolicy method

type MockPolicyInput

type MockPolicyInput struct {
	CreatePolicyInput *iam.CreatePolicyInput
	TagPolicyInput    *iam.TagPolicyInput
	UntagPolicyInput  *iam.UntagPolicyInput
}

MockPolicyInput holds the input structures for future inspections

type MockRoleClient

type MockRoleClient struct {
	MockGetRole                       func(ctx context.Context, input *iam.GetRoleInput, opts []func(*iam.Options)) (*iam.GetRoleOutput, error)
	MockCreateRole                    func(ctx context.Context, input *iam.CreateRoleInput, opts []func(*iam.Options)) (*iam.CreateRoleOutput, error)
	MockDeleteRole                    func(ctx context.Context, input *iam.DeleteRoleInput, opts []func(*iam.Options)) (*iam.DeleteRoleOutput, error)
	MockUpdateRole                    func(ctx context.Context, input *iam.UpdateRoleInput, opts []func(*iam.Options)) (*iam.UpdateRoleOutput, error)
	MockPutRolePermissionsBoundary    func(ctx context.Context, input *iam.PutRolePermissionsBoundaryInput, opts []func(*iam.Options)) (*iam.PutRolePermissionsBoundaryOutput, error)
	MockDeleteRolePermissionsBoundary func(ctx context.Context, input *iam.DeleteRolePermissionsBoundaryInput, opts []func(*iam.Options)) (*iam.DeleteRolePermissionsBoundaryOutput, error)
	MockUpdateAssumeRolePolicy        func(ctx context.Context, input *iam.UpdateAssumeRolePolicyInput, opts []func(*iam.Options)) (*iam.UpdateAssumeRolePolicyOutput, error)
	MockTagRole                       func(ctx context.Context, input *iam.TagRoleInput, opts []func(*iam.Options)) (*iam.TagRoleOutput, error)
	MockUntagRole                     func(ctx context.Context, input *iam.UntagRoleInput, opts []func(*iam.Options)) (*iam.UntagRoleOutput, error)
}

MockRoleClient is a type that implements all the methods for RoleClient interface

func (*MockRoleClient) CreateRole

func (m *MockRoleClient) CreateRole(ctx context.Context, input *iam.CreateRoleInput, opts ...func(*iam.Options)) (*iam.CreateRoleOutput, error)

CreateRole mocks CreateRole method

func (*MockRoleClient) DeleteRole

func (m *MockRoleClient) DeleteRole(ctx context.Context, input *iam.DeleteRoleInput, opts ...func(*iam.Options)) (*iam.DeleteRoleOutput, error)

DeleteRole mocks DeleteRole method

func (*MockRoleClient) DeleteRolePermissionsBoundary added in v0.42.0

func (m *MockRoleClient) DeleteRolePermissionsBoundary(ctx context.Context, input *iam.DeleteRolePermissionsBoundaryInput, opts ...func(*iam.Options)) (*iam.DeleteRolePermissionsBoundaryOutput, error)

DeleteRolePermissionsBoundary mocks DeleteRolePermissionsBoundary method

func (*MockRoleClient) GetRole

func (m *MockRoleClient) GetRole(ctx context.Context, input *iam.GetRoleInput, opts ...func(*iam.Options)) (*iam.GetRoleOutput, error)

GetRole mocks GetRole method

func (*MockRoleClient) PutRolePermissionsBoundary added in v0.42.0

func (m *MockRoleClient) PutRolePermissionsBoundary(ctx context.Context, input *iam.PutRolePermissionsBoundaryInput, opts ...func(*iam.Options)) (*iam.PutRolePermissionsBoundaryOutput, error)

PutRolePermissionsBoundary mocks PutRolePermissionsBoundary method

func (*MockRoleClient) TagRole

func (m *MockRoleClient) TagRole(ctx context.Context, input *iam.TagRoleInput, opts ...func(*iam.Options)) (*iam.TagRoleOutput, error)

TagRole mocks TagRole method

func (*MockRoleClient) UntagRole

func (m *MockRoleClient) UntagRole(ctx context.Context, input *iam.UntagRoleInput, opts ...func(*iam.Options)) (*iam.UntagRoleOutput, error)

UntagRole mocks UntagRole method

func (*MockRoleClient) UpdateAssumeRolePolicy

func (m *MockRoleClient) UpdateAssumeRolePolicy(ctx context.Context, input *iam.UpdateAssumeRolePolicyInput, opts ...func(*iam.Options)) (*iam.UpdateAssumeRolePolicyOutput, error)

UpdateAssumeRolePolicy mocks UpdateAssumeRolePolicy method

func (*MockRoleClient) UpdateRole

func (m *MockRoleClient) UpdateRole(ctx context.Context, input *iam.UpdateRoleInput, opts ...func(*iam.Options)) (*iam.UpdateRoleOutput, error)

UpdateRole mocks UpdateRole method

type MockRolePolicyAttachmentClient

type MockRolePolicyAttachmentClient struct {
	MockAttachRolePolicy         func(ctx context.Context, input *iam.AttachRolePolicyInput, opts []func(*iam.Options)) (*iam.AttachRolePolicyOutput, error)
	MockListAttachedRolePolicies func(ctx context.Context, input *iam.ListAttachedRolePoliciesInput, opts []func(*iam.Options)) (*iam.ListAttachedRolePoliciesOutput, error)
	MockDetachRolePolicy         func(ctx context.Context, input *iam.DetachRolePolicyInput, opts []func(*iam.Options)) (*iam.DetachRolePolicyOutput, error)
}

MockRolePolicyAttachmentClient is a type that implements all the methods for RolePolicyAttachmentClient interface

func (*MockRolePolicyAttachmentClient) AttachRolePolicy

AttachRolePolicy mocks AttachRolePolicy method

func (*MockRolePolicyAttachmentClient) DetachRolePolicy

DetachRolePolicy mocks DetachRolePolicy method

func (*MockRolePolicyAttachmentClient) ListAttachedRolePolicies

ListAttachedRolePolicies mocks ListAttachedRolePolicies method

type MockRolePolicyClient added in v0.46.0

type MockRolePolicyClient struct {
	MockGetRolePolicy    func(ctx context.Context, input *iam.GetRolePolicyInput, opts []func(*iam.Options)) (*iam.GetRolePolicyOutput, error)
	MockPutRolePolicy    func(ctx context.Context, input *iam.PutRolePolicyInput, opts []func(*iam.Options)) (*iam.PutRolePolicyOutput, error)
	MockDeleteRolePolicy func(ctx context.Context, input *iam.DeleteRolePolicyInput, opts []func(*iam.Options)) (*iam.DeleteRolePolicyOutput, error)
}

MockRolePolicyClient is a type that implements all the methods for RolePolicyClient interface

func (*MockRolePolicyClient) DeleteRolePolicy added in v0.46.0

func (m *MockRolePolicyClient) DeleteRolePolicy(ctx context.Context, input *iam.DeleteRolePolicyInput, opts ...func(*iam.Options)) (*iam.DeleteRolePolicyOutput, error)

DeleteRolePolicy mocks DeleteRolePolicy method

func (*MockRolePolicyClient) GetRolePolicy added in v0.46.0

func (m *MockRolePolicyClient) GetRolePolicy(ctx context.Context, input *iam.GetRolePolicyInput, opts ...func(*iam.Options)) (*iam.GetRolePolicyOutput, error)

GetRolePolicy mocks GetRolePolicy method

func (*MockRolePolicyClient) PutRolePolicy added in v0.46.0

func (m *MockRolePolicyClient) PutRolePolicy(ctx context.Context, input *iam.PutRolePolicyInput, opts ...func(*iam.Options)) (*iam.PutRolePolicyOutput, error)

PutRolePolicy mocks PutRolePolicy method

type MockSTSClient

type MockSTSClient struct {
	MockGetCallerIdentity func(ctx context.Context, input *sts.GetCallerIdentityInput, opts []func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)
}

MockSTSClient mock sts client

func (*MockSTSClient) GetCallerIdentity

func (c *MockSTSClient) GetCallerIdentity(ctx context.Context, input *sts.GetCallerIdentityInput, opts ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)

GetCallerIdentity calls the underlying MockGetCallerIdentity method.

type MockUserClient

type MockUserClient struct {
	MockUserInput                     MockUserInput
	MockGetUser                       func(ctx context.Context, input *iam.GetUserInput, opts []func(*iam.Options)) (*iam.GetUserOutput, error)
	MockCreateUser                    func(ctx context.Context, input *iam.CreateUserInput, opts []func(*iam.Options)) (*iam.CreateUserOutput, error)
	MockDeleteUser                    func(ctx context.Context, input *iam.DeleteUserInput, opts []func(*iam.Options)) (*iam.DeleteUserOutput, error)
	MockUpdateUser                    func(ctx context.Context, input *iam.UpdateUserInput, opts []func(*iam.Options)) (*iam.UpdateUserOutput, error)
	MockPutUserPermissionsBoundary    func(ctx context.Context, input *iam.PutUserPermissionsBoundaryInput, opts []func(*iam.Options)) (*iam.PutUserPermissionsBoundaryOutput, error)
	MockDeleteUserPermissionsBoundary func(ctx context.Context, input *iam.DeleteUserPermissionsBoundaryInput, opts []func(*iam.Options)) (*iam.DeleteUserPermissionsBoundaryOutput, error)
	MockTagUser                       func(ctx context.Context, input *iam.TagUserInput, opt []func(*iam.Options)) (*iam.TagUserOutput, error)
	MockUntagUser                     func(ctx context.Context, input *iam.UntagUserInput, opts []func(*iam.Options)) (*iam.UntagUserOutput, error)
}

MockUserClient is a type that implements all the methods for RoleClient interface

func (*MockUserClient) CreateUser

func (m *MockUserClient) CreateUser(ctx context.Context, input *iam.CreateUserInput, opts ...func(*iam.Options)) (*iam.CreateUserOutput, error)

CreateUser mocks CreateUser method

func (*MockUserClient) DeleteUser

func (m *MockUserClient) DeleteUser(ctx context.Context, input *iam.DeleteUserInput, opts ...func(*iam.Options)) (*iam.DeleteUserOutput, error)

DeleteUser mocks DeleteUser method

func (*MockUserClient) DeleteUserPermissionsBoundary added in v0.42.0

func (m *MockUserClient) DeleteUserPermissionsBoundary(ctx context.Context, input *iam.DeleteUserPermissionsBoundaryInput, opts ...func(*iam.Options)) (*iam.DeleteUserPermissionsBoundaryOutput, error)

DeleteUserPermissionsBoundary mocks DeleteUserPermissionsBoundary method

func (*MockUserClient) GetUser

func (m *MockUserClient) GetUser(ctx context.Context, input *iam.GetUserInput, opts ...func(*iam.Options)) (*iam.GetUserOutput, error)

GetUser mocks GetUser method

func (*MockUserClient) PutUserPermissionsBoundary added in v0.42.0

func (m *MockUserClient) PutUserPermissionsBoundary(ctx context.Context, input *iam.PutUserPermissionsBoundaryInput, opts ...func(*iam.Options)) (*iam.PutUserPermissionsBoundaryOutput, error)

PutUserPermissionsBoundary mocks PutUserPermissionsBoundary method

func (*MockUserClient) TagUser

func (m *MockUserClient) TagUser(ctx context.Context, input *iam.TagUserInput, opts ...func(*iam.Options)) (*iam.TagUserOutput, error)

TagUser mocks TagUser method

func (*MockUserClient) UntagUser

func (m *MockUserClient) UntagUser(ctx context.Context, input *iam.UntagUserInput, opts ...func(*iam.Options)) (*iam.UntagUserOutput, error)

UntagUser mocks UntagUser method

func (*MockUserClient) UpdateUser

func (m *MockUserClient) UpdateUser(ctx context.Context, input *iam.UpdateUserInput, opts ...func(*iam.Options)) (*iam.UpdateUserOutput, error)

UpdateUser mocks UpdateUser method

type MockUserInput

type MockUserInput struct {
	TagUserInput   *iam.TagUserInput
	UntagUserInput *iam.UntagUserInput
}

MockUserInput holds the input structures for test inspections

type MockUserPolicyAttachmentClient

type MockUserPolicyAttachmentClient struct {
	MockAttachUserPolicy         func(ctx context.Context, input *iam.AttachUserPolicyInput, opts []func(*iam.Options)) (*iam.AttachUserPolicyOutput, error)
	MockListAttachedUserPolicies func(ctx context.Context, input *iam.ListAttachedUserPoliciesInput, opts []func(*iam.Options)) (*iam.ListAttachedUserPoliciesOutput, error)
	MockDetachUserPolicy         func(ctx context.Context, input *iam.DetachUserPolicyInput, opts []func(*iam.Options)) (*iam.DetachUserPolicyOutput, error)
}

MockUserPolicyAttachmentClient is a type that implements all the methods for UserPolicyAttachmentClient interface

func (*MockUserPolicyAttachmentClient) AttachUserPolicy

AttachUserPolicy mocks AttachUserPolicy method

func (*MockUserPolicyAttachmentClient) DetachUserPolicy

DetachUserPolicy mocks DetachUserPolicy method

func (*MockUserPolicyAttachmentClient) ListAttachedUserPolicies

ListAttachedUserPolicies mocks ListAttachedUserPolicies method

Jump to

Keyboard shortcuts

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