Versions in this module Expand all Collapse all v1 v1.9.0 Jan 10, 2022 Changes in this version + const DefaultErrno + const EEXIST + const EINTR + const EIO + const ENOATTR — darwin/amd64 + const ENODATA — linux/amd64 + const ENOENT + const ENOSYS + const ENOTSUP + const EPERM + const ERANGE + const ESTALE + const EXDEV + const ErrNoXattr + var Debug func(msg interface{}) = nop + var ErrCannotCombineAllowOtherAndAllowRoot = errors.New("cannot combine AllowOther and AllowRoot") + var ErrClosedWithoutInit = errors.New("fuse connection closed without init") + var ErrNotCached = notCachedError + var ErrOSXFUSENotFound = errors.New("cannot locate OSXFUSE") + var OSXFUSELocationV2 = OSXFUSEPaths + var OSXFUSELocationV3 = OSXFUSEPaths + var OSXFUSELocationV4 = OSXFUSEPaths + func AppendDirent(data []byte, dir Dirent) []byte + func Unmount(dir string) error + type AccessRequest struct + Mask uint32 + func (r *AccessRequest) Respond() + func (r *AccessRequest) String() string + type Attr struct + Atime time.Time + BlockSize uint32 + Blocks uint64 + Crtime time.Time + Ctime time.Time + Flags uint32 + Gid uint32 + Inode uint64 + Mode os.FileMode + Mtime time.Time + Nlink uint32 + Rdev uint32 + Size uint64 + Uid uint32 + Valid time.Duration + func (a Attr) String() string + type BatchForgetItem struct + N uint64 + NodeID NodeID + type BatchForgetRequest struct + Forget []BatchForgetItem + func (r *BatchForgetRequest) Respond() + func (r *BatchForgetRequest) String() string + type Conn struct + MountError error + Ready <-chan struct{} + func Mount(dir string, options ...MountOption) (*Conn, error) + func (c *Conn) Close() error + func (c *Conn) InvalidateEntry(parent NodeID, name string) error + func (c *Conn) InvalidateNode(nodeID NodeID, off int64, size int64) error + func (c *Conn) NotifyPollWakeup(wakeup PollWakeup) error + func (c *Conn) NotifyRetrieve(notificationID RequestID, nodeID NodeID, offset uint64, size uint32) (*NotifyRetrieval, error) + func (c *Conn) NotifyStore(nodeID NodeID, offset uint64, data []byte) error + func (c *Conn) Protocol() Protocol + func (c *Conn) ReadRequest() (Request, error) + type CreateRequest struct + Flags OpenFlags + Mode os.FileMode + Name string + Umask os.FileMode + func (r *CreateRequest) Respond(resp *CreateResponse) + func (r *CreateRequest) String() string + type CreateResponse struct + func (r *CreateResponse) String() string + type DestroyRequest struct + func (r *DestroyRequest) Respond() + func (r *DestroyRequest) String() string + type Dirent struct + Inode uint64 + Name string + Type DirentType + type DirentType uint32 + const DT_Block + const DT_Char + const DT_Dir + const DT_FIFO + const DT_File + const DT_Link + const DT_Socket + const DT_Unknown + func (t DirentType) String() string + type Errno syscall.Errno + func ToErrno(err error) Errno + func (e Errno) Errno() Errno + func (e Errno) ErrnoName() string + func (e Errno) Error() string + func (e Errno) MarshalText() ([]byte, error) + func (e Errno) String() string + type ErrorNumber interface + Errno func() Errno + type ExchangeDataRequest struct + NewDir NodeID + NewName string + OldDir NodeID + OldName string + func (r *ExchangeDataRequest) Respond() + func (r *ExchangeDataRequest) String() string + type FileLock struct + End uint64 + PID int32 + Start uint64 + Type LockType + type FlushRequest struct + Flags uint32 + Handle HandleID + LockOwner LockOwner + func (r *FlushRequest) Respond() + func (r *FlushRequest) String() string + type ForgetRequest struct + N uint64 + func (r *ForgetRequest) Respond() + func (r *ForgetRequest) String() string + type FsyncRequest struct + Dir bool + Flags uint32 + Handle HandleID + func (r *FsyncRequest) Respond() + func (r *FsyncRequest) String() string + type GetattrFlags uint32 + const GetattrFh + func (fl GetattrFlags) String() string + type GetattrRequest struct + Flags GetattrFlags + Handle HandleID + func (r *GetattrRequest) Respond(resp *GetattrResponse) + func (r *GetattrRequest) String() string + type GetattrResponse struct + Attr Attr + func (r *GetattrResponse) String() string + type GetxattrRequest struct + Name string + Position uint32 + Size uint32 + func (r *GetxattrRequest) Respond(resp *GetxattrResponse) + func (r *GetxattrRequest) String() string + type GetxattrResponse struct + Xattr []byte + func (r *GetxattrResponse) String() string + type HandleID uint64 + func (h HandleID) String() string + type Header struct + Conn *Conn + Gid uint32 + ID RequestID + Node NodeID + Pid uint32 + Uid uint32 + func (h *Header) Hdr() *Header + func (h *Header) RespondError(err error) + func (h *Header) String() string + type InitFlags uint32 + const InitAsyncDIO + const InitAsyncRead + const InitAtomicTrunc + const InitAutoInvalData + const InitBigWrites + const InitCaseSensitive + const InitDoReaddirplus + const InitDontMask + const InitExportSupport + const InitFileOps + const InitFlockLocks + const InitHasIoctlDir + const InitNoOpenSupport + const InitPOSIXLocks + const InitReaddirplusAuto + const InitSpliceMove + const InitSpliceRead + const InitSpliceWrite + const InitVolRename + const InitWritebackCache + const InitXtimes + func (fl InitFlags) String() string + type InterruptRequest struct + IntrID RequestID + func (r *InterruptRequest) Respond() + func (r *InterruptRequest) String() string + type LinkRequest struct + NewName string + OldNode NodeID + func (r *LinkRequest) Respond(resp *LookupResponse) + func (r *LinkRequest) String() string + type ListxattrRequest struct + Position uint32 + Size uint32 + func (r *ListxattrRequest) Respond(resp *ListxattrResponse) + func (r *ListxattrRequest) String() string + type ListxattrResponse struct + Xattr []byte + func (r *ListxattrResponse) Append(names ...string) + func (r *ListxattrResponse) String() string + type LockFlags uint32 + const LockFlock + func (fl LockFlags) String() string + type LockOwner uint64 + func (o LockOwner) String() string + type LockRequest struct + Handle HandleID + Lock FileLock + LockFlags LockFlags + LockOwner LockOwner + func (r *LockRequest) Respond() + func (r *LockRequest) String() string + type LockType uint32 + const LockRead + const LockUnlock + const LockWrite + func (l LockType) String() string + type LockWaitRequest LockRequest + func (r *LockWaitRequest) Respond() + func (r *LockWaitRequest) String() string + type LookupRequest struct + Name string + func (r *LookupRequest) Respond(resp *LookupResponse) + func (r *LookupRequest) String() string + type LookupResponse struct + Attr Attr + EntryValid time.Duration + Generation uint64 + Node NodeID + func (r *LookupResponse) String() string + type MkdirRequest struct + Mode os.FileMode + Name string + Umask os.FileMode + func (r *MkdirRequest) Respond(resp *MkdirResponse) + func (r *MkdirRequest) String() string + type MkdirResponse struct + func (r *MkdirResponse) String() string + type MknodRequest struct + Mode os.FileMode + Name string + Rdev uint32 + Umask os.FileMode + func (r *MknodRequest) Respond(resp *LookupResponse) + func (r *MknodRequest) String() string + type MountOption mountOption + func AllowDev() MountOption + func AllowNonEmptyMount() MountOption + func AllowOther() MountOption + func AllowRoot() MountOption + func AllowSUID() MountOption + func AsyncRead() MountOption + func AutoXattr() MountOption + func CongestionThreshold(n uint16) MountOption + func DaemonTimeout(name string) MountOption + func DefaultPermissions() MountOption + func ExclCreate() MountOption + func FSName(name string) MountOption + func LocalVolume() MountOption + func LockingFlock() MountOption + func LockingPOSIX() MountOption + func MaxBackground(n uint16) MountOption + func MaxReadahead(n uint32) MountOption + func NoAppleDouble() MountOption + func NoAppleXattr() MountOption + func NoBrowse() MountOption + func OSXFUSELocations(paths ...OSXFUSEPaths) MountOption + func ReadOnly() MountOption + func Subtype(fstype string) MountOption + func VolumeName(name string) MountOption + func WritebackCache() MountOption + type MountpointDoesNotExistError struct + Path string + func (e *MountpointDoesNotExistError) Error() string + type NodeID uint64 + const RootID + func (n NodeID) String() string + type NotifyReply struct + func (r *NotifyReply) String() string + type NotifyRetrieval struct + func (n *NotifyRetrieval) Finish(r *NotifyReply) []byte + type OSXFUSEPaths struct + DaemonVar string + DevicePrefix string + Load string + Mount string + type OldVersionError struct + Kernel Protocol + LibraryMin Protocol + func (e *OldVersionError) Error() string + type OpenFlags uint32 + const OpenAccessModeMask + const OpenAppend + const OpenCreate + const OpenDirectory + const OpenExclusive + const OpenNonblock + const OpenReadOnly + const OpenReadWrite + const OpenSync + const OpenTruncate + const OpenWriteOnly + func (fl OpenFlags) IsReadOnly() bool + func (fl OpenFlags) IsReadWrite() bool + func (fl OpenFlags) IsWriteOnly() bool + func (fl OpenFlags) String() string + type OpenRequest struct + Dir bool + Flags OpenFlags + func (r *OpenRequest) Respond(resp *OpenResponse) + func (r *OpenRequest) String() string + type OpenResponse struct + Flags OpenResponseFlags + Handle HandleID + func (r *OpenResponse) String() string + type OpenResponseFlags uint32 + const OpenDirectIO + const OpenKeepCache + const OpenNonSeekable + const OpenPurgeAttr + const OpenPurgeUBC + func (fl OpenResponseFlags) String() string + type PollEvents uint32 + const DefaultPollMask + const PollError + const PollHangup + const PollIn + const PollInvalid + const PollMessage + const PollOut + const PollPriority + const PollReadHangup + const PollReadNormal + const PollReadOutOfBand + const PollWriteNormal + const PollWriteOutOfBand + func (fl PollEvents) String() string + type PollFlags uint32 + const PollScheduleNotify + func (fl PollFlags) String() string + type PollRequest struct + Events PollEvents + Flags PollFlags + Handle HandleID + func (r *PollRequest) Respond(resp *PollResponse) + func (r *PollRequest) String() string + func (r *PollRequest) Wakeup() (_ PollWakeup, ok bool) + type PollResponse struct + REvents PollEvents + func (r *PollResponse) String() string + type PollWakeup struct + func (p PollWakeup) String() string + type Protocol struct + Major uint32 + Minor uint32 + func (a Protocol) GE(b Protocol) bool + func (a Protocol) HasAttrBlockSize() bool + func (a Protocol) HasGetattrFlags() bool + func (a Protocol) HasInvalidate() bool + func (a Protocol) HasOpenNonSeekable() bool + func (a Protocol) HasReadWriteFlags() bool + func (a Protocol) HasUmask() bool + func (a Protocol) LT(b Protocol) bool + func (p Protocol) String() string + type QueryLockRequest struct + Handle HandleID + Lock FileLock + LockFlags LockFlags + LockOwner LockOwner + func (r *QueryLockRequest) Respond(resp *QueryLockResponse) + func (r *QueryLockRequest) String() string + type QueryLockResponse struct + Lock FileLock + func (r *QueryLockResponse) String() string + type ReadFlags uint32 + const ReadLockOwner + func (fl ReadFlags) String() string + type ReadRequest struct + Dir bool + FileFlags OpenFlags + Flags ReadFlags + Handle HandleID + LockOwner LockOwner + Offset int64 + Size int + func (r *ReadRequest) Respond(resp *ReadResponse) + func (r *ReadRequest) String() string + type ReadResponse struct + Data []byte + func (r *ReadResponse) MarshalJSON() ([]byte, error) + func (r *ReadResponse) String() string + type ReadlinkRequest struct + func (r *ReadlinkRequest) Respond(target string) + func (r *ReadlinkRequest) String() string + type ReleaseFlags uint32 + const ReleaseFlockUnlock + const ReleaseFlush + func (fl ReleaseFlags) String() string + type ReleaseRequest struct + Dir bool + Flags OpenFlags + Handle HandleID + LockOwner LockOwner + ReleaseFlags ReleaseFlags + func (r *ReleaseRequest) Respond() + func (r *ReleaseRequest) String() string + type RemoveRequest struct + Dir bool + Name string + func (r *RemoveRequest) Respond() + func (r *RemoveRequest) String() string + type RemovexattrRequest struct + Name string + func (r *RemovexattrRequest) Respond() + func (r *RemovexattrRequest) String() string + type RenameRequest struct + NewDir NodeID + NewName string + OldName string + func (r *RenameRequest) Respond() + func (r *RenameRequest) String() string + type Request interface + Hdr func() *Header + RespondError func(error) + String func() string + type RequestID uint64 + func (r RequestID) String() string + type SetattrRequest struct + Atime time.Time + Bkuptime time.Time + Chgtime time.Time + Crtime time.Time + Flags uint32 + Gid uint32 + Handle HandleID + Mode os.FileMode + Mtime time.Time + Size uint64 + Uid uint32 + Valid SetattrValid + func (r *SetattrRequest) Respond(resp *SetattrResponse) + func (r *SetattrRequest) String() string + type SetattrResponse struct + Attr Attr + func (r *SetattrResponse) String() string + type SetattrValid uint32 + const SetattrAtime + const SetattrAtimeNow + const SetattrBkuptime + const SetattrChgtime + const SetattrCrtime + const SetattrFlags + const SetattrGid + const SetattrHandle + const SetattrLockOwner + const SetattrMode + const SetattrMtime + const SetattrMtimeNow + const SetattrSize + const SetattrUid + func (fl SetattrValid) Atime() bool + func (fl SetattrValid) AtimeNow() bool + func (fl SetattrValid) Bkuptime() bool + func (fl SetattrValid) Chgtime() bool + func (fl SetattrValid) Crtime() bool + func (fl SetattrValid) Flags() bool + func (fl SetattrValid) Gid() bool + func (fl SetattrValid) Handle() bool + func (fl SetattrValid) LockOwner() bool + func (fl SetattrValid) Mode() bool + func (fl SetattrValid) Mtime() bool + func (fl SetattrValid) MtimeNow() bool + func (fl SetattrValid) Size() bool + func (fl SetattrValid) String() string + func (fl SetattrValid) Uid() bool + type SetxattrRequest struct + Flags uint32 + Name string + Position uint32 + Xattr []byte + func (r *SetxattrRequest) Respond() + func (r *SetxattrRequest) String() string + type StatfsRequest struct + func (r *StatfsRequest) Respond(resp *StatfsResponse) + func (r *StatfsRequest) String() string + type StatfsResponse struct + Bavail uint64 + Bfree uint64 + Blocks uint64 + Bsize uint32 + Ffree uint64 + Files uint64 + Frsize uint32 + Namelen uint32 + func (r *StatfsResponse) String() string + type SymlinkRequest struct + NewName string + Target string + func (r *SymlinkRequest) Respond(resp *SymlinkResponse) + func (r *SymlinkRequest) String() string + type SymlinkResponse struct + func (r *SymlinkResponse) String() string + type UnlockRequest LockRequest + func (r *UnlockRequest) Respond() + func (r *UnlockRequest) String() string + type UnrecognizedRequest struct + Opcode uint32 + func (r *UnrecognizedRequest) String() string + type WriteFlags uint32 + const WriteCache + const WriteLockOwner + func (fl WriteFlags) String() string + type WriteRequest struct + Data []byte + FileFlags OpenFlags + Flags WriteFlags + Handle HandleID + LockOwner LockOwner + Offset int64 + func (r *WriteRequest) MarshalJSON() ([]byte, error) + func (r *WriteRequest) Respond(resp *WriteResponse) + func (r *WriteRequest) String() string + type WriteResponse struct + Size int + func (r *WriteResponse) String() string