controlplane

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: AGPL-3.0 Imports: 79 Imported by: 0

Documentation

Overview

Package controlplane implements the control-plane API service.

Index

Constants

View Source
const ServiceName = "control-plane-api"

ServiceName is the canonical service identifier for the control plane API.

Variables

This section is empty.

Functions

func New

func New(opts ...apptheory.Option) *apptheory.App

New constructs the control plane API app.

func Register

func Register(app *apptheory.App, srv *Server) *apptheory.App

Register registers control plane routes and hooks with an app.

Types

type Server

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

Server implements the control plane API.

func NewServer

func NewServer(cfg config.Config, st *store.Store) *Server

NewServer constructs a new control plane Server.

func (*Server) OperatorAuthHook

func (s *Server) OperatorAuthHook(ctx *apptheory.Context) (string, error)

OperatorAuthHook authenticates an operator request using a bearer token.

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes(app *apptheory.App)

RegisterRoutes registers HTTP routes for the control plane API.

func (*Server) UpdateSoulAgentRegistrationForInstance added in v0.1.3

func (s *Server) UpdateSoulAgentRegistrationForInstance(
	ctx context.Context,
	instanceSlug string,
	requestID string,
	agentID string,
	body []byte,
) (*SoulAgentUpdateRegistrationResult, *apptheory.AppError)

type SoulAgentUpdateRegistrationResult added in v0.1.3

type SoulAgentUpdateRegistrationResult struct {
	Agent   models.SoulAgentIdentity `json:"agent"`
	S3Key   string                   `json:"s3_key,omitempty"`
	Version int                      `json:"version,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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