Versions in this module Expand all Collapse all v0 v0.18.0 May 24, 2018 v0.17.1 Mar 19, 2018 v0.17.0 Feb 28, 2018 v0.16.0 Nov 8, 2017 Changes in this version + const AttrValidAccessTime + const AttrValidAllocationSize + const AttrValidChangeTime + const AttrValidCreateTime + const AttrValidEffectivePerms + const AttrValidExtendAttrSize + const AttrValidFileID + const AttrValidFlags + const AttrValidGroupID + const AttrValidGroupPerms + const AttrValidNonStaticFileID + const AttrValidOtherPerms + const AttrValidOwnerPerms + const AttrValidReparsePoint + const AttrValidShortName + const AttrValidSize + const AttrValidSpecialPerms + const AttrValidType + const AttrValidUserID + const AttrValidVolID + const AttrValidWriteTime + const FileTypeDirectory + const FileTypeRegular + const FileTypeSymlink + const HeaderVersion + const LargePacketMax + const LockBatch + const LockExclusive + const LockLease + const LockNone + const LockOpportunistic + const LockShared + const OpAccessCheckV4 + const OpClose + const OpCloseV3 + const OpCreateDir + const OpCreateDirV2 + const OpCreateDirV3 + const OpCreateSessionV4 + const OpCreateSymlink + const OpCreateSymlinkV3 + const OpDeleteDir + const OpDeleteDirV2 + const OpDeleteDirV3 + const OpDeleteFile + const OpDeleteFileV2 + const OpDeleteFileV3 + const OpDeleteV4 + const OpDestroySessionV4 + const OpEnumerateStreamsV4 + const OpFsctlV4 + const OpFsyncV4 + const OpGetattr + const OpGetattrV2 + const OpGetattrV3 + const OpGetattrV4 + const OpLinkmoveV4 + const OpLockByteRangeV4 + const OpNewHeader + const OpNotifyV4 + const OpOpen + const OpOpenV2 + const OpOpenV3 + const OpOpenV4 + const OpOplockAcquireV4 + const OpOplockBreakV4 + const OpQueryEasV4 + const OpQueryVolumeInfo + const OpQueryVolumeInfoV3 + const OpQueryVolumeInfoV4 + const OpRead + const OpReadFastV4 + const OpReadV3 + const OpRemoveWatchV4 + const OpRename + const OpRenameV2 + const OpRenameV3 + const OpSearchClose + const OpSearchCloseV3 + const OpSearchOpen + const OpSearchOpenV3 + const OpSearchRead + const OpSearchReadV2 + const OpSearchReadV3 + const OpSearchReadV4 + const OpServerLockChange + const OpServerLockChangeV3 + const OpSetEasV4 + const OpSetWatchV4 + const OpSetattr + const OpSetattrV2 + const OpSetattrV3 + const OpSetattrV4 + const OpUnlockByteRangeV4 + const OpWrite + const OpWriteFastV4 + const OpWriteV3 + const OpWriteWin32StreamV3 + const Open + const OpenCreate + const OpenCreateEmpty + const OpenCreateSafe + const OpenEmpty + const OpenModeAccmodes + const OpenModeReadOnly + const OpenModeReadWrite + const OpenModeWriteOnly + const PacketFlagInfoExterror + const PacketFlagReply + const PacketFlagRequest + const PacketFlagValidFlags + const PermExec + const PermRead + const PermWrite + const StatusAccessDenied + const StatusDirNotEmpty + const StatusFileExists + const StatusGenericError + const StatusInvalidHandle + const StatusInvalidName + const StatusInvalidParameter + const StatusNameTooLong + const StatusNoSpace + const StatusNoSuchFileOrDir + const StatusNotDirectory + const StatusNotSameDevice + const StatusOperationNotPermitted + const StatusOperationNotSupported + const StatusProtocolError + const StatusSharingViolation + const StatusStaleSession + const StatusSuccess + const StatusTooManySessions + const StatusTransportError + const WriteAppend + var ArchiveScheme = "archive" + var Trace = false + func MarshalBinary(fields ...interface{}) ([]byte, error) + func ProtocolError(err error) error + func UnmarshalBinary(data []byte, fields ...interface{}) error + type ArchiveHandler struct + Read func(*url.URL, *tar.Reader) error + Write func(*url.URL, *tar.Writer) error + func (*ArchiveHandler) Stat(u *url.URL) (os.FileInfo, error) + func (h *ArchiveHandler) Open(u *url.URL, mode int32) (File, error) + type AttrV2 struct + AccessTime uint64 + AllocationSize uint64 + AttrChangeTime uint64 + AttrFlags uint64 + CreationTime uint64 + EffectivePerms uint32 + GroupID uint32 + GroupPerms uint8 + HostFileID uint64 + Mask uint64 + OtherPerms uint8 + OwnerPerms uint8 + Reserved2 uint64 + Size uint64 + SpecialPerms uint8 + Type int32 + UserID uint32 + VolumeID uint32 + WriteTime uint64 + func (a *AttrV2) Stat(info os.FileInfo) + type Capability struct + Flags uint32 + Op int32 + type File interface + Name func() string + type FileHandler interface + Open func(*url.URL, int32) (File, error) + Stat func(*url.URL) (os.FileInfo, error) + func NewArchiveHandler() FileHandler + type FileName struct + Length uint32 + Name string + func (f *FileName) FromString(name string) + func (f *FileName) MarshalBinary() ([]byte, error) + func (f *FileName) Path() string + func (f *FileName) UnmarshalBinary(data []byte) error + type FileNameV3 struct + CaseType int32 + Flags uint32 + ID uint32 + Length uint32 + Name string + func (f *FileNameV3) FromString(name string) + func (f *FileNameV3) MarshalBinary() ([]byte, error) + func (f *FileNameV3) Path() string + func (f *FileNameV3) UnmarshalBinary(data []byte) error + type Header struct + Dummy int32 + Flags uint32 + HeaderSize uint32 + Information uint32 + Op int32 + PacketSize uint32 + RequestID uint32 + Reserved uint64 + Reserved1 [3]uint8 + SessionID uint64 + Status uint32 + Version uint8 + func (h *Header) UnmarshalBinary(data []byte) error + type Packet struct + Payload []byte + func (r *Packet) MarshalBinary() ([]byte, error) + func (r *Packet) Reply(payload interface{}, err error) ([]byte, error) + func (r *Packet) UnmarshalBinary(data []byte) error + type Reply struct + Handle uint32 + Status uint32 + type ReplyClose struct + type ReplyCreateSessionV4 struct + Capabilities []Capability + Flags uint32 + IdentityOffset uint32 + MaxPacketSize uint32 + NumCapabilities uint32 + Reserved uint32 + SessionID uint64 + func (r *ReplyCreateSessionV4) MarshalBinary() ([]byte, error) + func (r *ReplyCreateSessionV4) UnmarshalBinary(data []byte) error + type ReplyDestroySessionV4 struct + Reserved uint64 + type ReplyGetattrV2 struct + Attr AttrV2 + SymlinkTarget FileName + func (r *ReplyGetattrV2) MarshalBinary() ([]byte, error) + func (r *ReplyGetattrV2) UnmarshalBinary(data []byte) error + type ReplyOpen struct + Handle uint32 + type ReplyOpenV3 struct + AcquiredLock int32 + Flags int32 + Handle uint32 + Reserved uint32 + type ReplyReadV3 struct + ActualSize uint32 + Payload []byte + Reserved uint64 + func (r *ReplyReadV3) MarshalBinary() ([]byte, error) + func (r *ReplyReadV3) UnmarshalBinary(data []byte) error + type ReplySetattrV2 struct + Header Reply + type ReplyWriteV3 struct + ActualSize uint32 + Reserved uint64 + type Request struct + Handle uint32 + Op int32 + type RequestClose struct + Handle uint32 + type RequestCreateSessionV4 struct + Capabilities []Capability + Flags uint32 + MaxPacketSize uint32 + NumCapabilities uint32 + Reserved uint32 + func (r *RequestCreateSessionV4) MarshalBinary() ([]byte, error) + func (r *RequestCreateSessionV4) UnmarshalBinary(data []byte) error + type RequestDestroySessionV4 struct + Reserved uint64 + type RequestGetattrV2 struct + AttrHint uint64 + FileName FileName + Handle uint32 + func (r *RequestGetattrV2) MarshalBinary() ([]byte, error) + func (r *RequestGetattrV2) UnmarshalBinary(data []byte) error + type RequestOpen struct + FileName FileName + OpenFlags int32 + OpenMode int32 + Permissions uint8 + func (r *RequestOpen) MarshalBinary() ([]byte, error) + func (r *RequestOpen) UnmarshalBinary(data []byte) error + type RequestOpenV3 struct + AllocationSize uint64 + AttrFlags uint64 + DesiredAccess uint32 + DesiredLock int32 + FileName FileNameV3 + GroupPerms uint8 + Mask uint64 + OpenFlags int32 + OpenMode int32 + OtherPerms uint8 + OwnerPerms uint8 + Reserved1 uint64 + Reserved2 uint64 + ShareAccess uint32 + SpecialPerms uint8 + func (r *RequestOpenV3) MarshalBinary() ([]byte, error) + func (r *RequestOpenV3) UnmarshalBinary(data []byte) error + type RequestReadV3 struct + Handle uint32 + Offset uint64 + RequiredSize uint32 + Reserved uint64 + type RequestSetattrV2 struct + Attr AttrV2 + FileName FileName + Handle uint32 + Hints uint64 + func (r *RequestSetattrV2) MarshalBinary() ([]byte, error) + func (r *RequestSetattrV2) UnmarshalBinary(data []byte) error + type RequestWriteV3 struct + Handle uint32 + Offset uint64 + Payload []byte + RequiredSize uint32 + Reserved uint64 + WriteFlags uint8 + func (r *RequestWriteV3) MarshalBinary() ([]byte, error) + func (r *RequestWriteV3) UnmarshalBinary(data []byte) error + type Server struct + Capabilities []Capability + func NewServer() *Server + func (s *Server) Close(p *Packet) (interface{}, error) + func (s *Server) CreateSessionV4(p *Packet) (interface{}, error) + func (s *Server) DestroySessionV4(p *Packet) (interface{}, error) + func (s *Server) Dispatch(packet []byte) ([]byte, error) + func (s *Server) GetattrV2(p *Packet) (interface{}, error) + func (s *Server) Open(p *Packet) (interface{}, error) + func (s *Server) OpenFile(name string, mode int32) (File, error) + func (s *Server) OpenV3(p *Packet) (interface{}, error) + func (s *Server) ReadV3(p *Packet) (interface{}, error) + func (s *Server) RegisterFileHandler(scheme string, handler FileHandler) + func (s *Server) SetattrV2(p *Packet) (interface{}, error) + func (s *Server) Stat(name string) (os.FileInfo, error) + func (s *Server) WriteV3(p *Packet) (interface{}, error) + type Status struct + Code uint32 + Err error + func (s *Status) Error() string