Documentation ¶
Index ¶
- type MockMySQLPasswordClient
- type MockPasswordSetter
- func (m MockPasswordSetter) Init(ctx context.Context, s map[string]string) error
- func (m MockPasswordSetter) Rollback(ctx context.Context, creds db.NewPassword) error
- func (m MockPasswordSetter) SetPassword(ctx context.Context, creds db.NewPassword) error
- func (m MockPasswordSetter) VerifyPassword(ctx context.Context, creds db.NewPassword) error
- type MockRDSClient
- type MockSecretSetter
- func (m MockSecretSetter) Credentials(secret map[string]string) (username, password string)
- func (m MockSecretSetter) Handler(ctx context.Context, event map[string]string) error
- func (m MockSecretSetter) Init(ctx context.Context, event map[string]string) error
- func (m MockSecretSetter) Rotate(secret map[string]string) error
- type MockSecretsManager
- func (m MockSecretsManager) GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
- func (m MockSecretsManager) PutSecretValue(input *secretsmanager.PutSecretValueInput) (*secretsmanager.PutSecretValueOutput, error)
- func (m MockSecretsManager) UpdateSecretVersionStage(input *secretsmanager.UpdateSecretVersionStageInput) (*secretsmanager.UpdateSecretVersionStageOutput, error)
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) 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 ¶
func (m MockRDSClient) DescribeDBInstances(input *rds.DescribeDBInstancesInput) (*rds.DescribeDBInstancesOutput, error)
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)
type MockSecretsManager ¶
type MockSecretsManager struct { secretsmanageriface.SecretsManagerAPI GetSecretValueFunc func(*secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error) PutSecretValueFunc func(*secretsmanager.PutSecretValueInput) (*secretsmanager.PutSecretValueOutput, error) UpdateSecretVersionStageFunc func(*secretsmanager.UpdateSecretVersionStageInput) (*secretsmanager.UpdateSecretVersionStageOutput, error) }
func (MockSecretsManager) GetSecretValue ¶
func (m MockSecretsManager) GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
func (MockSecretsManager) PutSecretValue ¶
func (m MockSecretsManager) PutSecretValue(input *secretsmanager.PutSecretValueInput) (*secretsmanager.PutSecretValueOutput, error)
func (MockSecretsManager) UpdateSecretVersionStage ¶
func (m MockSecretsManager) UpdateSecretVersionStage(input *secretsmanager.UpdateSecretVersionStageInput) (*secretsmanager.UpdateSecretVersionStageOutput, error)
Click to show internal directories.
Click to hide internal directories.