snapops

package
v0.0.0-...-c0ba84e Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 Delete

func Delete(rdssessiontarget rdsiface.RDSAPI, snaps []*rds.DBSnapshot) (int, error)

Delete will delete a list of snapshots.

func Describe

func Describe(rdssession rdsiface.RDSAPI, snap string) (*rds.DBSnapshot, error)

Describe will describe a snapshot

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 List

func List(rdssession rdsiface.RDSAPI, rdshost string) ([]*rds.DBSnapshot, error)

List will list all the snapshots for a given rds

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.

func PullSnapShot

func PullSnapShot(cfg *wiring.Config, rdssession rdsiface.RDSAPI, arn *string, targetsnapshotname string) (*rds.CopyDBSnapshotOutput, error)

PullSnapShot pull a copy of an AWS rds snapshot from a remote region. It is not blocking.

Types

This section is empty.

Jump to

Keyboard shortcuts

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