storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtrfsDriver

type BtrfsDriver struct {
	BasePath string
}

func NewBtrfsDriver

func NewBtrfsDriver(basePath string) *BtrfsDriver

func (*BtrfsDriver) Clone

func (d *BtrfsDriver) Clone(snapshotID string, newBranchID string) (string, error)

func (*BtrfsDriver) CreateSnapshot

func (d *BtrfsDriver) CreateSnapshot(sourceID string) (string, error)

func (*BtrfsDriver) Destroy

func (d *BtrfsDriver) Destroy(id string) error

func (*BtrfsDriver) Init

func (d *BtrfsDriver) Init() error

type Driver

type Driver interface {
	Init() error

	CreateSnapshot(sourceID string) (string, error)

	Clone(snapshotID string, newBranchID string) (string, error)

	Destroy(id string) error
}

Jump to

Keyboard shortcuts

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