Documentation ¶
Overview ¶
Package fsclient provides a fs.FS compatible client for talking to a gRPC RemoteFileSystemService server.
Index ¶
- type File
- func (h *File) Close() error
- func (h *File) Read(p []byte) (int, error)
- func (h *File) ReadAt(p []byte, offset int64) (int, error)
- func (h *File) Seek(offset int64, whence int) (int64, error)
- func (h *File) Stat() (fs.FileInfo, error)
- func (h *File) Sync() error
- func (h *File) Truncate(size int64) error
- func (h *File) Write(p []byte) (int, error)
- func (h *File) WriteAt(p []byte, offset int64) (int, error)
- type FileSystem
- func (f *FileSystem) Create(name string) (*File, error)
- func (f *FileSystem) Open(name string) (fs.File, error)
- func (f *FileSystem) OpenFile(name string, flags int, perm fs.FileMode) (*File, error)
- func (f *FileSystem) ReadDir(name string) ([]fs.DirEntry, error)
- func (f *FileSystem) Rename(oldName, newName string) error
- func (f *FileSystem) Stat(name string) (fs.FileInfo, error)
- func (f *FileSystem) Truncate(name string, size int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
FileSystem provides an API to the remote filesystem.
func New ¶
func New(ctx context.Context, c grpc.ClientConnInterface) *FileSystem
New creates a FileSystem object.
func (*FileSystem) Rename ¶
func (f *FileSystem) Rename(oldName, newName string) error
TODO: Return *os.LinkError, not *os.PathError
Click to show internal directories.
Click to hide internal directories.