Documentation ¶
Index ¶
- Constants
- func Delete(rdssessiontarget rdsiface.RDSAPI, snaps []*rds.DBSnapshot) (int, error)
- func Describe(rdssession rdsiface.RDSAPI, snap string) (*rds.DBSnapshot, error)
- func GetLatest(all []*rds.DBSnapshot) (*rds.DBSnapshot, error)
- func GetSlice(all []*rds.DBSnapshot, start, num int) ([]*rds.DBSnapshot, error)
- func List(rdssession rdsiface.RDSAPI, rdshost string) ([]*rds.DBSnapshot, error)
- func ListExpired(cfg *wiring.Config, rdssessiontarget rdsiface.RDSAPI, instance *rds.DBInstance) ([]*rds.DBSnapshot, error)
- func PullEncryptedSnapShot(cfg *wiring.Config, rdssessionsource rdsiface.RDSAPI, ...) (*rds.CopyDBSnapshotOutput, error)
- func PullSnapShot(cfg *wiring.Config, rdssession rdsiface.RDSAPI, arn *string, ...) (*rds.CopyDBSnapshotOutput, error)
Constants ¶
View Source
const AntiRateLimit = (10 * time.Millisecond)
AntiRateLimit will be slept in key places, to preclude AWS API rate-limiting.
Variables ¶
This section is empty.
Functions ¶
func GetLatest ¶
func GetLatest(all []*rds.DBSnapshot) (*rds.DBSnapshot, error)
GetLatest returns the most recent snapshot for a rds
func GetSlice ¶
func GetSlice(all []*rds.DBSnapshot, start, num int) ([]*rds.DBSnapshot, error)
GetSlice returns a "slice" of a list of snapshots, ordered by date. TODO: Yuck the following sucks and needs cleanup!
func ListExpired ¶
func ListExpired(cfg *wiring.Config, rdssessiontarget rdsiface.RDSAPI, instance *rds.DBInstance) ([]*rds.DBSnapshot, error)
ListExpired lists the snapshots for an rds, that are considered expired.
func PullEncryptedSnapShot ¶
func PullEncryptedSnapShot(cfg *wiring.Config, rdssessionsource rdsiface.RDSAPI, rdssessiontarget rdsiface.RDSAPI, arn *string, targetsnapshotname string) (*rds.CopyDBSnapshotOutput, error)
PullEncryptedSnapShot pulls an encrypted AWS rds snapshot from a remote region. It is not blocking.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.