fuse

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFuseDriveName = "Space"

Functions

This section is empty.

Types

type Controller

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

Controller is the space domain controller for managing the libfuse VFS. It is used by the grpc server and app/daemon generally

func NewController

func NewController(
	ctx context.Context,
	cfg config.Config,
	store store.Store,
	sfs *spacefs.SpaceFS,
) *Controller

func (*Controller) IsMounted

func (s *Controller) IsMounted() bool

func (*Controller) Mount

func (s *Controller) Mount() error

Mount mounts the vfs drive and immediately serves the handler. It starts the Fuse Server in the background

func (*Controller) ShouldMount

func (s *Controller) ShouldMount() bool

ShouldMount check the store and config to determine if the libfuse drive was previously mounted

func (*Controller) Shutdown

func (s *Controller) Shutdown() error

func (*Controller) Unmount

func (s *Controller) Unmount() error

Jump to

Keyboard shortcuts

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