mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCreateAccessKey

type MockCreateAccessKey func(ctx context.Context, params *iam.CreateAccessKeyInput, optFns ...func(*iam.Options)) (*iam.CreateAccessKeyOutput, error)

MockCreateAccessKey is a type that represents a function that mock IAM's ListAccessKeys.

func NewMockCreateAccessKeyAPI

func NewMockCreateAccessKeyAPI() MockCreateAccessKey

type MockDeleteAccessKey

type MockDeleteAccessKey func(ctx context.Context, params *iam.DeleteAccessKeyInput, optFns ...func(*iam.Options)) (*iam.DeleteAccessKeyOutput, error)

MockDeleteAccessKey is a type that represents a function that mock IAM's ListAccessKeys.

func NewMockDeleteAccessKeyAPI

func NewMockDeleteAccessKeyAPI() MockDeleteAccessKey

type MockIAMAccessKeyAPI

type MockIAMAccessKeyAPI struct {
	ListAccessKeysAPI  MockListAccessKeys
	CreateAccessKeyAPI MockCreateAccessKey
	DeleteAccessKeyAPI MockDeleteAccessKey
}

MockACMAPI is a struct that represents an ACM client.

func NewMockIAMAccessKeyAPI

func NewMockIAMAccessKeyAPI(mockParams MockIAMAccessKeyParams) MockIAMAccessKeyAPI

func (MockIAMAccessKeyAPI) CreateAccessKey

func (m MockIAMAccessKeyAPI) CreateAccessKey(ctx context.Context, params *iam.CreateAccessKeyInput, optFns ...func(*iam.Options)) (*iam.CreateAccessKeyOutput, error)

CreateAccessKeyAPI returns a function that mock original of ACM DescribeCertificate.

func (MockIAMAccessKeyAPI) DeleteAccessKey

func (m MockIAMAccessKeyAPI) DeleteAccessKey(ctx context.Context, params *iam.DeleteAccessKeyInput, optFns ...func(*iam.Options)) (*iam.DeleteAccessKeyOutput, error)

CreateAccessKeyAPI returns a function that mock original of ACM DescribeCertificate.

func (MockIAMAccessKeyAPI) ListAccessKeys

func (m MockIAMAccessKeyAPI) ListAccessKeys(ctx context.Context, params *iam.ListAccessKeysInput, optFns ...func(*iam.Options)) (*iam.ListAccessKeysOutput, error)

ListAccessKeys returns a function that mock original of IAM ListAccessKeys.

type MockIAMAccessKeyParams

type MockIAMAccessKeyParams struct {
	ListAccessKeysOutput  *iam.ListAccessKeysOutput
	CreateAccessKeyOutput *iam.CreateAccessKeyOutput
	DeleteAccessKeyOutput *iam.DeleteAccessKeyOutput
}

type MockListAccessKeys

type MockListAccessKeys func(ctx context.Context, params *iam.ListAccessKeysInput, optFns ...func(*iam.Options)) (*iam.ListAccessKeysOutput, error)

MockListAccessKeys is a type that represents a function that mock IAM's ListAccessKeys.

func NewMockListAccessKeysAPI

func NewMockListAccessKeysAPI() MockListAccessKeys

Jump to

Keyboard shortcuts

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