Documentation
¶
Overview ¶
Package extensions reconciles Planner-owned extension desired state with Spinner's role-specific extension hosts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArtifactHTTPClient ¶
NewArtifactHTTPClient uses Ext's verified HTTPS redirect policy, with Gateway's transfer timeout. Planner credentials use a separate client.
func StartArtifactReconciliation ¶
func StartArtifactReconciliation( ctx context.Context, plannerURL, token, storeDir string, plannerClient, artifactClient interface { Do(*http.Request) (*http.Response, error) }, registries Registries, interval time.Duration, logError func(string, ...any), ) error
StartArtifactReconciliation keeps one running host aligned with Planner-owned extension desired state. Reconciliation failures close the affected external extensions and are reported without stopping ingress.
Types ¶
type ArtifactReconciler ¶
type ArtifactReconciler struct {
// contains filtered or unexported fields
}
ArtifactReconciler independently materializes Spinner's entrypoint from Planner-owned extension desired state. It never receives Planner PHP source.
func NewArtifactReconciler ¶
func NewArtifactReconciler( plannerURL, token, storeDir string, plannerClient, artifactClient interface { Do(*http.Request) (*http.Response, error) }, registries Registries, ) (*ArtifactReconciler, error)
func (*ArtifactReconciler) Reconcile ¶
func (r *ArtifactReconciler) Reconcile(ctx context.Context) error
func (*ArtifactReconciler) ReconcileAndLog ¶
func (r *ArtifactReconciler) ReconcileAndLog(ctx context.Context, logError func(string, ...any))
ReconcileAndLog performs one pass, preserving the fail-closed behavior on a temporary Planner error while allowing a later pass to recover.
type DesiredArtifact ¶
type DesiredExtension ¶
type DesiredExtension struct {
Extension string `json:"extension"`
Version string `json:"version"`
Digest string `json:"digest"`
Artifact DesiredArtifact `json:"artifact"`
Configuration json.RawMessage `json:"configuration,omitempty"`
ConfigurationSHA256 string `json:"configuration_sha256"`
Revision int `json:"revision"`
}
type Registries ¶
type Registries struct {
Automation *automationextensions.Registry
Integration *integrationextensions.Registry
}
Registries are the role-specific hosts updated by one desired-state pass. A nil role uses the process default for that role.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package automationextensions provides Spinner's host-side automation plugin registry.
|
Package automationextensions provides Spinner's host-side automation plugin registry. |
|
execution
Package execution selects the local execution mechanism used by Spinner while preserving the driver automation.Executor contract for callers.
|
Package execution selects the local execution mechanism used by Spinner while preserving the driver automation.Executor contract for callers. |
|
Package companionextensions exposes Planner companion actions to portable Spinner plugins through the ext protocol's declared reverse-call interface.
|
Package companionextensions exposes Planner companion actions to portable Spinner plugins through the ext protocol's declared reverse-call interface. |
|
Package integrationextensions hosts installable Spinner integration entrypoints.
|
Package integrationextensions hosts installable Spinner integration entrypoints. |
|
catalog
Package catalog installs explicitly versioned Integration extension executables from a trusted local or HTTPS catalog.
|
Package catalog installs explicitly versioned Integration extension executables from a trusted local or HTTPS catalog. |
|
internal
|
|
|
host
Package host contains package lifecycle helpers shared by Spinner extension hosts.
|
Package host contains package lifecycle helpers shared by Spinner extension hosts. |
|
Package secret provides identity-scoped Planner secret lookup to installed Spinner guests without coupling automation guests to integration hosting.
|
Package secret provides identity-scoped Planner secret lookup to installed Spinner guests without coupling automation guests to integration hosting. |