staticfs

package
v0.14.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

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() *FS

func (*FS) Add

func (fs *FS) Add(p string, stat types.Stat, data []byte)

func (*FS) Open

func (fs *FS) Open(p string) (io.ReadCloser, error)

func (*FS) Walk

func (fs *FS) Walk(ctx context.Context, target string, fn fs.WalkDirFunc) error

type File

type File struct {
	Stat types.Stat
	Data []byte
}

type MergeFS

type MergeFS struct {
	Lower fsutil.FS
	Upper fsutil.FS
}

func NewMergeFS

func NewMergeFS(lower, upper fsutil.FS) *MergeFS

func (*MergeFS) Open

func (mfs *MergeFS) Open(p string) (io.ReadCloser, error)

func (*MergeFS) Walk

func (mfs *MergeFS) Walk(ctx context.Context, target string, fn fs.WalkDirFunc) error

Jump to

Keyboard shortcuts

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