archive

package
v0.0.0-...-93ee572 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveHeader

type ArchiveHeader struct {
	FormatVersion string
	KeyName       string
	HashType      string
	SignatureRaw  string
}

type Metafile

type Metafile int
const (
	CFlags Metafile = iota
	Deps
	TDeps
	Exposes
	Ident
	LdRunPath
	LdFlags
	SvcUser
	Services
	ResolvedServices
	Manifest
	Path
	Target
	Type
	Config
)

func (Metafile) String

func (file Metafile) String() string

type PackageArchive

type PackageArchive struct {
	// contains filtered or unexported fields
}

func New

func New(path string) PackageArchive

New takes a path to a hart file and returns a PackageArchive struct

func (*PackageArchive) Deps

func (archive *PackageArchive) Deps() ([]ident.Ident, error)

Deps returns a list of dependencies for a given archive

func (*PackageArchive) GetMetadata

func (archive *PackageArchive) GetMetadata() map[Metafile]string

GetMetadata returns the metadata files for a given archive This means that each Metafile is a key to the stringified contents of the files

func (*PackageArchive) Ident

func (archive *PackageArchive) Ident() (ident.Ident, error)

Ident returns a package identifier for an archive

func (*PackageArchive) PkgServices

func (archive *PackageArchive) PkgServices() ([]ident.Ident, error)

PkgServices returns a list of services for a given archive

func (*PackageArchive) ResolvedServices

func (archive *PackageArchive) ResolvedServices() ([]ident.Ident, error)

ResolvedServices returns a list of resolved services for a given archive

func (*PackageArchive) TDeps

func (archive *PackageArchive) TDeps() ([]ident.Ident, error)

TDeps returns a list of dependencies for a given archive

func (*PackageArchive) Unpack

func (archive *PackageArchive) Unpack(fsRoot string) error

Unpack takes a package archive and unpacks it into an fsroot (defaults to /)

Jump to

Keyboard shortcuts

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