tarfs

package module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 12 Imported by: 1

README

GoDoc Go CodeQL

tarfs

In-memory http.FileSystem from tar archives.

Usage

LICENSE

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem added in v1.1.1

type FileSystem interface {
	http.FileSystem
	Exists(name string) bool
}

func NewFromBzip2File added in v1.2.1

func NewFromBzip2File(tbz2File string) (FileSystem, error)

NewFromBzip2File returns an http.FileSystem that holds all the files in the tar.bz2, created from file

func NewFromFile

func NewFromFile(tarFile string) (FileSystem, error)

NewFromFile returns an http.FileSystem that holds all the files in the tar, created from file

func NewFromGzipFile added in v1.2.0

func NewFromGzipFile(tgzFile string) (FileSystem, error)

NewFromGzipFile returns an http.FileSystem that holds all the files in the tar.gz, created from file

func NewFromReader

func NewFromReader(reader io.Reader) (FileSystem, error)

NewFromReader returns an http.FileSystem that holds all the files in the tar, created from io.Reader

Directories

Path Synopsis
examples
gin Module

Jump to

Keyboard shortcuts

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