rds

package
v0.0.0-...-bc2d38f Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RDS

type RDS struct {
	*rds.RDS
}

RDS is a wrapper around ec2.RDS structs

func NewClient

func NewClient(ctx context.Context, awsConfig *aws.Config, region string) (*RDS, error)

NewRDSClient returns ec2 client struct.

func (RDS) CreateDBCluster

func (r RDS) CreateDBCluster(
	ctx context.Context,
	storage int64,
	instanceClass,
	instanceID,
	dbSubnetGroup,
	engine,
	dbName,
	username,
	password string,
	sgIDs []string,
) (*rds.CreateDBClusterOutput, error)

func (RDS) CreateDBClusterSnapshot

func (r RDS) CreateDBClusterSnapshot(ctx context.Context, clusterID, snapshotID string) (*rds.CreateDBClusterSnapshotOutput, error)

func (RDS) CreateDBInstance

func (r RDS) CreateDBInstance(
	ctx context.Context,
	storage *int64,
	instanceClass,
	instanceID,
	engine,
	username,
	password string,
	sgIDs []string,
	publicAccess *bool,
	restoredClusterID *string,
	dbSubnetGroup string,
) (*rds.CreateDBInstanceOutput, error)

CreateDBInstanceWithContext

func (RDS) CreateDBSnapshot

func (r RDS) CreateDBSnapshot(ctx context.Context, instanceID, snapshotID string) (*rds.CreateDBSnapshotOutput, error)

func (RDS) CreateDBSubnetGroup

func (r RDS) CreateDBSubnetGroup(ctx context.Context, dbSubnetGroupName, dbSubnetGroupDescription string, subnetIDs []string) (*rds.CreateDBSubnetGroupOutput, error)

func (RDS) DeleteDBCluster

func (r RDS) DeleteDBCluster(ctx context.Context, instanceID string) (*rds.DeleteDBClusterOutput, error)

func (RDS) DeleteDBClusterSnapshot

func (r RDS) DeleteDBClusterSnapshot(ctx context.Context, snapshotID string) (*rds.DeleteDBClusterSnapshotOutput, error)

func (RDS) DeleteDBInstance

func (r RDS) DeleteDBInstance(ctx context.Context, instanceID string) (*rds.DeleteDBInstanceOutput, error)

func (RDS) DeleteDBSnapshot

func (r RDS) DeleteDBSnapshot(ctx context.Context, snapshotID string) (*rds.DeleteDBSnapshotOutput, error)

func (RDS) DeleteDBSubnetGroup

func (r RDS) DeleteDBSubnetGroup(ctx context.Context, dbSubnetGroupName string) (*rds.DeleteDBSubnetGroupOutput, error)

func (RDS) DescribeDBClusters

func (r RDS) DescribeDBClusters(ctx context.Context, instanceID string) (*rds.DescribeDBClustersOutput, error)

func (RDS) DescribeDBClustersSnapshot

func (r RDS) DescribeDBClustersSnapshot(ctx context.Context, snapshotID string) (*rds.DescribeDBClusterSnapshotsOutput, error)

func (RDS) DescribeDBInstances

func (r RDS) DescribeDBInstances(ctx context.Context, instanceID string) (*rds.DescribeDBInstancesOutput, error)

func (RDS) DescribeDBSnapshot

func (r RDS) DescribeDBSnapshot(ctx context.Context, snapshotID string) (*rds.DescribeDBSnapshotsOutput, error)

func (RDS) RestoreDBClusterFromDBSnapshot

func (r RDS) RestoreDBClusterFromDBSnapshot(ctx context.Context, instanceID, dbSubnetGroup, snapshotID, dbEngine, version string, sgIDs []string) (*rds.RestoreDBClusterFromSnapshotOutput, error)

func (RDS) RestoreDBInstanceFromDBSnapshot

func (r RDS) RestoreDBInstanceFromDBSnapshot(ctx context.Context, instanceID, subnetGroupName, snapshotID string, sgIDs []string) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error)

func (RDS) WaitOnDBCluster

func (r RDS) WaitOnDBCluster(ctx context.Context, dbClusterID, status string) error

WaitDBCluster waits for DB cluster with instanceID

func (RDS) WaitUntilDBClusterAvailable

func (r RDS) WaitUntilDBClusterAvailable(ctx context.Context, dbClusterID string) error

func (RDS) WaitUntilDBClusterDeleted

func (r RDS) WaitUntilDBClusterDeleted(ctx context.Context, dbClusterID string) error

func (RDS) WaitUntilDBClusterSnapshotAvailable

func (r RDS) WaitUntilDBClusterSnapshotAvailable(ctx context.Context, snapshotID string) error

func (RDS) WaitUntilDBClusterSnapshotDeleted

func (r RDS) WaitUntilDBClusterSnapshotDeleted(ctx context.Context, snapshotID string) error

func (RDS) WaitUntilDBInstanceAvailable

func (r RDS) WaitUntilDBInstanceAvailable(ctx context.Context, instanceID string) error

func (RDS) WaitUntilDBInstanceDeleted

func (r RDS) WaitUntilDBInstanceDeleted(ctx context.Context, instanceID string) error

func (RDS) WaitUntilDBSnapshotAvailable

func (r RDS) WaitUntilDBSnapshotAvailable(ctx context.Context, snapshotID string) error

func (RDS) WaitUntilDBSnapshotDeleted

func (r RDS) WaitUntilDBSnapshotDeleted(ctx context.Context, snapshotID string) error

Jump to

Keyboard shortcuts

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