package blockfile
import "github.com/containerd/containerd/snapshots/blockfile"
Index ¶
- func NewSnapshotter(root string, opts ...Opt) (snapshots.Snapshotter, error)
- type Opt
- func WithFSType(fsType string) Opt
- func WithMountOptions(options []string) Opt
- func WithRecreateScratch(recreate bool) Opt
- func WithScratchFile(src string) Opt
- type SnapshotterConfig
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 ¶
WithFSType defines the filesystem type to apply to mounts of the blockfile
func WithMountOptions ¶
WithMountOptions defines the mount options used for the mount
func WithRecreateScratch ¶
WithRecreateScratch is used to determine that scratch should be recreated even if already exists.
func WithScratchFile ¶
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
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
snapshots/blockfile/plugin |
- Version
- v1.7.8
- Published
- Oct 26, 2023
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 47 minutes ago –
Tools for package owners.