rds

package
v0.0.0-...-51c5060 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: CC0-1.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRDSBroker

func InitRDSBroker(brokerDB *gorm.DB, settings *config.Settings) base.Broker

InitRDSBroker is the constructor for the rdsBroker.

func NewAwsParameterGroupClient

func NewAwsParameterGroupClient(rds rdsiface.RDSAPI, settings config.Settings) *awsParameterGroupClient

Types

type DatabaseUtils

type DatabaseUtils interface {
	FormatDBName(dbType string, database string) string
	// contains filtered or unexported methods
}

type Options

type Options struct {
	AllocatedStorage      int64  `json:"storage"`
	EnableFunctions       bool   `json:"enable_functions"`
	PubliclyAccessible    bool   `json:"publicly_accessible"`
	Version               string `json:"version"`
	BackupRetentionPeriod int64  `json:"backup_retention_period"`
	BinaryLogFormat       string `json:"binary_log_format"`
	EnablePgCron          *bool  `json:"enable_pg_cron"`
	RotateCredentials     *bool  `json:"rotate_credentials"`
	StorageType           string `json:"storage_type"`
}

Options is a struct containing all of the custom parameters supported by the broker for the "cf create-service" and "cf update-service" commands - they are passed in via the "-c <JSON string or file>" flag.

func (Options) Validate

func (o Options) Validate(settings *config.Settings) error

Validate the custom parameters passed in via the "-c <JSON string or file>" flag that do not require checks against specific plan information.

type RDSDatabaseUtils

type RDSDatabaseUtils struct {
}

func (*RDSDatabaseUtils) FormatDBName

func (u *RDSDatabaseUtils) FormatDBName(dbType string, database string) string

type RDSInstance

type RDSInstance struct {
	base.Instance

	Database string `sql:"size(255)"`
	Username string `sql:"size(255)"`
	Password string `sql:"size(255)"`
	Salt     string `sql:"size(255)"`

	ClearPassword string `sql:"-"`

	Tags                  map[string]string `sql:"-"`
	BackupRetentionPeriod int64             `sql:"size(255)"`
	DbSubnetGroup         string            `sql:"-"`
	AllocatedStorage      int64             `sql:"size(255)"`
	SecGroup              string            `sql:"-"`
	EnableFunctions       bool              `sql:"-"`
	PubliclyAccessible    bool              `sql:"-"`

	Adapter string `sql:"size(255)"`

	DbType       string `sql:"size(255)"`
	DbVersion    string `sql:"size(255)"`
	LicenseModel string `sql:"size(255)"`

	BinaryLogFormat      string `sql:"size(255)"`
	EnablePgCron         *bool  `sql:"size(255)"`
	ParameterGroupFamily string `sql:"-"`
	ParameterGroupName   string `sql:"size(255)"`

	StorageType string `sql:"size(255)"`
	// contains filtered or unexported fields
}

RDSInstance represents the information of a RDS Service instance.

func NewRDSInstance

func NewRDSInstance() *RDSInstance

func (*RDSInstance) FormatDBName

func (i *RDSInstance) FormatDBName() string

Jump to

Keyboard shortcuts

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