rdsutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplyMethodImmediate     = "immediate"
	ApplyMethodPendingReboot = "pending-reboot"
)
View Source
const (
	DBPGFAuroraMySQL57 = "aurora-mysql5.7"
	DBPGFMySQL80       = "mysql8.0"
)

Variables

View Source
var ErrPagesGT1000 = errors.New("more than 1000 pages returned")
View Source
var ErrParameterNotFound = errors.New("parameter not found")

Functions

func NewRDSClient

func NewRDSClient(cm *config.AWSConfigMore) (*rds.RDS, error)

Types

type ParameterGroupService

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

func (*ParameterGroupService) CreateDBClusterParameterGroup

func (svc *ParameterGroupService) CreateDBClusterParameterGroup(
	dbClusterParameterGroupName string,
	dbParameterGroupFamily string,
	description string,
	opts *rds.CreateDBClusterParameterGroupInput) (*rds.CreateDBClusterParameterGroupOutput, error)

func (*ParameterGroupService) DescribeDBParameterGroup

func (svc *ParameterGroupService) DescribeDBParameterGroup(dbParameterGroupName string, opts *rds.DescribeDBParametersInput) (Parameters, error)

DescribeDBParameterGroup returnsthe parameters for a parameter group. The corresponding AWS SDk Method is `DescribeDBParameters()`.

func (*ParameterGroupService) DescribeEngineDefaultParameters

func (svc *ParameterGroupService) DescribeEngineDefaultParameters(dbParameterGroupFamily string, opts *rds.DescribeEngineDefaultParametersInput) (Parameters, error)

DescribeEngineDefaultParameters is a wrapper for https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#RDS.DescribeEngineDefaultParameters

func (*ParameterGroupService) ModifyDBParameterGroup

func (svc *ParameterGroupService) ModifyDBParameterGroup(dbParameterGroupName string, params map[string]string) (*rds.DBParameterGroupNameMessage, error)

ModifyDBParameterGroup is a wrapper for https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#RDS.ModifyDBParameterGroup .

type Parameters

type Parameters []rds.Parameter

func MapToParameters

func MapToParameters(m map[string]string) Parameters

func (Parameters) Map

func (p Parameters) Map() map[string]string

func (Parameters) Names

func (p Parameters) Names() []string

func (Parameters) Table

func (p Parameters) Table() table.Table

func (Parameters) ToPointers

func (p Parameters) ToPointers() []*rds.Parameter

type ParametersSet

type ParametersSet struct {
	Data map[string]rds.Parameter
}

func NewParametersSet

func NewParametersSet() ParametersSet

func (*ParametersSet) AddParameters

func (ps *ParametersSet) AddParameters(p ...rds.Parameter)

func (*ParametersSet) GetValue

func (ps *ParametersSet) GetValue(key string) (string, error)

func (*ParametersSet) Map

func (ps *ParametersSet) Map() map[string]string

func (*ParametersSet) ModifyMapToPointerSlice

func (ps *ParametersSet) ModifyMapToPointerSlice(m map[string]string) ([]*rds.Parameter, error)

ModifyMapToPointerSlice converts a `map[string]string` to a `[]*rds.Parameter` adding the current ApplyType.` This is used in `ModifyDBParameterGroup()`.

func (*ParametersSet) Names

func (ps *ParametersSet) Names() []string

type RDSClientMore

type RDSClientMore struct {
	Parameter *ParameterGroupService
	// contains filtered or unexported fields
}

func NewRDSClientMore

func NewRDSClientMore(cm *config.AWSConfigMore) (*RDSClientMore, error)

Jump to

Keyboard shortcuts

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