Documentation ¶
Index ¶
- Constants
- Variables
- func BuilRDSTags(tags map[string]string) []*rds.Tag
- func GetDBAddress(endpoint *rds.Endpoint) (dbAddress string)
- func GetDBPort(endpoint *rds.Endpoint) int64
- func HandleAWSError(err error, logger lager.Logger) error
- func ListTagsForResource(resourceARN string, rdssvc *rds.RDS, logger lager.Logger) ([]*rds.Tag, error)
- func RDSTagsValues(rdsTags []*rds.Tag) map[string]string
- func RemoveTagsFromResource(resourceARN string, tagKeys []*string, rdssvc *rds.RDS, logger lager.Logger) error
- type ByCreateTime
- type DescribeOption
- type RDSDBInstance
- func (r *RDSDBInstance) AddTagsToResource(resourceARN string, tags []*rds.Tag) error
- func (r *RDSDBInstance) Create(createDBInstanceInput *rds.CreateDBInstanceInput) error
- func (r *RDSDBInstance) CreateParameterGroup(input *rds.CreateDBParameterGroupInput) error
- func (r *RDSDBInstance) Delete(ID string, skipFinalSnapshot bool) error
- func (r *RDSDBInstance) DeleteSnapshots(brokerName string, keepForDays int) error
- func (r *RDSDBInstance) Describe(ID string) (*rds.DBInstance, error)
- func (r *RDSDBInstance) DescribeByTag(tagKey, tagValue string, opts ...DescribeOption) ([]*rds.DBInstance, error)
- func (r *RDSDBInstance) DescribeSnapshots(DBInstanceID string) ([]*rds.DBSnapshot, error)
- func (r *RDSDBInstance) GetParameterGroup(groupId string) (*rds.DBParameterGroup, error)
- func (r *RDSDBInstance) GetResourceTags(resourceArn string, opts ...DescribeOption) ([]*rds.Tag, error)
- func (r *RDSDBInstance) GetTag(ID, tagKey string) (string, error)
- func (r *RDSDBInstance) Modify(modifyDBInstanceInput *rds.ModifyDBInstanceInput) (*rds.DBInstance, error)
- func (r *RDSDBInstance) ModifyParameterGroup(input *rds.ModifyDBParameterGroupInput) error
- func (r *RDSDBInstance) Reboot(rebootDBInstanceInput *rds.RebootDBInstanceInput) error
- func (r *RDSDBInstance) RemoveTag(ID, tagKey string) error
- func (r *RDSDBInstance) Restore(restoreDBInstanceInput *rds.RestoreDBInstanceFromDBSnapshotInput) error
- type RDSInstance
Constants ¶
View Source
const ( TagServiceID = "Service ID" TagPlanID = "Plan ID" TagOrganizationID = "Organization ID" TagSpaceID = "Space ID" TagSkipFinalSnapshot = "SkipFinalSnapshot" TagRestoredFromSnapshot = "Restored From Snapshot" TagBrokerName = "Broker Name" TagExtensions = "Extensions" )
Variables ¶
View Source
var (
ErrDBInstanceDoesNotExist = errors.New("rds db instance does not exist")
)
Functions ¶
func GetDBAddress ¶ added in v0.24.0
func ListTagsForResource ¶
Types ¶
type ByCreateTime ¶
type ByCreateTime []*rds.DBSnapshot
func (ByCreateTime) Len ¶
func (ct ByCreateTime) Len() int
func (ByCreateTime) Less ¶
func (ct ByCreateTime) Less(i, j int) bool
func (ByCreateTime) Swap ¶
func (ct ByCreateTime) Swap(i, j int)
type DescribeOption ¶ added in v0.22.0
type DescribeOption string
const ( // Should Describe* ops invalidate and refresh the cache DescribeRefreshCacheOption DescribeOption = "refreshCache" )
type RDSDBInstance ¶
type RDSDBInstance struct {
// contains filtered or unexported fields
}
func NewRDSDBInstance ¶
func (*RDSDBInstance) AddTagsToResource ¶ added in v0.24.0
func (r *RDSDBInstance) AddTagsToResource(resourceARN string, tags []*rds.Tag) error
func (*RDSDBInstance) Create ¶
func (r *RDSDBInstance) Create(createDBInstanceInput *rds.CreateDBInstanceInput) error
func (*RDSDBInstance) CreateParameterGroup ¶ added in v0.27.0
func (r *RDSDBInstance) CreateParameterGroup(input *rds.CreateDBParameterGroupInput) error
func (*RDSDBInstance) Delete ¶
func (r *RDSDBInstance) Delete(ID string, skipFinalSnapshot bool) error
func (*RDSDBInstance) DeleteSnapshots ¶ added in v0.9.0
func (r *RDSDBInstance) DeleteSnapshots(brokerName string, keepForDays int) error
func (*RDSDBInstance) Describe ¶
func (r *RDSDBInstance) Describe(ID string) (*rds.DBInstance, error)
func (*RDSDBInstance) DescribeByTag ¶
func (r *RDSDBInstance) DescribeByTag(tagKey, tagValue string, opts ...DescribeOption) ([]*rds.DBInstance, error)
func (*RDSDBInstance) DescribeSnapshots ¶
func (r *RDSDBInstance) DescribeSnapshots(DBInstanceID string) ([]*rds.DBSnapshot, error)
func (*RDSDBInstance) GetParameterGroup ¶ added in v0.27.0
func (r *RDSDBInstance) GetParameterGroup(groupId string) (*rds.DBParameterGroup, error)
func (*RDSDBInstance) GetResourceTags ¶ added in v0.24.0
func (r *RDSDBInstance) GetResourceTags(resourceArn string, opts ...DescribeOption) ([]*rds.Tag, error)
func (*RDSDBInstance) Modify ¶
func (r *RDSDBInstance) Modify(modifyDBInstanceInput *rds.ModifyDBInstanceInput) (*rds.DBInstance, error)
func (*RDSDBInstance) ModifyParameterGroup ¶ added in v0.27.0
func (r *RDSDBInstance) ModifyParameterGroup(input *rds.ModifyDBParameterGroupInput) error
func (*RDSDBInstance) Reboot ¶
func (r *RDSDBInstance) Reboot(rebootDBInstanceInput *rds.RebootDBInstanceInput) error
func (*RDSDBInstance) RemoveTag ¶
func (r *RDSDBInstance) RemoveTag(ID, tagKey string) error
func (*RDSDBInstance) Restore ¶
func (r *RDSDBInstance) Restore(restoreDBInstanceInput *rds.RestoreDBInstanceFromDBSnapshotInput) error
type RDSInstance ¶ added in v0.24.0
type RDSInstance interface { Describe(ID string) (*rds.DBInstance, error) GetResourceTags(resourceArn string, opts ...DescribeOption) ([]*rds.Tag, error) DescribeByTag(TagName, TagValue string, opts ...DescribeOption) ([]*rds.DBInstance, error) DescribeSnapshots(DBInstanceID string) ([]*rds.DBSnapshot, error) DeleteSnapshots(brokerName string, keepForDays int) error Create(createDBInstanceInput *rds.CreateDBInstanceInput) error Restore(restoreRBInstanceInput *rds.RestoreDBInstanceFromDBSnapshotInput) error Modify(modifyDBInstanceInput *rds.ModifyDBInstanceInput) (*rds.DBInstance, error) AddTagsToResource(resourceArn string, tags []*rds.Tag) error Reboot(rebootDBInstanceInput *rds.RebootDBInstanceInput) error RemoveTag(ID, tagKey string) error Delete(ID string, skipFinalSnapshot bool) error GetTag(ID, tagKey string) (string, error) GetParameterGroup(groupId string) (*rds.DBParameterGroup, error) CreateParameterGroup(input *rds.CreateDBParameterGroupInput) error ModifyParameterGroup(input *rds.ModifyDBParameterGroupInput) error }
Click to show internal directories.
Click to hide internal directories.