fake

package
v0.0.0-...-9cdaeea Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxSessionDuration = 3600
)
View Source
const SuffixLen = 17

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Attachments     sync.Map
	Roles           sync.Map
	ManagedPolicies sync.Map
	// contains filtered or unexported fields
}

type IamService

type IamService struct {
	AccountID string
	Cache
}

func NewIamService

func NewIamService() *IamService

func (*IamService) AttachRolePolicy

func (i *IamService) AttachRolePolicy(
	_ context.Context,
	params *iam.AttachRolePolicyInput,
	_ ...func(*iam.Options),
) (*iam.AttachRolePolicyOutput, error)

func (*IamService) CreatePolicy

func (i *IamService) CreatePolicy(_ context.Context, p *iam.CreatePolicyInput, _ ...func(*iam.Options)) (*iam.CreatePolicyOutput, error)

func (*IamService) CreatePolicyVersion

func (i *IamService) CreatePolicyVersion(_ context.Context, in *iam.CreatePolicyVersionInput, _ ...func(*iam.Options)) (*iam.CreatePolicyVersionOutput, error)

func (*IamService) CreateRole

func (i *IamService) CreateRole(
	_ context.Context,
	params *iam.CreateRoleInput,
	_ ...func(*iam.Options),
) (*iam.CreateRoleOutput, error)

func (*IamService) DeletePolicy

func (i *IamService) DeletePolicy(_ context.Context, p *iam.DeletePolicyInput, _ ...func(*iam.Options)) (*iam.DeletePolicyOutput, error)

func (*IamService) DeletePolicyVersion

func (i *IamService) DeletePolicyVersion(_ context.Context, in *iam.DeletePolicyVersionInput, _ ...func(*iam.Options)) (*iam.DeletePolicyVersionOutput, error)

func (*IamService) DeleteRole

func (i *IamService) DeleteRole(
	_ context.Context,
	params *iam.DeleteRoleInput,
	_ ...func(*iam.Options),
) (*iam.DeleteRoleOutput, error)

func (*IamService) DetachRolePolicy

func (i *IamService) DetachRolePolicy(
	_ context.Context,
	params *iam.DetachRolePolicyInput,
	_ ...func(*iam.Options),
) (*iam.DetachRolePolicyOutput, error)

func (*IamService) GetPolicy

func (i *IamService) GetPolicy(_ context.Context, in *iam.GetPolicyInput, _ ...func(*iam.Options)) (*iam.GetPolicyOutput, error)

func (*IamService) GetPolicyVersion

func (i *IamService) GetPolicyVersion(_ context.Context, in *iam.GetPolicyVersionInput, _ ...func(*iam.Options)) (*iam.GetPolicyVersionOutput, error)

func (*IamService) GetRole

func (i *IamService) GetRole(
	_ context.Context,
	params *iam.GetRoleInput,
	_ ...func(*iam.Options),
) (*iam.GetRoleOutput, error)

func (*IamService) ListAttachedRolePolicies

func (i *IamService) ListAttachedRolePolicies(
	_ context.Context,
	params *iam.ListAttachedRolePoliciesInput,
	_ ...func(*iam.Options),
) (*iam.ListAttachedRolePoliciesOutput, error)

func (*IamService) ListPolicies

func (i *IamService) ListPolicies(_ context.Context, params *iam.ListPoliciesInput, _ ...func(*iam.Options)) (*iam.ListPoliciesOutput, error)

func (*IamService) Reset

func (i *IamService) Reset()

func (*IamService) UpdateAssumeRolePolicy

func (i *IamService) UpdateAssumeRolePolicy(
	_ context.Context,
	params *iam.UpdateAssumeRolePolicyInput,
	_ ...func(options *iam.Options),
) (*iam.UpdateAssumeRolePolicyOutput, error)

func (*IamService) UpdateRole

func (i *IamService) UpdateRole(
	_ context.Context,
	params *iam.UpdateRoleInput,
	_ ...func(*iam.Options),
) (*iam.UpdateRoleOutput, error)

Jump to

Keyboard shortcuts

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