rds

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient interface {
	GetRegion() ptypes.AwsRegion
	GetAccountID() ptypes.AwsAccountID
	RDS() *rds.Client
}

type DbEngineName

type DbEngineName string

type DbInstance

type DbInstance struct {
	service.AbstractResource
	types.DBInstance
}

func NewDbInstance

func NewDbInstance(client AwsClient, db types.DBInstance) DbInstance

func (DbInstance) GetEngine

func (e DbInstance) GetEngine() string

func (DbInstance) GetEngineVersion

func (e DbInstance) GetEngineVersion() string

func (DbInstance) GetName

func (e DbInstance) GetName() string

func (DbInstance) GetTagValue

func (e DbInstance) GetTagValue(tag string) string

func (DbInstance) GetTags

func (e DbInstance) GetTags() map[string]string

type DbInstanceList

type DbInstanceList struct {
	Items []DbInstance
}

type DbSnapshot

type DbSnapshot struct {
	service.AbstractResource
	types.DBSnapshot
}

func NewDbSnapshot

func NewDbSnapshot(client AwsClient, snapshot types.DBSnapshot) DbSnapshot

func (DbSnapshot) GetName

func (e DbSnapshot) GetName() string

func (DbSnapshot) GetTagValue

func (e DbSnapshot) GetTagValue(tag string) string

func (DbSnapshot) GetTags

func (e DbSnapshot) GetTags() map[string]string

type RdsRepository

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

func NewRdsRepository

func NewRdsRepository(ctx context.Context, client AwsClient) *RdsRepository

func (*RdsRepository) FindMinimalDBEngineVersions

func (r *RdsRepository) FindMinimalDBEngineVersions(engine DbEngineName) (types.DBEngineVersion, error)

func (*RdsRepository) GetRegion

func (r *RdsRepository) GetRegion() ptypes.AwsRegion

func (*RdsRepository) ListDBEngineVersionsByInput

func (r *RdsRepository) ListDBEngineVersionsByInput(query *rds.DescribeDBEngineVersionsInput) ([]types.DBEngineVersion, error)

func (*RdsRepository) ListDbInstancesAll

func (r *RdsRepository) ListDbInstancesAll() ([]DbInstance, error)

func (*RdsRepository) ListDbInstancesByInput

func (r *RdsRepository) ListDbInstancesByInput(query *rds.DescribeDBInstancesInput) ([]DbInstance, error)

func (*RdsRepository) ListDbSnapshotsAll

func (r *RdsRepository) ListDbSnapshotsAll() ([]DbSnapshot, error)

func (*RdsRepository) ListDbSnapshotsByInput

func (r *RdsRepository) ListDbSnapshotsByInput(query *rds.DescribeDBSnapshotsInput) ([]DbSnapshot, error)

Jump to

Keyboard shortcuts

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