mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
29 lines
778 B
Go
29 lines
778 B
Go
// Package mount manages creating operating system mount points for directory snapshots.
|
|
package mount
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kopia/kopia/repo/logging"
|
|
)
|
|
|
|
var log = logging.Module("mount")
|
|
|
|
// Controller allows controlling mounts.
|
|
type Controller interface {
|
|
Unmount(ctx context.Context) error
|
|
MountPath() string
|
|
Done() <-chan struct{}
|
|
}
|
|
|
|
// Options cary set of flags passed to the mount layer.
|
|
type Options struct {
|
|
// AllowOther allows other users to access the file system. Supported on FUSE"
|
|
FuseAllowOther bool
|
|
// Allows the mounting over a non-empty directory. The files in it will be shadowed by the freshly created mount.
|
|
// Supported only on Fuse.
|
|
FuseAllowNonEmptyMount bool
|
|
// Use WebDAV even on platforms that support FUSE.
|
|
PreferWebDAV bool
|
|
}
|