Documentation
¶
Overview ¶
Package packages validates, resolves and verifies ext.io/v1 manifests (packagekit) with the plugin engine: on the shared C engine when built with the ext_cengine tag and cgo, otherwise in pure Go. It is separate from the root cgoengine package so a program that only needs sessions and guests does not pull in packagekit and its dependencies.
Index ¶
- func ResolvePackages(manifests []packagekit.Manifest) (packagekit.Plan, error)
- func ResolvePackagesFor(manifests []packagekit.Manifest, os, arch string) (packagekit.Plan, error)
- func SelectEntrypoint(m packagekit.Manifest, name string, env packagekit.Environment) (packagekit.LaunchSelection, error)
- func ValidateManifest(m packagekit.Manifest) error
- func VerifyArtifacts(m packagekit.Manifest, root string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolvePackages ¶
func ResolvePackages(manifests []packagekit.Manifest) (packagekit.Plan, error)
ResolvePackages orders manifests provider-before-consumer, requiring unique exact providers and rejecting cycles. It neither executes nor grants access.
func ResolvePackagesFor ¶
ResolvePackagesFor resolves requirements for an explicit operating system and architecture.
func SelectEntrypoint ¶
func SelectEntrypoint(m packagekit.Manifest, name string, env packagekit.Environment) (packagekit.LaunchSelection, error)
SelectEntrypoint chooses the named entrypoint for the environment.
func ValidateManifest ¶
func ValidateManifest(m packagekit.Manifest) error
ValidateManifest reports whether m is a valid ext.io/v1 manifest.
func VerifyArtifacts ¶
VerifyArtifacts checks the manifest and the files it lists under root. The application must protect reviewed files against modification and separately establish trust.
Types ¶
This section is empty.