Documentation ¶ Index ¶ func GetTarballReader(gzipStream io.Reader) (*tar.Reader, error) type Archive type File type Tarball func NewTarballService() *Tarball func (t *Tarball) Create(out io.Writer, files []*File) error func (t *Tarball) Extract(in io.Reader) ([]*File, error) 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) Source Files ¶ View all Source files archive.go tarball.go Click to show internal directories. Click to hide internal directories.