Documentation
¶
Overview ¶
Package installer performs end-to-end installs: resolve, fetch, restore objects (RSTLIB/RSTOBJ) or recompile, apply DB migrations in order, validate signatures against the lock, and wire *BNDDIR and the runtime library list.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrationsDir ¶
MigrationsDir returns the cache directory holding a package's fetched migrations.
Types ¶
type DeployOptions ¶
type DeployOptions struct {
CacheDir string // where Install wrote artifacts
LibraryOverride string // force a single target library (e.g. on pub400)
WireLibList bool // ADDLIBLE each deployed library
Logf func(string, ...any)
}
DeployOptions configures deployment of cached artifacts onto an IBM i host.
type HashMismatchError ¶
type HashMismatchError struct {
Package, Version, Want, Got string
}
HashMismatchError is returned when a fetched artifact's digest does not match the lock. Installs abort rather than deploy a tampered or corrupt artifact.
func (*HashMismatchError) Error ¶
func (e *HashMismatchError) Error() string
type Options ¶
type Options struct {
ManifestPath string // path to bindle.json
CacheDir string // where artifacts are written
Update bool // force re-resolve and rewrite the lock
}
Options configures a local install.
type Registry ¶
type Registry interface {
Versions(name string) ([]resolver.Available, error)
Fetch(artifact string) ([]byte, error)
}
Registry is what the installer needs from a registry backend: list versions (for resolution) and fetch artifact bytes.
type Result ¶
type Result struct {
LockPath string
LockWritten bool // true if the lock was (re)generated this run
Fetched []Fetched // artifacts written to the cache
Skipped []string // resolved packages that have no artifact to fetch
}
Result summarizes a local install.
type SignatureMismatchError ¶
type SignatureMismatchError struct {
Package, Want, Got string
}
SignatureMismatchError is returned when a restored service program's signature does not match the lock. Deployment aborts rather than wire a broken binding.
func (*SignatureMismatchError) Error ¶
func (e *SignatureMismatchError) Error() string