Documentation
¶
Overview ¶
Package remote implements the FileSystem interface for SFTP/SSH remote filesystems. It provides connection management, automatic reconnection, and parallel directory traversal.
Index ¶
- type RemoteFS
- func (fs *RemoteFS) Abs(p string) (string, error)
- func (fs *RemoteFS) Address() string
- func (fs *RemoteFS) Chmod(ctx context.Context, p string, mode os.FileMode) error
- func (fs *RemoteFS) Close() error
- func (fs *RemoteFS) Create(ctx context.Context, p string) (io.WriteCloser, error)
- func (fs *RemoteFS) GetHomeDir() (string, error)
- func (fs *RemoteFS) IsLocal() bool
- func (fs *RemoteFS) IsReadOnly(ctx context.Context, p string) (bool, error)
- func (fs *RemoteFS) Lstat(ctx context.Context, p string) (os.FileInfo, error)
- func (fs *RemoteFS) MkdirAll(ctx context.Context, p string, perm os.FileMode) error
- func (fs *RemoteFS) Open(ctx context.Context, p string) (io.ReadCloser, error)
- func (fs *RemoteFS) Preallocate(ctx context.Context, path string, size int64) error
- func (fs *RemoteFS) ReadDir(ctx context.Context, p string) ([]os.FileInfo, error)
- func (fs *RemoteFS) ReadDirEntries(ctx context.Context, p string) ([]os.DirEntry, error)
- func (fs *RemoteFS) RemoveAll(ctx context.Context, p string) error
- func (fs *RemoteFS) Rename(ctx context.Context, oldPath, newPath string) error
- func (fs *RemoteFS) Separator() string
- func (fs *RemoteFS) Stat(ctx context.Context, p string) (os.FileInfo, error)
- func (fs *RemoteFS) User() string
- func (fs *RemoteFS) Walk(ctx context.Context, root string, walkFn filepath.WalkFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteFS ¶
type RemoteFS struct {
core.UnixPathResolver
// contains filtered or unexported fields
}
RemoteFS implements FileSystem for SFTP.
func NewRemoteFS ¶
NewRemoteFS creates a new SFTP file system.
func (*RemoteFS) GetHomeDir ¶
func (*RemoteFS) IsReadOnly ¶
func (*RemoteFS) Preallocate ¶
func (*RemoteFS) ReadDirEntries ¶
Click to show internal directories.
Click to hide internal directories.