Documentation ¶
Index ¶
- Constants
- Variables
- type CLI
- func (c *CLI) FamilyFinished(ctx context.Context, res families.FamilyResult) error
- func (c *CLI) FamilyStarted(ctx context.Context, famType types.FamilyType) error
- func (c *CLI) MountVolumes(ctx context.Context) ([]string, error)
- func (c *CLI) WatchForAbort(ctx context.Context, cancel context.CancelFunc, interval time.Duration)
Constants ¶
View Source
const ( MountPointTemplate = "/mnt/snapshots/%s" MountPointDirPerm = 0o770 )
Variables ¶
View Source
var DefaultMountOptions = []string{
"noatime",
"noauto",
"noexec",
"norelatime",
"nosuid",
"ro",
}
DefaultMountOptions is a set of filesystem independent mount options.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
func (*CLI) FamilyFinished ¶
func (*CLI) FamilyStarted ¶
func (*CLI) WatchForAbort ¶
WatchForAbort is responsible for watching for abort events triggered and invoking the provided cancel function to mark the ctx context cancelled.
Click to show internal directories.
Click to hide internal directories.