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 ¶
- func ParseAddrsFromEnv() map[string]string
- type ManualInstruction
- type Runtime
- func (r *Runtime) Deploy(_ context.Context, spec runtime.ContainerSpec) error
- func (r *Runtime) Endpoint(_ context.Context, id string, port int) (string, error)
- func (r *Runtime) Logs(_ context.Context, _ string, _ int) ([]string, error)
- func (r *Runtime) Remove(_ context.Context, _ string) error
- func (r *Runtime) Start(_ context.Context, _ string) error
- func (r *Runtime) Status(_ context.Context, id string) (runtime.ContainerStatus, error)
- func (r *Runtime) Stop(_ context.Context, _ string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAddrsFromEnv ¶
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 ¶
New creates a ManualRuntime. addrs is a map of plugin-id → "host:port" for plugins already running in the environment.
func (*Runtime) Deploy ¶
Deploy returns a ManualInstruction error so the HTTP handler can present the docker run command to the operator.