Documentation ¶
Overview ¶
Package fsclient provides a billy.Filesystem that talks to a remote BillyService gRPC server.
Index ¶
- type FileSystem
- func (f *FileSystem) Chmod(p string, mode os.FileMode) error
- func (f *FileSystem) Chown(p string, uid, gid int) error
- func (f *FileSystem) Chroot(p string) (billy.Filesystem, error)
- func (f *FileSystem) Chtimes(p string, atime, mtime time.Time) error
- func (f *FileSystem) Create(name string) (billy.File, error)
- func (f *FileSystem) Join(elem ...string) string
- func (f *FileSystem) Lchown(p string, uid, gid int) error
- func (f *FileSystem) Lstat(p string) (os.FileInfo, error)
- func (f *FileSystem) MkdirAll(p string, mode os.FileMode) error
- func (f *FileSystem) Open(name string) (billy.File, error)
- func (f *FileSystem) OpenFile(name string, flags int, perm fs.FileMode) (billy.File, error)
- func (f *FileSystem) ReadDir(p string) ([]os.FileInfo, error)
- func (f *FileSystem) Readlink(p string) (string, error)
- func (f *FileSystem) Remove(p string) error
- func (f *FileSystem) Rename(oldName, newName string) error
- func (f *FileSystem) Root() string
- func (f *FileSystem) Stat(name string) (os.FileInfo, error)
- func (f *FileSystem) Symlink(target, link string) error
- func (f *FileSystem) TempFile(dir, prefix string) (billy.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem provides an API to the remote filesystem.
func New ¶
func New(ctx context.Context, c grpc.ClientConnInterface) *FileSystem
New creates a FileSystem object based on a gRPC connection. Because the Billy interface doesn't take a context, the context you pass here is used for all RPCs. FileSystem conforms to billy.Filesystem.
func (*FileSystem) Chroot ¶
func (f *FileSystem) Chroot(p string) (billy.Filesystem, error)
func (*FileSystem) Create ¶
func (f *FileSystem) Create(name string) (billy.File, error)
func (*FileSystem) Join ¶
func (f *FileSystem) Join(elem ...string) string
func (*FileSystem) Open ¶
func (f *FileSystem) Open(name string) (billy.File, error)
func (*FileSystem) Remove ¶
func (f *FileSystem) Remove(p string) error
func (*FileSystem) Rename ¶
func (f *FileSystem) Rename(oldName, newName string) error
func (*FileSystem) Root ¶
func (f *FileSystem) Root() string
func (*FileSystem) Symlink ¶
func (f *FileSystem) Symlink(target, link string) error
func (*FileSystem) TempFile ¶
func (f *FileSystem) TempFile(dir, prefix string) (billy.File, error)
Click to show internal directories.
Click to hide internal directories.