Help us shape the future of Go! Take the 2026 Go Developer Survey

controlplane

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: AGPL-3.0 Imports: 72 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.

Source Files

Jump to

Keyboard shortcuts

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