Documentation
¶
Overview ¶
Package resourcepack plans and applies immutable, parameterized resource configuration packages. It deliberately has no provider or guest-transport dependency: those are supplied by the executor at the application boundary. Compile turns the supported package-manager package into the same inline shell or PowerShell package format used by ordinary manifests.
Index ¶
Constants ¶
const BuiltinPackageManager = "package-manager"
BuiltinPackageManager identifies the declarative package-manager package.
Variables ¶
var ( ErrRegistryRequired = errors.New("resource package registry is required") ErrExecutorRequired = errors.New("resource package executor is required") ErrUnsupportedMethod = errors.New("resource package method is not supported") ErrInvalidManifest = errors.New("resource package manifest is invalid") ErrInvalidPackageScope = errors.New("resource package scope is invalid for event") )
Functions ¶
This section is empty.
Types ¶
type AppliedPackage ¶
type Engine ¶
func (Engine) Validate ¶ added in v0.1.63
Validate resolves and validates a reference graph without producing an executable plan. Servers use it at startup for packages that live in a remote artifact store; the package registry abstraction keeps this check identical to the defensive planner validation performed later.
type Manifest ¶
type Manifest struct {
Name string `json:"name" yaml:"name"`
Version string `json:"version" yaml:"version"`
Builtin string `json:"builtin,omitempty" yaml:"builtin,omitempty"`
Method Method `json:"method" yaml:"method"`
Scopes []Scope `json:"scopes" yaml:"scopes"`
Events []Event `json:"events" yaml:"events"`
Dependencies []string `json:"dependencies,omitempty" yaml:"dependencies,omitempty"`
Defaults map[string]any `json:"defaults,omitempty" yaml:"defaults,omitempty"`
Inputs map[string]any `json:"inputs,omitempty" yaml:"inputs,omitempty"`
}
Manifest is the typed content of a published resource package.
type Plan ¶
type Plan struct {
Target Target
Event Event
Packages []PlannedPackage
}
type PlannedPackage ¶
type Request ¶
type Request struct {
Target Target
Event Event
Scope Scope
References []string
Overrides map[string]any
Applied []AppliedPackage
}
Request describes one lifecycle package application.