instances

package
v0.0.0-...-4afd048 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(m *instance.Manager, assemblies *assembly.Repository, compiler *planner.Compiler) *Handler

func (*Handler) CancelExecution

func (h *Handler) CancelExecution(w http.ResponseWriter, r *http.Request)

CancelExecution stops a running execution at the caller's request.

The status codes distinguish the three outcomes a client has to tell apart. 404 means the instance or execution does not exist and never can be cancelled. 409 means it exists but has already finished, so the cancellation is refused rather than silently ignored -- a client that asked to stop something and is told "ok" must be able to trust that it was still running. 200 confirms the execution was stopped and is now terminal.

func (*Handler) ClearInstances

func (h *Handler) ClearInstances(w http.ResponseWriter, r *http.Request)

func (*Handler) CreateInstance

func (h *Handler) CreateInstance(w http.ResponseWriter, r *http.Request)

func (*Handler) Execute

func (h *Handler) Execute(w http.ResponseWriter, r *http.Request)

func (*Handler) GetExecutionEvents

func (h *Handler) GetExecutionEvents(w http.ResponseWriter, r *http.Request)

func (*Handler) GetExecutionState

func (h *Handler) GetExecutionState(w http.ResponseWriter, r *http.Request)

func (*Handler) GetInstanceByID

func (h *Handler) GetInstanceByID(w http.ResponseWriter, r *http.Request)

func (*Handler) ListExecutions

func (h *Handler) ListExecutions(w http.ResponseWriter, r *http.Request)

func (*Handler) ListInstances

func (h *Handler) ListInstances(w http.ResponseWriter, r *http.Request)

func (*Handler) RemoveInstance

func (h *Handler) RemoveInstance(w http.ResponseWriter, r *http.Request)

func (*Handler) StreamExecutionEvents

func (h *Handler) StreamExecutionEvents(w http.ResponseWriter, r *http.Request)

StreamExecutionEvents exposes the execution's event stream over Server-Sent Events. It replays persisted history (optionally resumed from ?after={event_id}) and then delivers live events as they occur.

Jump to

Keyboard shortcuts

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