awsrds

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDBClusterDoesNotExist = errors.New("rds db cluster does not exist")
)
View Source
var (
	ErrDBInstanceDoesNotExist = errors.New("rds db instance does not exist")
)

Functions

func AddTagsToResource

func AddTagsToResource(resourceARN string, tags []*rds.Tag, rdssvc *rds.RDS, logger lager.Logger) error

func BuilRDSTags

func BuilRDSTags(tags map[string]string) []*rds.Tag

Types

type DBCluster

type DBCluster interface {
	Describe(ID string) (DBClusterDetails, error)
	Create(ID string, dbClusterDetails DBClusterDetails) error
	Modify(ID string, dbClusterDetails DBClusterDetails, applyImmediately bool) error
	Delete(ID string, skipFinalSnapshot bool) error
}

type DBClusterDetails

type DBClusterDetails struct {
	Identifier                  string
	Status                      string
	AllocatedStorage            int64
	AvailabilityZones           []string
	BackupRetentionPeriod       int64
	CharacterSetName            string
	DBClusterArn                string
	DBClusterParameterGroupName string
	DBSubnetGroupName           string
	DatabaseName                string
	Endpoint                    string
	Engine                      string
	EngineVersion               string
	MasterUsername              string
	MasterUserPassword          string
	OptionGroupName             string
	Port                        int64
	PreferredBackupWindow       string
	PreferredMaintenanceWindow  string
	VpcSecurityGroupIds         []string
	Tags                        map[string]string
}

type DBInstance

type DBInstance interface {
	Describe(ID string) (DBInstanceDetails, error)
	Create(ID string, dbInstanceDetails DBInstanceDetails) error
	Modify(ID string, dbInstanceDetails DBInstanceDetails, applyImmediately bool) error
	Delete(ID string, skipFinalSnapshot bool) error
}

type DBInstanceDetails

type DBInstanceDetails struct {
	Identifier                 string
	Status                     string
	DBInstanceClass            string
	Engine                     string
	EngineVersion              string
	Address                    string
	AllocatedStorage           int64
	AutoMinorVersionUpgrade    bool
	AvailabilityZone           string
	BackupRetentionPeriod      int64
	CharacterSetName           string
	CopyTagsToSnapshot         bool
	DBName                     string
	DBClusterIdentifier        string
	DBInstanceArn              string
	DBParameterGroupName       string
	DBSecurityGroups           []string
	DBSubnetGroupName          string
	Iops                       int64
	KmsKeyID                   string
	LicenseModel               string
	MasterUsername             string
	MasterUserPassword         string
	MultiAZ                    bool
	OptionGroupName            string
	PendingModifications       bool
	Port                       int64
	PreferredBackupWindow      string
	PreferredMaintenanceWindow string
	PubliclyAccessible         bool
	StorageEncrypted           bool
	StorageType                string
	Tags                       map[string]string
	VpcSecurityGroupIds        []string
}

type RDSDBCluster

type RDSDBCluster struct {
	// contains filtered or unexported fields
}

func NewRDSDBCluster

func NewRDSDBCluster(
	region string,
	rdssvc *rds.RDS,
	logger lager.Logger,
) *RDSDBCluster

func (*RDSDBCluster) Create

func (r *RDSDBCluster) Create(ID string, dbClusterDetails DBClusterDetails) error

func (*RDSDBCluster) Delete

func (r *RDSDBCluster) Delete(ID string, skipFinalSnapshot bool) error

func (*RDSDBCluster) Describe

func (r *RDSDBCluster) Describe(ID string) (DBClusterDetails, error)

func (*RDSDBCluster) Modify

func (r *RDSDBCluster) Modify(ID string, dbClusterDetails DBClusterDetails, applyImmediately bool) error

type RDSDBInstance

type RDSDBInstance struct {
	// contains filtered or unexported fields
}

func NewRDSDBInstance

func NewRDSDBInstance(
	region string,
	rdssvc *rds.RDS,
	logger lager.Logger,
) *RDSDBInstance

func (*RDSDBInstance) Create

func (r *RDSDBInstance) Create(ID string, dbInstanceDetails DBInstanceDetails) error

func (*RDSDBInstance) Delete

func (r *RDSDBInstance) Delete(ID string, skipFinalSnapshot bool) error

func (*RDSDBInstance) Describe

func (r *RDSDBInstance) Describe(ID string) (DBInstanceDetails, error)

func (*RDSDBInstance) Modify

func (r *RDSDBInstance) Modify(ID string, dbInstanceDetails DBInstanceDetails, applyImmediately bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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