cli

package module
v0.0.0-...-c299419 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

type CLI struct {
	state.Manager
	presenter.Presenter

	FamiliesConfig *families.Config
}

func (*CLI) FamilyFinished

func (c *CLI) FamilyFinished(ctx context.Context, res families.FamilyResult) error

func (*CLI) FamilyStarted

func (c *CLI) FamilyStarted(ctx context.Context, famType types.FamilyType) error

func (*CLI) MountVolumes

func (c *CLI) MountVolumes(ctx context.Context) ([]string, error)

func (*CLI) WatchForAbort

func (c *CLI) WatchForAbort(ctx context.Context, cancel context.CancelFunc, interval time.Duration)

WatchForAbort is responsible for watching for abort events triggered and invoking the provided cancel function to mark the ctx context cancelled.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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