fs

package
v0.0.0-...-fcd5ff1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2017 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package fs implements a FUSE filesystem for Camlistore and is used by the cammount binary.

Index

Constants

This section is empty.

Variables

View Source
var TrackStats bool

If TrackStats is true, 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