extensions

package
v0.0.0-...-2305522 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func NewArtifactHTTPClient() *http.Client

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.

func (*ArtifactReconciler) Run

func (r *ArtifactReconciler) Run(ctx context.Context, interval time.Duration, logError func(string, ...any))

Run owns the retry loop until the host cancels it. Call ReconcileAndLog before advertising readiness when the initial catalog is required.

type DesiredArtifact

type DesiredArtifact struct {
	URL    string `json:"url"`
	SHA256 string `json:"sha256"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL