spakg

package
v0.0.0-...-a4c085a Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2015 License: GPL-2.0, GPL-3.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ControlName    = "pkg.control"
	PkginfoName    = "pkginfo.txt"
	TemplateName   = "pkg.template"
	Md5sumsName    = "md5sums.txt"
	PkgInstallName = "pkginstall.sh"
	FsName         = "fs.tar"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Spakg

type Spakg struct {
	Pkginfo    pkginfo.PkgInfo
	Control    control.Control
	Md5sums    hash.HashList
	Pkginstall string
	Template   string
}

func FromFile

func FromFile(filename string, tarname *string) (s *Spakg, err error)

func FromReader

func FromReader(reader io.Reader, tarname *string) (*Spakg, error)

func (*Spakg) ToFile

func (s *Spakg) ToFile(filename string, fsReader io.Reader) (err error)

func (*Spakg) ToWriter

func (s *Spakg) ToWriter(writer io.Writer, fsReader io.Reader) (err error)

Jump to

Keyboard shortcuts

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