iofs

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: 0BSD Imports: 6 Imported by: 0

Documentation

Overview

Package iofs provides a glue layer between fs.FS and lib9p.FS The resulting file system is readonly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

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

func NewFS

func NewFS(fsys fs.FS) *FS

NewFS converts the fs.FS to FS It can then be used as the lib9p.FS argument for lib9p.NewServer.

func (*FS) IsGroupLeader added in v0.4.0

func (fsys *FS) IsGroupLeader(group, uid string) bool

This function assumes that group and uid both exist and the leader of group has the same name as group itself.

func (*FS) IsGroupMember added in v0.4.0

func (fsys *FS) IsGroupMember(group, uid string) bool

This function assumes that group and uid both exists and only the member of group has the same name as group itself.

func (*FS) OpenFile

func (fsys *FS) OpenFile(name string, flag int) (lib9p.File, error)

type File

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

func (*File) Close

func (f *File) Close() error

func (*File) Read

func (f *File) Read(b []byte) (int, error)

func (*File) ReadDir

func (f *File) ReadDir(n int) ([]fs.DirEntry, error)

func (*File) Stat

func (f *File) Stat() (*lib9p.FileInfo, error)

type QidPool

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

Jump to

Keyboard shortcuts

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