memory

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: AGPL-3.0 Imports: 10 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) Join added in v0.65.0

func (memory *Memory) Join(elem ...string) string

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