fs

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Virtual

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

func NewVirtualFs

func NewVirtualFs(ctx context.Context) *Virtual

func (*Virtual) Open

func (v *Virtual) Open(name string) (fs.File, error)

type VirtualFile

type VirtualFile struct {
	Remaining []byte
	Loaded    bool
	// contains filtered or unexported fields
}

func (*VirtualFile) Close

func (v *VirtualFile) Close() error

func (*VirtualFile) Read

func (v *VirtualFile) Read(bytes []byte) (sent int, err error)

func (*VirtualFile) Stat

func (v *VirtualFile) Stat() (fs.FileInfo, error)

func (*VirtualFile) Write

func (v *VirtualFile) Write(bytes []byte) (sent int, err error)

type VirtualFileInfo

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

func NewVirtualFileInfo

func NewVirtualFileInfo(name string, size int64) *VirtualFileInfo

func (VirtualFileInfo) IsDir

func (v VirtualFileInfo) IsDir() bool

func (VirtualFileInfo) ModTime

func (v VirtualFileInfo) ModTime() time.Time

func (VirtualFileInfo) Mode

func (v VirtualFileInfo) Mode() fs.FileMode

func (VirtualFileInfo) Name

func (v VirtualFileInfo) Name() string

func (VirtualFileInfo) Size

func (v VirtualFileInfo) Size() int64

func (VirtualFileInfo) Sys

func (v VirtualFileInfo) Sys() any

Jump to

Keyboard shortcuts

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