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 represents Options that can be passed to the SnapshotManager
func WithRetention ¶
WithRetention set the retention duration
func WithSnapshotSuffix ¶
WithSnapshotSuffix sets the suffix of the automated snapshots
type SnapshotManager ¶
type SnapshotManager struct {
// contains filtered or unexported fields
}
SnapshotManager manages the snapshots of a single lightsail instance
func NewSnapshotManager ¶
func NewSnapshotManager(client *lightsail.Lightsail, instance string, opts ...Opt) *SnapshotManager
NewSnapshotManager creates a new SnapshotManager for an instance given an lightsail client and a set of Opts
Click to show internal directories.
Click to hide internal directories.