vfs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestEntry

type ManifestEntry struct {
	Name string
	Dir  bool

	Data []byte
}

TODO: use stat info here

type VFS

type VFS struct {
	Dir func(context.Context) string // Get the working directory
	// contains filtered or unexported fields
}

func (*VFS) File

func (v *VFS) File(ctx context.Context, path string) []byte

TODO: not a good enough return

func (*VFS) Manifest

func (v *VFS) Manifest() []*ManifestEntry

XXX: temporary

func (*VFS) MkDir

func (v *VFS) MkDir(ctx context.Context, path string)

func (*VFS) Move

func (v *VFS) Move(ctx context.Context, from, to string) error

func (*VFS) Remove

func (v *VFS) Remove(ctx context.Context, path string)

func (*VFS) Stat

func (v *VFS) Stat(ctx context.Context, path string) (fs.FileInfo, error)

func (*VFS) Write

func (v *VFS) Write(ctx context.Context, name string) io.WriteCloser

Jump to

Keyboard shortcuts

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