fsclient

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2022 License: BSD-2-Clause Imports: 17 Imported by: 1

Documentation

Overview

Package fsclient provides a billy.Filesystem that talks to a remote BillyService gRPC server.

Index

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

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) Chmod

func (f *FileSystem) Chmod(p string, mode os.FileMode) error

func (*FileSystem) Chown

func (f *FileSystem) Chown(p string, uid, gid int) error

func (*FileSystem) Chroot

func (f *FileSystem) Chroot(p string) (billy.Filesystem, error)

func (*FileSystem) Chtimes

func (f *FileSystem) Chtimes(p string, atime, mtime time.Time) 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) Lchown

func (f *FileSystem) Lchown(p string, uid, gid int) error

func (*FileSystem) Lstat

func (f *FileSystem) Lstat(p string) (os.FileInfo, error)

func (*FileSystem) MkdirAll

func (f *FileSystem) MkdirAll(p string, mode os.FileMode) error

func (*FileSystem) Open

func (f *FileSystem) Open(name string) (billy.File, error)

func (*FileSystem) OpenFile

func (f *FileSystem) OpenFile(name string, flags int, perm fs.FileMode) (billy.File, error)

func (*FileSystem) ReadDir

func (f *FileSystem) ReadDir(p string) ([]os.FileInfo, error)
func (f *FileSystem) Readlink(p string) (string, 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) Stat

func (f *FileSystem) Stat(name string) (os.FileInfo, error)
func (f *FileSystem) Symlink(target, link string) error

func (*FileSystem) TempFile

func (f *FileSystem) TempFile(dir, prefix string) (billy.File, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL