Documentation
¶
Index ¶
- type ArchiveHeader
- type Metafile
- type PackageArchive
- func (archive *PackageArchive) Deps() ([]ident.Ident, error)
- func (archive *PackageArchive) GetMetadata() map[Metafile]string
- func (archive *PackageArchive) Ident() (ident.Ident, error)
- func (archive *PackageArchive) PkgServices() ([]ident.Ident, error)
- func (archive *PackageArchive) ResolvedServices() ([]ident.Ident, error)
- func (archive *PackageArchive) TDeps() ([]ident.Ident, error)
- func (archive *PackageArchive) Unpack(fsRoot string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveHeader ¶
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 /)
Click to show internal directories.
Click to hide internal directories.