Versions in this module Expand all Collapse all v1 v1.1.1 Aug 12, 2024 Changes in this version + const MaxReadSizeLimit + const PathSeparator + var ErrBadPattern = errors.New("syntax error in pattern") + var NORMALIZE_PATH = true + func IsPathSeparator(c uint8) bool + func Match(pattern, name string) (matched bool, err error) + type Client = Session + type ContextError struct + Err error + func (err *ContextError) Error() string + func (err *ContextError) Timeout() bool + type Dialer struct + Initiator Initiator + MaxCreditBalance uint16 + Negotiator Negotiator + func (d *Dialer) Dial(tcpConn net.Conn) (*Session, error) + func (d *Dialer) DialContext(ctx context.Context, tcpConn net.Conn) (*Session, error) + type File struct + func (f *File) Chmod(mode os.FileMode) error + func (f *File) Close() error + func (f *File) Name() string + func (f *File) Read(b []byte) (n int, err error) + func (f *File) ReadAt(b []byte, off int64) (n int, err error) + func (f *File) ReadFrom(r io.Reader) (n int64, err error) + func (f *File) Readdir(n int) (fi []os.FileInfo, err error) + func (f *File) Readdirnames(n int) (names []string, err error) + func (f *File) Seek(offset int64, whence int) (ret int64, err error) + func (f *File) Stat() (os.FileInfo, error) + func (f *File) Statfs() (FileFsInfo, error) + func (f *File) Sync() (err error) + func (f *File) Truncate(size int64) error + func (f *File) Write(b []byte) (n int, err error) + func (f *File) WriteAt(b []byte, off int64) (n int, err error) + func (f *File) WriteString(s string) (n int, err error) + func (f *File) WriteTo(w io.Writer) (n int64, err error) + type FileFsInfo interface + AvailableBlockCount func() uint64 + BlockSize func() uint64 + FragmentSize func() uint64 + FreeBlockCount func() uint64 + TotalBlockCount func() uint64 + type FileStat struct + AllocationSize int64 + ChangeTime time.Time + CreationTime time.Time + EndOfFile int64 + FileAttributes uint32 + FileName string + LastAccessTime time.Time + LastWriteTime time.Time + func (fs *FileStat) IsDir() bool + func (fs *FileStat) ModTime() time.Time + func (fs *FileStat) Mode() os.FileMode + func (fs *FileStat) Name() string + func (fs *FileStat) Size() int64 + func (fs *FileStat) Sys() interface{} + type Initiator interface + type InternalError struct + Message string + func (err *InternalError) Error() string + type InvalidResponseError struct + Message string + func (err *InvalidResponseError) Error() string + type NTLMInitiator struct + Domain string + Hash []byte + Password string + TargetSPN string + User string + Workstation string + type Negotiator struct + ClientGuid [16]byte + RequireMessageSigning bool + SpecifiedDialect uint16 + type RemoteFile = File + type RemoteFileStat = FileStat + type RemoteFileSystem = Share + type ResponseError struct + Code uint32 + func (err *ResponseError) Error() string + type Session struct + func (c *Session) ListSharenames() ([]string, error) + func (c *Session) Logoff() error + func (c *Session) Mount(sharename string) (*Share, error) + func (c *Session) WithContext(ctx context.Context) *Session + type Share struct + func (fs *Share) Chmod(name string, mode os.FileMode) error + func (fs *Share) Chtimes(name string, atime time.Time, mtime time.Time) error + func (fs *Share) Create(name string) (*File, error) + func (fs *Share) Glob(pattern string) (matches []string, err error) + func (fs *Share) Lstat(name string) (os.FileInfo, error) + func (fs *Share) Mkdir(name string, perm os.FileMode) error + func (fs *Share) MkdirAll(path string, perm os.FileMode) error + func (fs *Share) Open(name string) (*File, error) + func (fs *Share) OpenFile(name string, flag int, perm os.FileMode) (*File, error) + func (fs *Share) ReadDir(dirname string) ([]os.FileInfo, error) + func (fs *Share) ReadFile(filename string) ([]byte, error) + func (fs *Share) Readlink(name string) (string, error) + func (fs *Share) Remove(name string) error + func (fs *Share) RemoveAll(path string) error + func (fs *Share) Rename(oldpath, newpath string) error + func (fs *Share) Stat(name string) (os.FileInfo, error) + func (fs *Share) Statfs(name string) (FileFsInfo, error) + func (fs *Share) Symlink(target, linkpath string) error + func (fs *Share) Truncate(name string, size int64) error + func (fs *Share) Umount() error + func (fs *Share) WithContext(ctx context.Context) *Share + func (fs *Share) WriteFile(filename string, data []byte, perm os.FileMode) error + func (s *Share) DirFS(dirname string) fs.FS + type TransportError struct + Err error + func (err *TransportError) Error() string