tarfs

package
v0.0.406 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFilesInto

func ReadFilesInto(fsys fnfs.WriteFS, tarStream TarStreamFunc, include HasHasString) ([]string, error)

func TarGunzip

func TarGunzip(contents compute.Computable[bytestream.ByteStream]) compute.Computable[fs.FS]

Types

type FS

type FS struct {
	TarStream TarStreamFunc
}

func (FS) Open

func (l FS) Open(path string) (fs.File, error)

func (FS) ReadDir

func (l FS) ReadDir(dir string) ([]fs.DirEntry, error)

func (FS) VisitFiles

func (l FS) VisitFiles(ctx context.Context, visitor func(string, bytestream.ByteStream, fs.DirEntry) error) error

type HasHasString

type HasHasString interface {
	Match(string) (string, bool)
}

type TarStreamFunc

type TarStreamFunc func() (io.ReadCloser, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳