fs

package
v0.0.0-...-bb15e6e Latest Latest
Warning

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

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

Documentation

Overview

Package fs implements a FUSE filesystem for Perkeep and is used by the pk-mount binary.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Logger is used by the package to print all sorts of debugging statements. It
	// is up to the user of the package to SetOutput the Logger to reduce verbosity.
	Logger = log.New(os.Stderr, "PerkeepFS: ", log.LstdFlags)
)
View Source
var TrackStats bool

TrackStats controls whether statistics are kept on operations.

Functions

func Unmount

func Unmount(point string) error

Unmount attempts to unmount the provided FUSE mount point, forcibly if necessary.

Types

type CamliFileSystem

type CamliFileSystem struct {

	// IgnoreOwners, if true, collapses all file ownership to the
	// uid/gid running the fuse filesystem, and sets all the
	// permissions to 0600/0700.
	IgnoreOwners bool
	// contains filtered or unexported fields
}

func NewDefaultCamliFileSystem

func NewDefaultCamliFileSystem(client *client.Client, fetcher blob.Fetcher) *CamliFileSystem

NewDefaultCamliFileSystem returns a filesystem with a generic base, from which users can navigate by blobref, tag, date, etc.

func NewRootedCamliFileSystem

func NewRootedCamliFileSystem(cli *client.Client, fetcher blob.Fetcher, root blob.Ref) (*CamliFileSystem, error)

NewRootedCamliFileSystem returns a CamliFileSystem with a node based on a blobref as its base.

func (*CamliFileSystem) Root

func (fs *CamliFileSystem) Root() (fusefs.Node, error)

func (*CamliFileSystem) Statfs

Jump to

Keyboard shortcuts

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