Versions in this module Expand all Collapse all v0 v0.6.1 Sep 7, 2026 v0.6.0 Sep 7, 2026 Changes in this version type Action + const ActionInvoke v0.5.0 Jul 8, 2026 Changes in this version + const SystemUserID + func ContextWithAuth(ctx context.Context, auth AuthContext) context.Context + func ContextWithSystem(ctx context.Context) context.Context + func IsSystemInitiated(ctx context.Context) bool + type Action string + const ActionCreate + const ActionDelete + const ActionStart + const ActionStop + const ActionUpdate + type AuthContext struct + Action Action + Token string + UserID string + func AuthFromContext(ctx context.Context) AuthContext + type AuthorizeRequest struct + Context AuthContext + Task TaskInfo + type AuthorizeResponse struct + Allow bool + Reason string + type DispatchRequest struct + Context AuthContext + Proplet PropletInfo + Task TaskInfo + type DispatchResponse struct + Allow bool + ExtraEnv map[string]string + Reason string + type EnrichRequest struct + Context AuthContext + Task TaskInfo + type EnrichResponse struct + Env map[string]string + ImageURL string + Inputs []string + Priority *int + type Plugin interface + Authorize func(ctx context.Context, req AuthorizeRequest) (AuthorizeResponse, error) + Close func(ctx context.Context) error + Enrich func(ctx context.Context, req EnrichRequest) (EnrichResponse, error) + Name func() string + OnBeforeDispatch func(ctx context.Context, req DispatchRequest) (DispatchResponse, error) + OnBeforePropletSelect func(ctx context.Context, req PropletSelectRequest) (PropletSelectResponse, error) + OnTaskComplete func(ctx context.Context, evt TaskEvent) error + OnTaskStart func(ctx context.Context, evt TaskEvent) error + func LoadWasm(ctx context.Context, name, path string, logger *slog.Logger) (Plugin, error) + type PropletInfo struct + ID string + Location string + Name string + Tags []string + TotalMemoryBytes uint64 + type PropletSelectRequest struct + Context AuthContext + Task TaskInfo + type PropletSelectResponse struct + Allow bool + MinMemoryBytes *uint64 + Reason string + RequiredTags []string + type Registry interface + Close func(ctx context.Context) error + List func() []Plugin + func LoadDirectory(ctx context.Context, dir string, logger *slog.Logger) (Registry, error) + type TaskEvent struct + Error string + Result string + Success bool + Task TaskInfo + type TaskInfo struct + CLIArgs []string + CreatedAt time.Time + Daemon bool + Encrypted bool + Env map[string]string + ID string + ImageURL string + Inputs []string + Kind string + Name string + Priority int + PropletID string + func NewTaskInfo(t task.Task) TaskInfo