Documentation ¶
Index ¶
- Constants
- Variables
- func NewRDSClient(cfg *config.AWSConfig) (*rds.RDS, error)
- type ParameterGroupService
- func (svc *ParameterGroupService) CreateDBClusterParameterGroup(dbClusterParameterGroupName string, dbParameterGroupFamily string, ...) (*rds.CreateDBClusterParameterGroupOutput, error)
- func (svc *ParameterGroupService) DescribeDBParameterGroup(dbParameterGroupName string, opts *rds.DescribeDBParametersInput) (Parameters, error)
- func (svc *ParameterGroupService) DescribeDBParameterGroupSets(dbParameterGroupNames []string, opts *rds.DescribeDBParametersInput) (*ParametersSets, error)
- func (svc *ParameterGroupService) DescribeEngineDefaultParameters(dbParameterGroupFamily string, opts *rds.DescribeEngineDefaultParametersInput) (Parameters, error)
- func (svc *ParameterGroupService) ModifyDBParameterGroup(dbParameterGroupName string, params map[string]string) (*rds.DBParameterGroupNameMessage, error)
- type Parameters
- type ParametersResponse
- type ParametersSet
- func (ps *ParametersSet) AddParameters(p ...rds.Parameter)
- func (ps *ParametersSet) GetValue(key string) (string, error)
- func (ps *ParametersSet) Map() map[string]string
- func (ps *ParametersSet) ModifyMapToPointerSlice(m map[string]string) ([]*rds.Parameter, error)
- func (ps *ParametersSet) Names() []string
- type ParametersSets
- type RDSClientMore
Constants ¶
const ( ApplyMethodImmediate = "immediate" ApplyMethodPendingReboot = "pending-reboot" )
const ( DBPGFAuroraMySQL57 = "aurora-mysql5.7" DBPGFMySQL80 = "mysql8.0" DBPGFMySQL57 = "mysql5.7" )
Variables ¶
var ErrPagesGT1000 = errors.New("more than 1000 pages returned")
var ErrParameterNotFound = errors.New("parameter not found")
Functions ¶
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 ¶
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 ¶
func NewParametersSet ¶
func NewParametersSet() ParametersSet
func (*ParametersSet) AddParameters ¶
func (ps *ParametersSet) AddParameters(p ...rds.Parameter)
func (*ParametersSet) Map ¶
func (ps *ParametersSet) Map() map[string]string
func (*ParametersSet) ModifyMapToPointerSlice ¶
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)