sshfs

package
v0.0.0-...-602beae Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListDirStream

func NewListDirStream(list []fuse.DirEntry) fs.DirStream

NewListDirStream wraps a slice of DirEntry as a DirStream.

Types

type SFNode

type SFNode struct {
	fs.Inode
	// contains filtered or unexported fields
}

func NewSFNode

func NewSFNode(sftp *sftp.Client, root string) *SFNode

func (*SFNode) Access

func (sn *SFNode) Access(ctx context.Context, mask uint32) syscall.Errno

func (*SFNode) Create

func (sn *SFNode) Create(ctx context.Context, name string, flags uint32, mode uint32, out *fuse.EntryOut) (node *fs.Inode, fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)

func (*SFNode) Fsync

func (sn *SFNode) Fsync(ctx context.Context, f fs.FileHandle, flags uint32) syscall.Errno

func (*SFNode) Getattr

func (sn *SFNode) Getattr(ctx context.Context, f fs.FileHandle, out *fuse.AttrOut) syscall.Errno

func (*SFNode) LocalPath

func (sn *SFNode) LocalPath() string

func (*SFNode) Lookup

func (sn *SFNode) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)

func (*SFNode) Mkdir

func (sn *SFNode) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)

func (*SFNode) Name

func (sn *SFNode) Name() string

func (*SFNode) Open

func (sn *SFNode) Open(ctx context.Context, flags uint32) (fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)

func (*SFNode) Opendir

func (sn *SFNode) Opendir(ctx context.Context) syscall.Errno

func (*SFNode) Read

func (sn *SFNode) Read(ctx context.Context, f fs.FileHandle, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)

func (*SFNode) Readdir

func (sn *SFNode) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno)

ReadDirAll returns a list of sshfs

func (*SFNode) Release

func (sn *SFNode) Release(ctx context.Context, f fs.FileHandle) syscall.Errno

func (*SFNode) RemotePath

func (sn *SFNode) RemotePath() string

func (*SFNode) Rename

func (sn *SFNode) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, flags uint32) syscall.Errno

func (*SFNode) Rmdir

func (sn *SFNode) Rmdir(ctx context.Context, name string) syscall.Errno

func (*SFNode) Setattr

func (sn *SFNode) Setattr(ctx context.Context, f fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) syscall.Errno
func (sn *SFNode) Unlink(ctx context.Context, name string) syscall.Errno

func (*SFNode) Write

func (sn *SFNode) Write(ctx context.Context, f fs.FileHandle, data []byte, off int64) (written uint32, errno syscall.Errno)

type Sshfs

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

func NewSshfs

func NewSshfs(sftp *sftp.Client, root, mountPoint, name string) *Sshfs

func (*Sshfs) Mount

func (sshfs *Sshfs) Mount(opts *fs.Options) error

func (*Sshfs) Unmount

func (sshfs *Sshfs) Unmount() error

Jump to

Keyboard shortcuts

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