package staticfs

import "github.com/moby/buildkit/util/staticfs"

Index

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

Source Files

merge.go static.go

Version
v0.11.0
Published
Jan 9, 2023
Platform
js/wasm
Imports
11 packages
Last checked
9 minutes ago

Tools for package owners.