tcpfs

package
v0.0.0-...-f6eb2df Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReadWriter

type FileReadWriter struct {
	// contains filtered or unexported fields
}

func (FileReadWriter) Close

func (f FileReadWriter) Close() error

func (FileReadWriter) Name

func (f FileReadWriter) Name() string

func (FileReadWriter) Read

func (f FileReadWriter) Read(p []byte) (int, error)

func (FileReadWriter) ReadAt

func (f FileReadWriter) ReadAt(p []byte, off int64) (n int, err error)

func (FileReadWriter) Seek

func (f FileReadWriter) Seek(offset int64, whence int) (n int64, err error)

func (FileReadWriter) Stat

func (f FileReadWriter) Stat() (os.FileInfo, error)

func (FileReadWriter) Sync

func (f FileReadWriter) Sync() error

func (FileReadWriter) Truncate

func (f FileReadWriter) Truncate(size int64) (err error)

func (FileReadWriter) Write

func (f FileReadWriter) Write(p []byte) (int, error)

type TcpFS

type TcpFS struct {
}

TODO: Automatically clean up file handles on close

func Create

func Create() (TcpFS, error)

func (TcpFS) Lstat

func (f TcpFS) Lstat(name string) (os.FileInfo, error)

func (TcpFS) Mkdir

func (f TcpFS) Mkdir(name string, perm os.FileMode) error

func (TcpFS) OpenFile

func (f TcpFS) OpenFile(name string, flag int, perm os.FileMode) (vfs.File, error)

func (TcpFS) PathSeparator

func (f TcpFS) PathSeparator() uint8

func (TcpFS) ReadDir

func (f TcpFS) ReadDir(path string) ([]os.FileInfo, error)

func (TcpFS) Remove

func (f TcpFS) Remove(name string) error

func (TcpFS) Rename

func (f TcpFS) Rename(oldpath, newpath string) error

func (TcpFS) Stat

func (f TcpFS) Stat(name string) (os.FileInfo, error)

func (TcpFS) Unmount

func (f TcpFS) Unmount() error

Jump to

Keyboard shortcuts

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