memory

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

func New

func New(fileContents map[string][]byte) (*Memory, error)

func (*Memory) Get

func (memory *Memory) Get(ctx context.Context, path string) ([]byte, error)

func (*Memory) ReadDir

func (memory *Memory) ReadDir(ctx context.Context, path string) ([]string, error)

func (*Memory) Stat

func (memory *Memory) Stat(ctx context.Context, path string) (*fs.FileInfo, error)

Jump to

Keyboard shortcuts

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