staticfs

package
v0.0.0-...-2745715 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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, fn filepath.WalkFunc) 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, fn filepath.WalkFunc) error

Jump to

Keyboard shortcuts

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