Documentation ¶
Index ¶
- Variables
- func DestroyMount(path string) error
- func Dump(basePath string) interface{}
- func Mounts() []mount.Point
- func NewFileDescriptor(fid FID, absPath string, flags int, mode os.FileMode) (*fileDescriptor, error)
- func Overlay(mountPath string, fs hackpadfs.FS) error
- func OverlayTarGzip(mountPath string, gzipReader io.ReadCloser, persist bool, ...) error
- type Attr
- type FID
- type FileDescriptors
- func (f *FileDescriptors) Chmod(path string, mode os.FileMode) error
- func (f *FileDescriptors) Close(fd FID) error
- func (f *FileDescriptors) CloseAll()
- func (f *FileDescriptors) Fchmod(fd FID, mode os.FileMode) error
- func (f *FileDescriptors) Flock(fd FID, action LockAction) error
- func (f *FileDescriptors) Fstat(fd FID) (os.FileInfo, error)
- func (f *FileDescriptors) Fsync(fd FID) error
- func (f *FileDescriptors) Lstat(path string) (os.FileInfo, error)
- func (f *FileDescriptors) Mkdir(path string, mode os.FileMode) error
- func (f *FileDescriptors) MkdirAll(path string, mode os.FileMode) error
- func (f *FileDescriptors) Open(path string, flags int, mode os.FileMode) (fd FID, err error)
- func (f *FileDescriptors) Pipe() [2]FID
- func (f *FileDescriptors) RawFID(fid FID) (io.Reader, error)
- func (f *FileDescriptors) RawFIDs() []io.Reader
- func (f *FileDescriptors) Read(fd FID, buffer blob.Blob, offset, length int, position *int64) (n int, err error)
- func (f *FileDescriptors) ReadDir(path string) ([]hackpadfs.DirEntry, error)
- func (f *FileDescriptors) ReadFile(path string) (blob.Blob, error)
- func (f *FileDescriptors) RemoveDir(path string) error
- func (f *FileDescriptors) Rename(oldPath, newPath string) error
- func (f *FileDescriptors) Stat(path string) (os.FileInfo, error)
- func (f *FileDescriptors) String() string
- func (f *FileDescriptors) Truncate(fd FID, length int64) error
- func (f *FileDescriptors) Unlink(path string) error
- func (f *FileDescriptors) Utimes(path string, atime, mtime time.Time) error
- func (f *FileDescriptors) WorkingDirectory() string
- func (f *FileDescriptors) Write(fd FID, buffer blob.Blob, offset, length int, position *int64) (n int, err error)
- type LockAction
- type ShouldCacher
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotDir = interop.NewError("not a directory", "ENOTDIR")
)
Functions ¶
func DestroyMount ¶
func NewFileDescriptor ¶
func OverlayTarGzip ¶
func OverlayTarGzip(mountPath string, gzipReader io.ReadCloser, persist bool, shouldCache ShouldCacher) error
Types ¶
type Attr ¶
Attr defines file descriptor inheritance rules for a new set of descriptors Ignore is unsupported. Pipe will create a new pipe and attach it to the child process. FID will inherit that descriptor in the child process.
type FileDescriptors ¶
type FileDescriptors struct {
// contains filtered or unexported fields
}
func NewFileDescriptors ¶
func NewFileDescriptors(parentPID common.PID, workingDirectory string, parentFiles *FileDescriptors, inheritFDs []Attr) (*FileDescriptors, func(wd string) error, error)
func NewStdFileDescriptors ¶
func NewStdFileDescriptors(parentPID common.PID, workingDirectory string) (*FileDescriptors, error)
func (*FileDescriptors) Chmod ¶
func (f *FileDescriptors) Chmod(path string, mode os.FileMode) error
func (*FileDescriptors) Close ¶
func (f *FileDescriptors) Close(fd FID) error
func (*FileDescriptors) CloseAll ¶
func (f *FileDescriptors) CloseAll()
func (*FileDescriptors) Flock ¶
func (f *FileDescriptors) Flock(fd FID, action LockAction) error
func (*FileDescriptors) Fsync ¶
func (f *FileDescriptors) Fsync(fd FID) error
func (*FileDescriptors) Mkdir ¶
func (f *FileDescriptors) Mkdir(path string, mode os.FileMode) error
func (*FileDescriptors) MkdirAll ¶
func (f *FileDescriptors) MkdirAll(path string, mode os.FileMode) error
func (*FileDescriptors) Pipe ¶
func (f *FileDescriptors) Pipe() [2]FID
func (*FileDescriptors) RawFIDs ¶
func (f *FileDescriptors) RawFIDs() []io.Reader
func (*FileDescriptors) ReadDir ¶
func (f *FileDescriptors) ReadDir(path string) ([]hackpadfs.DirEntry, error)
func (*FileDescriptors) ReadFile ¶
func (f *FileDescriptors) ReadFile(path string) (blob.Blob, error)
func (*FileDescriptors) RemoveDir ¶
func (f *FileDescriptors) RemoveDir(path string) error
func (*FileDescriptors) Rename ¶
func (f *FileDescriptors) Rename(oldPath, newPath string) error
func (*FileDescriptors) String ¶
func (f *FileDescriptors) String() string
func (*FileDescriptors) Unlink ¶
func (f *FileDescriptors) Unlink(path string) error
func (*FileDescriptors) Utimes ¶
func (f *FileDescriptors) Utimes(path string, atime, mtime time.Time) error
func (*FileDescriptors) WorkingDirectory ¶
func (f *FileDescriptors) WorkingDirectory() string
Click to show internal directories.
Click to hide internal directories.