Documentation ¶
Index ¶
- type Args
- type Btrfs
- func (d *Btrfs) CreateSubvolume(subvolumeDir string) (string, error)
- func (d *Btrfs) Prepare(config config.Config) error
- func (d *Btrfs) SendSubvolume(subvolume string) error
- func (d *Btrfs) Snapshot(config config.Config, srcSnapshot string) (string, error)
- func (d *Btrfs) Subvolumes(config config.Config) ([]string, error)
- type BtrfsRPC
- type Driver
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { // Prepares configuration and sets variables Prepare(interface{}) error // Return slice of subvolumes part of this filesystem // Returns results of `btrfs subvolume list <Subvolume()>` Subvolumes(interface{}) ([]string, error) // Create a new filesystem snapshot, will always // store the snapshot under <Subvolume>/<SnapshotsDirectory> // returns snapshot location under success, error if not Snapshot(interface{}, string) (string, error) // Function to create a subbvolume of the specified directory // Assumes that the directory doesn't already exists and does // No error checking, the caller should do this. CreateSubvolume(string) (string, error) }
Driver interface, designed to enable addition of new storage drivers in the future
Click to show internal directories.
Click to hide internal directories.