tarfs

package
v0.0.0-...-96cf19d Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBytesFile

func NewBytesFile(basename string, data []byte) fs.File

data is retained and MUST NOT be modified after NewBytesFile's call.

Types

type FS

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

implements io/fs.FS FS may be accessed concurrently; the resulting files must be accessed synchronously.

func Slurp

func Slurp(r io.Reader) (*FS, error)

Slurp reads a tarball via r and stores all files in-memory. The tarball must only contain regular files. Associated metadata (esp. modtime) is ignored.

func (*FS) Open

func (fsys *FS) Open(name string) (fs.File, error)

Jump to

Keyboard shortcuts

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