Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(*SnapshotManager)
Opt is the type for Options of the SnapshotManager
func WithDeleteAfterTag ¶
WithDeleteAfterTag sets the tag key to be used for indication the deletion date
func WithRetentionTag ¶
WithRetentionTag sets the retention tag key
func WithSnapshotSuffix ¶
WithSnapshotSuffix sets the automated snapshot suffix
type RestoreManager ¶
type RestoreManager struct {
// contains filtered or unexported fields
}
RestoreManager manages a restore operation from an EBS snapshot
func NewRestoreManager ¶
func NewRestoreManager(client *awsec2.EC2, snapshotID, az string, opts ...RestoreOption) *RestoreManager
NewRestoreManager creates a new RestoreManager with the given settings
type RestoreOption ¶
type RestoreOption func(*RestoreManager)
RestoreOption is an option passed to the RestoreManager
func RestoreWithEncrypted ¶
func RestoreWithEncrypted(enc bool) RestoreOption
RestoreWithEncrypted sets whether the volume should be encrypted
func RestoreWithIOPS ¶
func RestoreWithIOPS(v int64) RestoreOption
RestoreWithIOPS sets the IOPS to be provisioned for the EBS volume
func RestoreWithKMSKeyID ¶
func RestoreWithKMSKeyID(id string) RestoreOption
RestoreWithKMSKeyID sets the id of KMS key to be used
func RestoreWithSize ¶
func RestoreWithSize(v int64) RestoreOption
RestoreWithSize sets the size of the volume being restored
func RestoreWithType ¶
func RestoreWithType(t string) RestoreOption
RestoreWithType sets the type of the volume
type SnapshotManager ¶
type SnapshotManager struct {
// contains filtered or unexported fields
}
SnapshotManager manages the snapshot creation and pruning of EC2 EBS-based snapshots
func NewSnapshotManager ¶
func NewSnapshotManager(client *awsec2.EC2, datastore datastore.Datastore, opts ...Opt) *SnapshotManager
NewSnapshotManager creates a new SnapshotManager given an EC2 client and a set of Opts