manual

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package manual implements RuntimeAdapter for environments where the platform cannot manage containers automatically (no Docker socket, no k8s API). Deploy() returns a human-readable instruction instead of actually running anything. The operator runs the command manually and clicks Confirm in the UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAddrsFromEnv

func ParseAddrsFromEnv() map[string]string

ParseAddrsFromEnv reads PLUGIN_{PLUGIN_ID}_ADDR environment variables. Plugin IDs are normalised: "idp-auth0" → "IDP_AUTH0".

Types

type ManualInstruction

type ManualInstruction struct {
	Command string
}

ManualInstruction is returned (wrapped in an error) by Deploy when the manual runtime is active. HTTP handlers detect this type and return a 202 Accepted with the instruction text.

func (*ManualInstruction) Error

func (m *ManualInstruction) Error() string

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

Runtime implements runtime.RuntimeAdapter for the manual deployment mode.

func New

func New(addrs map[string]string) *Runtime

New creates a ManualRuntime. addrs is a map of plugin-id → "host:port" for plugins already running in the environment.

func (*Runtime) Deploy

func (r *Runtime) Deploy(_ context.Context, spec runtime.ContainerSpec) error

Deploy returns a ManualInstruction error so the HTTP handler can present the docker run command to the operator.

func (*Runtime) Endpoint

func (r *Runtime) Endpoint(_ context.Context, id string, port int) (string, error)

func (*Runtime) Logs

func (r *Runtime) Logs(_ context.Context, _ string, _ int) ([]string, error)

func (*Runtime) Remove

func (r *Runtime) Remove(_ context.Context, _ string) error

func (*Runtime) Start

func (r *Runtime) Start(_ context.Context, _ string) error

func (*Runtime) Status

func (*Runtime) Stop

func (r *Runtime) Stop(_ context.Context, _ string) error

Jump to

Keyboard shortcuts

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