blockfile

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSnapshotter

func NewSnapshotter(root string, opts ...Opt) (snapshots.Snapshotter, error)

NewSnapshotter returns a Snapshotter which copies layers on the underlying file system. A metadata file is stored under the root.

Types

type Opt

type Opt func(string, *SnapshotterConfig)

Opt is an option to configure the overlay snapshotter

func WithFSType

func WithFSType(fsType string) Opt

WithFSType defines the filesystem type to apply to mounts of the blockfile

func WithMountOptions

func WithMountOptions(options []string) Opt

WithMountOptions defines the mount options used for the mount

func WithRecreateScratch

func WithRecreateScratch(recreate bool) Opt

WithRecreateScratch is used to determine that scratch should be recreated even if already exists.

func WithScratchFile

func WithScratchFile(src string) Opt

WithScratchFile provides a scratch file which will get copied on startup if the scratch file needs to be generated.

type SnapshotterConfig

type SnapshotterConfig struct {
	// contains filtered or unexported fields
}

SnapshotterConfig holds the configurable properties for the blockfile snapshotter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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