Documentation
¶
Index ¶
- Variables
- func NormalizeError(err error) error
- type SFTP
- func (s *SFTP) Checksum(path string, algorithm crypto.Hash) ([]byte, error)
- func (s *SFTP) Chmod(path string, mode os.FileMode) error
- func (s *SFTP) Chown(path string, uid, gid int) error
- func (s *SFTP) Chtimes(path string, atime, mtime time.Time) error
- func (s *SFTP) Close() error
- func (s *SFTP) FileRead(path string) (vfs.ReaderAt, error)
- func (s *SFTP) FileWrite(path string, flags int) (vfs.WriterAt, error)
- func (s *SFTP) Handle(path string) ([]byte, error)
- func (s *SFTP) Link(target, path string) error
- func (s *SFTP) List(path string) (vfs.ListerAt, error)
- func (s *SFTP) Lstat(path string) (vfs.FileInfo, error)
- func (s *SFTP) Mkdir(path string, perm os.FileMode) error
- func (s *SFTP) NumLinks(path string) (uint64, error)
- func (s *SFTP) Open(path string) (vfs.File, error)
- func (s *SFTP) OpenFile(path string, flag int, perm os.FileMode) (vfs.File, error)
- func (s *SFTP) Path(handle []byte) (string, error)
- func (s *SFTP) Readlink(path string) (string, error)
- func (s *SFTP) RealPath(path string) (string, error)
- func (s *SFTP) Remove(path string) error
- func (s *SFTP) Rename(oldpath, newpath string) error
- func (s *SFTP) Rmdir(path string) error
- func (s *SFTP) SetExtendedAttr(path, name string, value []byte) error
- func (s *SFTP) SetExtendedAttrs(path string, attrs vfs.Attributes) error
- func (s *SFTP) Stat(path string) (vfs.FileInfo, error)
- func (s *SFTP) Symlink(target, path string) error
- func (s *SFTP) Truncate(path string, size int64) error
- func (s *SFTP) UnsetExtendedAttr(path, name string) error
- type SFTPDirectory
- func (d *SFTPDirectory) Close() error
- func (d *SFTPDirectory) Name() string
- func (d *SFTPDirectory) Read([]byte) (int, error)
- func (d *SFTPDirectory) ReadAt([]byte, int64) (int, error)
- func (d *SFTPDirectory) Readdir(n int) ([]vfs.FileInfo, error)
- func (d *SFTPDirectory) Seek(int64, int) (int64, error)
- func (d *SFTPDirectory) Stat() (vfs.FileInfo, error)
- func (d *SFTPDirectory) Truncate(int64) error
- func (d *SFTPDirectory) Write([]byte) (int, error)
- func (d *SFTPDirectory) WriteAt([]byte, int64) (int, error)
- type SFTPFile
- type SFTPFileInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTypeAssertion = errors.New("type assertion failed")
View Source
var InodePrefix = "inode/"
View Source
var LookupPrefix = "lookup"
View Source
var MaxPacket = 32 * 1024 * 1024 // 32 MB
Functions ¶
func NormalizeError ¶ added in v0.0.3
Types ¶
type SFTP ¶
func (*SFTP) SetExtendedAttr ¶
func (*SFTP) SetExtendedAttrs ¶
func (s *SFTP) SetExtendedAttrs(path string, attrs vfs.Attributes) error
func (*SFTP) UnsetExtendedAttr ¶
type SFTPDirectory ¶
type SFTPDirectory struct {
// contains filtered or unexported fields
}
func (*SFTPDirectory) Close ¶
func (d *SFTPDirectory) Close() error
func (*SFTPDirectory) Name ¶
func (d *SFTPDirectory) Name() string
func (*SFTPDirectory) Truncate ¶
func (d *SFTPDirectory) Truncate(int64) error
type SFTPFileInfo ¶
func (*SFTPFileInfo) Extended ¶
func (s *SFTPFileInfo) Extended() (vfs.Attributes, error)
func (*SFTPFileInfo) Gid ¶
func (s *SFTPFileInfo) Gid() uint32
func (*SFTPFileInfo) NumLinks ¶
func (s *SFTPFileInfo) NumLinks() uint64
func (*SFTPFileInfo) Permissions ¶
func (s *SFTPFileInfo) Permissions() (*vfs.Permissions, error)
func (*SFTPFileInfo) Sys ¶
func (s *SFTPFileInfo) Sys() any
func (*SFTPFileInfo) Uid ¶
func (s *SFTPFileInfo) Uid() uint32
Click to show internal directories.
Click to hide internal directories.