Versions in this module Expand all Collapse all v0 v0.3.5 Jun 12, 2015 Changes in this version type Attr + Valid time.Duration v0.3.4 May 10, 2015 v0.3.3 Apr 28, 2015 v0.3.2 Apr 22, 2015 Changes in this version + const ENOATTR — darwin/amd64 + const ErrNoXattr type MountOption + func DefaultPermissions() MountOption + func ReadOnly() MountOption v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + const DefaultErrno + const EEXIST + const EINTR + const EIO + const ENODATA + const ENOENT + const ENOSYS + const ENOTSUP + const EPERM + const ERANGE + const ESTALE + const Version + var Debug func(msg interface{}) = nop + var ErrCannotCombineAllowOtherAndAllowRoot = errors.New("cannot combine AllowOther and AllowRoot") + 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 + 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 + type Conn struct + MountError error + Ready <-chan struct{} + func Mount(dir string, options ...MountOption) (*Conn, error) + func (c *Conn) Close() error + func (c *Conn) ReadRequest() (Request, error) + type CreateRequest struct + Flags OpenFlags + Mode os.FileMode + Name string + 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 (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 Error error + type ErrorNumber interface + Errno func() Errno + type FlushRequest struct + Flags uint32 + Handle HandleID + LockOwner uint64 + 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 GetattrRequest struct + func (r *GetattrRequest) Respond(resp *GetattrResponse) + func (r *GetattrRequest) String() string + type GetattrResponse struct + Attr Attr + AttrValid time.Duration + func (r *GetattrResponse) String() string + type GetxattrRequest struct + Name string + Position uint32 + Size uint32 + func (r *GetxattrRequest) Respond(resp *GetxattrResponse) + func (r *GetxattrRequest) RespondError(err Error) + func (r *GetxattrRequest) String() string + type GetxattrResponse struct + Xattr []byte + func (r *GetxattrResponse) String() string + type HandleID uint64 + 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 InitRequest struct + Flags InitFlags + Major uint32 + MaxReadahead uint32 + Minor uint32 + func (r *InitRequest) Respond(resp *InitResponse) + func (r *InitRequest) String() string + type InitResponse struct + Flags InitFlags + MaxReadahead uint32 + MaxWrite uint32 + func (r *InitResponse) 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 LookupRequest struct + Name string + func (r *LookupRequest) Respond(resp *LookupResponse) + func (r *LookupRequest) String() string + type LookupResponse struct + Attr Attr + AttrValid time.Duration + EntryValid time.Duration + Generation uint64 + Node NodeID + func (r *LookupResponse) String() string + type MkdirRequest struct + Mode os.FileMode + Name string + 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 + func (r *MknodRequest) Respond(resp *LookupResponse) + func (r *MknodRequest) String() string + type MountConfig struct + type MountOption func(*MountConfig) error + func AllowOther() MountOption + func AllowRoot() MountOption + func FSName(name string) MountOption + func LocalVolume() MountOption + func Subtype(fstype string) MountOption + func VolumeName(name string) MountOption + type NodeID uint64 + const RootID + type OpenFlags uint32 + const OpenAccessModeMask + const OpenAppend + const OpenCreate + const OpenExclusive + 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 ReadRequest struct + Dir bool + Handle HandleID + 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 ReleaseFlush + func (fl ReleaseFlags) String() string + type ReleaseRequest struct + Dir bool + Flags OpenFlags + Handle HandleID + LockOwner uint32 + 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) RespondError(err Error) + 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 + 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 + AttrValid time.Duration + 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) RespondError(err Error) + 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 + type WriteFlags uint32 + func (fl WriteFlags) String() string + type WriteRequest struct + Data []byte + Flags WriteFlags + Handle HandleID + 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