archive

package
v1.11.24-beta007 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTarballReader

func GetTarballReader(gzipStream io.Reader) (*tar.Reader, error)

Types

type Archive

type Archive interface {
	Create(out io.Writer, files []*File) error
	Extract(in io.Reader) ([]*File, error)
}

type File

type File struct {
	Name    string
	Size    int64
	Mode    int64
	ModTime time.Time
	Data    *bytes.Buffer
}

type Tarball

type Tarball struct{}

func NewTarballService

func NewTarballService() *Tarball

func (*Tarball) Create

func (t *Tarball) Create(out io.Writer, files []*File) error

func (*Tarball) Extract

func (t *Tarball) Extract(in io.Reader) ([]*File, error)

Jump to

Keyboard shortcuts

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