procfs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProcFileMode os.FileMode = 0644
)

Variables

This section is empty.

Functions

func NewProcFile

func NewProcFile(path string, content []byte, modTime time.Time) *fs.FileInfo

Types

type InMemFile

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

func (*InMemFile) Close

func (f *InMemFile) Close() error

func (*InMemFile) Read

func (f *InMemFile) Read(p []byte) (n int, err error)

func (*InMemFile) ReadAt

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

func (*InMemFile) Seek

func (f *InMemFile) Seek(offset int64, whence int) (int64, error)

func (*InMemFile) Size

func (f *InMemFile) Size() int64

func (*InMemFile) Write

func (f *InMemFile) Write(p []byte) (n int, err error)

func (*InMemFile) WriteAt

func (f *InMemFile) WriteAt(p []byte, off int64) (n int, err error)

Jump to

Keyboard shortcuts

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