test

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMySQLPasswordClient

type MockMySQLPasswordClient struct {
	SetPasswordFunc    func(ctx context.Context, creds db.NewPassword) error
	VerifyPasswordFunc func(ctx context.Context, creds db.NewPassword) error
}

func (MockMySQLPasswordClient) SetPassword

func (m MockMySQLPasswordClient) SetPassword(ctx context.Context, creds db.NewPassword) error

func (MockMySQLPasswordClient) VerifyPassword

func (m MockMySQLPasswordClient) VerifyPassword(ctx context.Context, creds db.NewPassword) error

type MockPasswordSetter

type MockPasswordSetter struct {
	InitFunc           func(context.Context, map[string]string) error
	SetPasswordFunc    func(ctx context.Context, creds db.NewPassword) error
	VerifyPasswordFunc func(ctx context.Context, creds db.NewPassword) error
	RollbackFunc       func(ctx context.Context, creds db.NewPassword) error
}

func (MockPasswordSetter) Init

func (m MockPasswordSetter) Init(ctx context.Context, s map[string]string) error

func (MockPasswordSetter) Rollback

func (m MockPasswordSetter) Rollback(ctx context.Context, creds db.NewPassword) error

func (MockPasswordSetter) SetPassword

func (m MockPasswordSetter) SetPassword(ctx context.Context, creds db.NewPassword) error

func (MockPasswordSetter) VerifyPassword

func (m MockPasswordSetter) VerifyPassword(ctx context.Context, creds db.NewPassword) error

type MockRDSClient

type MockRDSClient struct {
	rdsiface.RDSAPI
	DescribeDBInstancesFunc func(*rds.DescribeDBInstancesInput) (*rds.DescribeDBInstancesOutput, error)
}

func (MockRDSClient) DescribeDBInstances

type MockSecretSetter

type MockSecretSetter struct {
	InitFunc        func(context.Context, map[string]string) error
	HandlerFunc     func(context.Context, map[string]string) error
	RotateFunc      func(secret map[string]string) error
	CredentialsFunc func(secret map[string]string) (username, password string)
}

func (MockSecretSetter) Credentials

func (m MockSecretSetter) Credentials(secret map[string]string) (username, password string)

func (MockSecretSetter) Handler

func (m MockSecretSetter) Handler(ctx context.Context, event map[string]string) error

func (MockSecretSetter) Init

func (m MockSecretSetter) Init(ctx context.Context, event map[string]string) error

func (MockSecretSetter) Rotate

func (m MockSecretSetter) Rotate(secret map[string]string) error

Jump to

Keyboard shortcuts

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