Documentation ¶
Index ¶
- type MockRDSClient
- func (m *MockRDSClient) AddTagsToResource(ctx context.Context, i *rds.AddTagsToResourceInput, opts ...func(*rds.Options)) (*rds.AddTagsToResourceOutput, error)
- func (m *MockRDSClient) CreateDBInstance(ctx context.Context, i *rds.CreateDBInstanceInput, opts ...func(*rds.Options)) (*rds.CreateDBInstanceOutput, error)
- func (m *MockRDSClient) DeleteDBInstance(ctx context.Context, i *rds.DeleteDBInstanceInput, opts ...func(*rds.Options)) (*rds.DeleteDBInstanceOutput, error)
- func (m *MockRDSClient) DescribeDBInstances(ctx context.Context, i *rds.DescribeDBInstancesInput, ...) (*rds.DescribeDBInstancesOutput, error)
- func (m *MockRDSClient) ModifyDBInstance(ctx context.Context, i *rds.ModifyDBInstanceInput, opts ...func(*rds.Options)) (*rds.ModifyDBInstanceOutput, error)
- func (m *MockRDSClient) RestoreDBInstanceFromDBSnapshot(ctx context.Context, i *rds.RestoreDBInstanceFromDBSnapshotInput, ...) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error)
- func (m *MockRDSClient) RestoreDBInstanceFromS3(ctx context.Context, i *rds.RestoreDBInstanceFromS3Input, ...) (*rds.RestoreDBInstanceFromS3Output, error)
- func (m *MockRDSClient) RestoreDBInstanceToPointInTime(ctx context.Context, i *rds.RestoreDBInstanceToPointInTimeInput, ...) (*rds.RestoreDBInstanceToPointInTimeOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRDSClient ¶
type MockRDSClient struct { MockCreate func(context.Context, *rds.CreateDBInstanceInput, []func(*rds.Options)) (*rds.CreateDBInstanceOutput, error) MockS3Restore func(context.Context, *rds.RestoreDBInstanceFromS3Input, []func(*rds.Options)) (*rds.RestoreDBInstanceFromS3Output, error) MockSnapshotRestore func(context.Context, *rds.RestoreDBInstanceFromDBSnapshotInput, []func(*rds.Options)) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error) MockPointInTimeRestore func(context.Context, *rds.RestoreDBInstanceToPointInTimeInput, []func(*rds.Options)) (*rds.RestoreDBInstanceToPointInTimeOutput, error) MockDescribe func(context.Context, *rds.DescribeDBInstancesInput, []func(*rds.Options)) (*rds.DescribeDBInstancesOutput, error) MockModify func(context.Context, *rds.ModifyDBInstanceInput, []func(*rds.Options)) (*rds.ModifyDBInstanceOutput, error) MockDelete func(context.Context, *rds.DeleteDBInstanceInput, []func(*rds.Options)) (*rds.DeleteDBInstanceOutput, error) MockAddTags func(context.Context, *rds.AddTagsToResourceInput, []func(*rds.Options)) (*rds.AddTagsToResourceOutput, error) }
MockRDSClient for testing.
func (*MockRDSClient) AddTagsToResource ¶
func (m *MockRDSClient) AddTagsToResource(ctx context.Context, i *rds.AddTagsToResourceInput, opts ...func(*rds.Options)) (*rds.AddTagsToResourceOutput, error)
AddTagsToResource adds tags to RDS Instance.
func (*MockRDSClient) CreateDBInstance ¶
func (m *MockRDSClient) CreateDBInstance(ctx context.Context, i *rds.CreateDBInstanceInput, opts ...func(*rds.Options)) (*rds.CreateDBInstanceOutput, error)
CreateDBInstance creates RDS Instance with provided Specification
func (*MockRDSClient) DeleteDBInstance ¶
func (m *MockRDSClient) DeleteDBInstance(ctx context.Context, i *rds.DeleteDBInstanceInput, opts ...func(*rds.Options)) (*rds.DeleteDBInstanceOutput, error)
DeleteDBInstance deletes RDS Instance
func (*MockRDSClient) DescribeDBInstances ¶
func (m *MockRDSClient) DescribeDBInstances(ctx context.Context, i *rds.DescribeDBInstancesInput, opts ...func(*rds.Options)) (*rds.DescribeDBInstancesOutput, error)
DescribeDBInstances finds RDS Instance by name
func (*MockRDSClient) ModifyDBInstance ¶
func (m *MockRDSClient) ModifyDBInstance(ctx context.Context, i *rds.ModifyDBInstanceInput, opts ...func(*rds.Options)) (*rds.ModifyDBInstanceOutput, error)
ModifyDBInstance modifies RDS Instance with provided Specification
func (*MockRDSClient) RestoreDBInstanceFromDBSnapshot ¶
func (m *MockRDSClient) RestoreDBInstanceFromDBSnapshot(ctx context.Context, i *rds.RestoreDBInstanceFromDBSnapshotInput, opts ...func(*rds.Options)) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error)
RestoreDBInstanceFromDBSnapshot restores an RDS Instance from a database snapshot with the provided Specification
func (*MockRDSClient) RestoreDBInstanceFromS3 ¶
func (m *MockRDSClient) RestoreDBInstanceFromS3(ctx context.Context, i *rds.RestoreDBInstanceFromS3Input, opts ...func(*rds.Options)) (*rds.RestoreDBInstanceFromS3Output, error)
RestoreDBInstanceFromS3 restores an RDS Instance from a backup with the provided Specification
func (*MockRDSClient) RestoreDBInstanceToPointInTime ¶
func (m *MockRDSClient) RestoreDBInstanceToPointInTime(ctx context.Context, i *rds.RestoreDBInstanceToPointInTimeInput, opts ...func(*rds.Options)) (*rds.RestoreDBInstanceToPointInTimeOutput, error)
RestoreDBInstanceToPointInTime restores an RDS Instance to the date and time with the provided Specification
Click to show internal directories.
Click to hide internal directories.