fake

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 7 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 {
	ExecutionCounter int

	CreateSecretWithContextFn   CreateSecretWithContextFn
	GetSecretValueWithContextFn GetSecretValueWithContextFn
	PutSecretValueWithContextFn PutSecretValueWithContextFn
	DescribeSecretWithContextFn DescribeSecretWithContextFn
	DeleteSecretWithContextFn   DeleteSecretWithContextFn
	ListSecretsFn               ListSecretsFn
	// contains filtered or unexported fields
}

Client implements the aws secretsmanager interface.

func NewClient added in v0.3.5

func NewClient() *Client

NewClient init a new fake client.

func (Client) CreateSecretWithContext added in v0.7.0

func (sm Client) CreateSecretWithContext(ctx aws.Context, input *awssm.CreateSecretInput, options ...request.Option) (*awssm.CreateSecretOutput, error)

func (Client) DeleteSecretWithContext added in v0.7.0

func (sm Client) DeleteSecretWithContext(ctx aws.Context, input *awssm.DeleteSecretInput, opts ...request.Option) (*awssm.DeleteSecretOutput, error)

func (Client) DescribeSecretWithContext added in v0.7.0

func (sm Client) DescribeSecretWithContext(ctx aws.Context, input *awssm.DescribeSecretInput, options ...request.Option) (*awssm.DescribeSecretOutput, error)

func (*Client) GetSecretValue

func (sm *Client) GetSecretValue(in *awssm.GetSecretValueInput) (*awssm.GetSecretValueOutput, error)

func (Client) GetSecretValueWithContext added in v0.7.0

func (sm Client) GetSecretValueWithContext(ctx aws.Context, input *awssm.GetSecretValueInput, options ...request.Option) (*awssm.GetSecretValueOutput, error)

func (*Client) ListSecrets added in v0.5.0

func (sm *Client) ListSecrets(input *awssm.ListSecretsInput) (*awssm.ListSecretsOutput, error)

func (Client) PutSecretValueWithContext added in v0.7.0

func (sm Client) PutSecretValueWithContext(ctx aws.Context, input *awssm.PutSecretValueInput, options ...request.Option) (*awssm.PutSecretValueOutput, error)

func (*Client) WithValue

func (sm *Client) WithValue(in *awssm.GetSecretValueInput, val *awssm.GetSecretValueOutput, err error)

type CreateSecretWithContextFn added in v0.7.0

type CreateSecretWithContextFn func(aws.Context, *awssm.CreateSecretInput, ...request.Option) (*awssm.CreateSecretOutput, error)

func NewCreateSecretWithContextFn added in v0.7.0

func NewCreateSecretWithContextFn(output *awssm.CreateSecretOutput, err error, expectedSecretBinary ...[]byte) CreateSecretWithContextFn

type DeleteSecretWithContextFn added in v0.7.0

type DeleteSecretWithContextFn func(ctx aws.Context, input *awssm.DeleteSecretInput, opts ...request.Option) (*awssm.DeleteSecretOutput, error)

func NewDeleteSecretWithContextFn added in v0.7.0

func NewDeleteSecretWithContextFn(output *awssm.DeleteSecretOutput, err error) DeleteSecretWithContextFn

type DescribeSecretWithContextFn added in v0.7.0

type DescribeSecretWithContextFn func(aws.Context, *awssm.DescribeSecretInput, ...request.Option) (*awssm.DescribeSecretOutput, error)

func NewDescribeSecretWithContextFn added in v0.7.0

func NewDescribeSecretWithContextFn(output *awssm.DescribeSecretOutput, err error) DescribeSecretWithContextFn

type ExpectedPutSecretValueInput added in v0.9.6

type ExpectedPutSecretValueInput struct {
	SecretBinary []byte
	Version      *string
}

type GetSecretValueWithContextFn added in v0.7.0

type GetSecretValueWithContextFn func(aws.Context, *awssm.GetSecretValueInput, ...request.Option) (*awssm.GetSecretValueOutput, error)

func NewGetSecretValueWithContextFn added in v0.7.0

func NewGetSecretValueWithContextFn(output *awssm.GetSecretValueOutput, err error) GetSecretValueWithContextFn

type ListSecretsFn added in v0.9.12

type ListSecretsFn func(ctx aws.Context, input *awssm.ListSecretsInput, opts ...request.Option) (*awssm.ListSecretsOutput, error)

type PutSecretValueWithContextFn added in v0.7.0

type PutSecretValueWithContextFn func(aws.Context, *awssm.PutSecretValueInput, ...request.Option) (*awssm.PutSecretValueOutput, error)

func NewPutSecretValueWithContextFn added in v0.7.0

func NewPutSecretValueWithContextFn(output *awssm.PutSecretValueOutput, err error, expectedInput ...ExpectedPutSecretValueInput) PutSecretValueWithContextFn

Jump to

Keyboard shortcuts

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