Documentation ¶
Index ¶
- type Access
- type AccessCall
- type AccessReply
- type CommitCall
- type CommitReply
- type CreateCall
- type CreateReply
- type DirOpArg
- type Entry
- type Entry3
- type EntryPlus
- type EntryPlus3
- type Fattr
- type FileCacheAttribute
- type FileType
- type FsInfoCall
- type FsInfoReply
- type FsStatCall
- type FsStatReply
- type GetAttrCall
- type GetAttrReply
- type LinkCall
- type LinkReply
- type LookUpCall
- type LookUpReply
- type MkdirCall
- type MkdirReply
- type MknodCall
- type MknodReply
- type NFS3Time
- type NFSStatus
- type PathConfCall
- type PathConfReply
- type PostOpAttr
- type PostOpFH3
- type PreOpAttr
- type Procedure
- type ReaDirPlusArg
- type ReadCall
- type ReadDirArg
- type ReadDirCall
- type ReadDirPlusCall
- type ReadDirPlusReply
- type ReadDirReply
- type ReadLinkCall
- type ReadLinkReply
- type ReadReply
- type RemoveCall
- type RemoveReply
- type RenameCall
- type RenameReply
- type RmdirCall
- type RmdirReply
- type Sattr3
- type Sattrguard3
- type SetAttrCall
- type SetAttrReply
- type SetID
- type SetMode
- type SetSize
- type SetTime
- type SymLinkData3
- type SymlinkCall
- type SymlinkReply
- type TimeHow
- type Wcc
- type WriteCall
- type WriteReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessCall ¶
func (*AccessCall) String ¶
func (self *AccessCall) String() string
type AccessReply ¶
type AccessReply struct { NFSStatus Attr PostOpAttr Access //todo }
func (*AccessReply) String ¶
func (self *AccessReply) String() string
type CommitCall ¶
func (*CommitCall) String ¶
func (self *CommitCall) String() string
type CommitReply ¶
func (*CommitReply) String ¶
func (self *CommitReply) String() string
type CreateCall ¶
type CreateCall struct { DirOpArg // 0 : UNCHECKED (default) // 1 : GUARDED // 2 : EXCLUSIVE Mode uint32 Attr Sattr3 }
func (*CreateCall) String ¶
func (self *CreateCall) String() string
type CreateReply ¶
type CreateReply struct { NFSStatus FileHandle PostOpFH3 Attr PostOpAttr Wcc }
func (*CreateReply) String ¶
func (self *CreateReply) String() string
type EntryPlus ¶
type EntryPlus struct { FileId uint64 FileName []byte Cookie uint64 Attr PostOpAttr Handle PostOpFH3 }
func (EntryPlus) FileHandleHex ¶
func (EntryPlus) FileNameStr ¶
type EntryPlus3 ¶
type Fattr ¶
type FileCacheAttribute ¶
func (*FileCacheAttribute) String ¶
func (self *FileCacheAttribute) String() string
type FileType ¶
type FileType uint32
type FsInfoCall ¶
type FsInfoCall struct {
FileHandle []byte
}
func (*FsInfoCall) String ¶
func (self *FsInfoCall) String() string
type FsInfoReply ¶
type FsInfoReply struct { NFSStatus Attr PostOpAttr Rtmax uint32 Rtpref uint32 Rtmult uint32 Wtmax uint32 Wtpref uint32 Wtmult uint32 Dtpref uint32 Size uint64 TimeDelta NFS3Time Properties uint32 //todo:format }
func (*FsInfoReply) String ¶
func (self *FsInfoReply) String() string
type FsStatCall ¶
type FsStatCall struct {
FileHandle []byte
}
func (*FsStatCall) String ¶
func (self *FsStatCall) String() string
type FsStatReply ¶
type FsStatReply struct { NFSStatus ObjAttr PostOpAttr TotalSize uint64 FreeSize uint64 AvailableSize uint64 TotalFiles uint64 FreeFiles uint64 AvailableFiles uint64 // CacheHint is called "invarsec" in the nfs standard Invarsec uint32 }
func (FsStatReply) String ¶
func (self FsStatReply) String() string
type GetAttrCall ¶
type GetAttrCall struct {
FileHandle []byte
}
func (*GetAttrCall) String ¶
func (self *GetAttrCall) String() string
type GetAttrReply ¶
func (*GetAttrReply) String ¶
func (self *GetAttrReply) String() string
type LinkReply ¶
type LinkReply struct { NFSStatus ObjAttr PostOpAttr Wcc }
type LookUpCall ¶
type LookUpCall struct {
DirOpArg
}
func (*LookUpCall) String ¶
func (self *LookUpCall) String() string
type LookUpReply ¶
type LookUpReply struct { NFSStatus FH []byte Attr PostOpAttr DirAttr PostOpAttr }
func (*LookUpReply) String ¶
func (self *LookUpReply) String() string
type MkdirReply ¶
type MkdirReply struct { NFSStatus FH PostOpFH3 Attr PostOpAttr Wcc }
func (*MkdirReply) String ¶
func (self *MkdirReply) String() string
type MknodReply ¶
type MknodReply struct { NFSStatus FileHandle []byte PostOpAttr Wcc }
func (*MknodReply) String ¶
func (self *MknodReply) String() string
type NFS3Time ¶
FileTime is the NFS wire time format This is equivalent to go-nfs-client/nfs.NFS3Time
func (NFS3Time) EqualTimespec ¶
EqualTimespec returns if this time is equal to a local time spec
type NFSStatus ¶
type NFSStatus uint32
const ( NFSStatusOk NFSStatus = 0 NFSStatusPerm NFSStatus = 1 NFSStatusNoEnt NFSStatus = 2 NFSStatusIO NFSStatus = 5 NFSStatusNXIO NFSStatus = 6 NFSStatusAccess NFSStatus = 13 NFSStatusExist NFSStatus = 17 NFSStatusXDev NFSStatus = 18 NFSStatusNoDev NFSStatus = 19 NFSStatusNotDir NFSStatus = 20 NFSStatusIsDir NFSStatus = 21 NFSStatusInval NFSStatus = 22 NFSStatusFBig NFSStatus = 27 NFSStatusNoSPC NFSStatus = 28 NFSStatusROFS NFSStatus = 30 NFSStatusMlink NFSStatus = 31 NFSStatusNameTooLong NFSStatus = 63 NFSStatusNotEmpty NFSStatus = 66 NFSStatusDQuot NFSStatus = 69 NFSStatusStale NFSStatus = 70 NFSStatusRemote NFSStatus = 71 NFSStatusBadHandle NFSStatus = 10001 NFSStatusNotSync NFSStatus = 10002 NFSStatusBadCookie NFSStatus = 10003 NFSStatusNotSupp NFSStatus = 10004 NFSStatusTooSmall NFSStatus = 10005 NFSStatusServerFault NFSStatus = 10006 NFSStatusBadType NFSStatus = 10007 NFSStatusJukebox NFSStatus = 10008 )
NFSStatus codes
type PathConfCall ¶
type PathConfCall struct {
RootHandle []byte
}
func (*PathConfCall) String ¶
func (self *PathConfCall) String() string
type PathConfReply ¶
type PathConfReply struct { NFSStatus ObjAttr PostOpAttr LinkMax uint32 NameMax uint32 NoTrunc uint32 //todo:bool ChownRestricted uint32 //todo:bool CaseInsensitive uint32 //todo:bool CasePreserving uint32 //todo:bool }
func (*PathConfReply) String ¶
func (self *PathConfReply) String() string
type PostOpAttr ¶
func (PostOpAttr) HasSet ¶
func (self PostOpAttr) HasSet() bool
func (PostOpAttr) String ¶
func (self PostOpAttr) String() string
type PreOpAttr ¶
type Procedure ¶
type Procedure uint32
Procedure is the valid RPC calls for the nfs service.
const ( NFS3ProcedureNull Procedure = iota NFS3ProcedureGetAttr NFS3ProcedureSetAttr NFS3ProcedureLookup NFS3ProcedureAccess NFS3ProcedureReadlink NFS3ProcedureRead NFS3ProcedureWrite NFS3ProcedureCreate NFS3ProcedureMkDir NFS3ProcedureSymlink NFS3ProcedureMkNod NFS3ProcedureRemove NFS3ProcedureRmDir NFS3ProcedureRename NFS3ProcedureLink NFS3ProcedureReadDir NFS3ProcedureReadDirPlus NFS3ProcedureFSStat NFS3ProcedureFSInfo NFS3ProcedurePathConf NFS3ProcedureCommit )
NfsProcedure Codes
type ReaDirPlusArg ¶
type ReaDirPlusArg struct { NFSStatus DirAttrs PostOpAttr CookieVerf uint64 }
type ReadDirArg ¶
type ReadDirArg struct { NFSStatus DirAttr PostOpAttr Verifier uint64 }
type ReadDirCall ¶
func (*ReadDirCall) String ¶
func (self *ReadDirCall) String() string
type ReadDirPlusCall ¶
type ReadDirPlusCall struct { Handle []byte Cookie uint64 Verifier uint64 DirCount uint32 MaxCount uint32 }
func (*ReadDirPlusCall) String ¶
func (self *ReadDirPlusCall) String() string
type ReadDirPlusReply ¶
type ReadDirPlusReply struct { ReaDirPlusArg Entries []*EntryPlus }
func (*ReadDirPlusReply) String ¶
func (self *ReadDirPlusReply) String() string
type ReadDirReply ¶
type ReadDirReply struct { ReadDirArg Entries []*Entry }
func (*ReadDirReply) String ¶
func (self *ReadDirReply) String() string
type ReadLinkCall ¶
type ReadLinkCall struct {
FileHandle []byte
}
func (*ReadLinkCall) String ¶
func (self *ReadLinkCall) String() string
type ReadLinkReply ¶
type ReadLinkReply struct { NFSStatus Attr PostOpAttr Path string }
func (*ReadLinkReply) String ¶
func (self *ReadLinkReply) String() string
type ReadReply ¶
type ReadReply struct { NFSStatus Attr PostOpAttr Count uint32 EOF uint32 Data []byte }
type RemoveCall ¶
type RemoveCall struct {
DirOpArg
}
func (*RemoveCall) String ¶
func (self *RemoveCall) String() string
type RemoveReply ¶
func (*RemoveReply) String ¶
func (self *RemoveReply) String() string
type RenameCall ¶
func (*RenameCall) String ¶
func (self *RenameCall) String() string
type RenameReply ¶
func (*RenameReply) String ¶
func (self *RenameReply) String() string
type RmdirReply ¶
func (*RmdirReply) String ¶
func (self *RmdirReply) String() string
type Sattrguard3 ¶
type Sattrguard3 struct { Check bool `xdr:"union"` Time NFS3Time `xdr:"unioncase=1"` //SetToClientTime }
func (Sattrguard3) HasCheck ¶
func (self Sattrguard3) HasCheck() bool
func (Sattrguard3) String ¶
func (self Sattrguard3) String() string
type SetAttrCall ¶
type SetAttrCall struct { FileHandle []byte Attr Sattr3 Guard Sattrguard3 }
func (*SetAttrCall) String ¶
func (self *SetAttrCall) String() string
type SetAttrReply ¶
func (*SetAttrReply) String ¶
func (self *SetAttrReply) String() string
type SymLinkData3 ¶
func (*SymLinkData3) String ¶
func (self *SymLinkData3) String() string
type SymlinkCall ¶
type SymlinkCall struct { DirOpArg SymLinkData3 }
func (*SymlinkCall) String ¶
func (self *SymlinkCall) String() string
type SymlinkReply ¶
type SymlinkReply struct { NFSStatus Obj PostOpFH3 ObjAttr PostOpAttr Wcc }
func (*SymlinkReply) String ¶
func (self *SymlinkReply) String() string
type TimeHow ¶
type TimeHow int
TimeHow DONT_CHANGE = 0 SET_TO_SERVER_TIME = 1 SET_TO_CLIENT_TIME = 2
type Wcc ¶
type Wcc struct { Before PreOpAttr After PostOpAttr }
Click to show internal directories.
Click to hide internal directories.