fsmount

package
v3.2.128 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filescomfs

type Filescomfs struct {
	fuse.FileSystemBase
	// contains filtered or unexported fields
}

func (*Filescomfs) Getattr

func (self *Filescomfs) Getattr(path string, stat *fuse.Stat_t, fh uint64) (errc int)

func (*Filescomfs) Init

func (self *Filescomfs) Init()

func (*Filescomfs) Mkdir

func (self *Filescomfs) Mkdir(path string, mode uint32) (errc int)

func (*Filescomfs) Mknod

func (self *Filescomfs) Mknod(path string, mode uint32, dev uint64) (errc int)

func (*Filescomfs) Open

func (self *Filescomfs) Open(path string, flags int) (errc int, fh uint64)

func (*Filescomfs) Opendir

func (self *Filescomfs) Opendir(path string) (errc int, fh uint64)

func (*Filescomfs) Read

func (self *Filescomfs) Read(path string, buff []byte, ofst int64, fh uint64) (n int)

func (*Filescomfs) Readdir

func (self *Filescomfs) Readdir(path string,
	fill func(name string, stat *fuse.Stat_t, ofst int64) bool,
	ofst int64,
	fh uint64) (errc int)

func (*Filescomfs) Release

func (self *Filescomfs) Release(path string, fh uint64) (errc int)

func (*Filescomfs) Releasedir

func (self *Filescomfs) Releasedir(path string, fh uint64) (errc int)

func (*Filescomfs) Rename

func (self *Filescomfs) Rename(oldpath string, newpath string) (errc int)

func (*Filescomfs) Rmdir

func (self *Filescomfs) Rmdir(path string) (errc int)

func (*Filescomfs) Statfs

func (self *Filescomfs) Statfs(path string, stat *fuse.Statfs_t) (errc int)

func (*Filescomfs) Truncate

func (self *Filescomfs) Truncate(path string, size int64, fh uint64) (errc int)

TODO: this is needed in order to support file overwrites, but do we need to actually truncate to the given size?

func (self *Filescomfs) Unlink(path string) (errc int)

func (*Filescomfs) Utimens

func (self *Filescomfs) Utimens(path string, tmsp []fuse.Timespec) (errc int)

func (*Filescomfs) Write

func (self *Filescomfs) Write(path string, buff []byte, ofst int64, fh uint64) (n int)

type MountHost

type MountHost interface {
	Unmount() bool
}

func Mount

func Mount(params MountParams) (MountHost, error)

type MountParams

type MountParams struct {
	MountPoint string
	VolumeName string
	Root       string
	Config     files_sdk.Config
}

Jump to

Keyboard shortcuts

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