rdsutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

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

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(cfg *config.AWSConfig) (*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) DescribeDBParameterGroupSets added in v0.2.1

func (svc *ParameterGroupService) DescribeDBParameterGroupSets(dbParameterGroupNames []string, opts *rds.DescribeDBParametersInput) (*ParametersSets, error)

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 ParametersResponse added in v0.2.1

type ParametersResponse struct {
	Parameters Parameters
}

ParametersResponse represents the response from the AWS CLI utility for reading database parameter groups.

func ParametersResponseReadBytes added in v0.2.1

func ParametersResponseReadBytes(b []byte) (ParametersResponse, error)

func ParametersResponseReadFile added in v0.2.1

func ParametersResponseReadFile(name string) (ParametersResponse, error)

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 ParametersSets added in v0.2.1

type ParametersSets struct {
	Data map[string]ParametersSet // paramSetName
}

func NewParametersSets added in v0.2.1

func NewParametersSets() *ParametersSets

func (*ParametersSets) GetParamNameValues added in v0.2.1

func (pss *ParametersSets) GetParamNameValues(paramName string) map[string]*string

GetParamNameValues returns the values for a particular param name where the keys are the ParameterSet keys and the value is the value of the param. If the param is not present, a `nil` is returned in the map.

func (*ParametersSets) Names added in v0.2.1

func (pss *ParametersSets) Names() []string

type RDSClientMore

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

func NewRDSClientMore

func NewRDSClientMore(cfg *config.AWSConfig) (*RDSClientMore, error)

Jump to

Keyboard shortcuts

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