controlcore

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package controlcore opens the control surface's durable state and runtime.

It creates no workspace session. A controller starts empty and gains a session only when a client opens a workspace through the control API.

Index

Constants

View Source
const ServiceName = control.CoreServiceName

ServiceName is the servicepack registration key and log scope.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlCore

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

ControlCore owns the controller's configuration, SQLite state, provider registry, workspace policy, and agent runtime. control-api serves what this service opens.

func New

func New() (*ControlCore, error)

New builds the service through servicepack's generated registration.

func (*ControlCore) Name

func (s *ControlCore) Name() string

func (*ControlCore) Ready

func (s *ControlCore) Ready() <-chan struct{}

Ready closes once the durable store, provider registry, and session registry are open. control-api waits for it, so an auto-starting client never reaches an API whose state is still missing.

func (*ControlCore) Run

func (s *ControlCore) Run(ctx context.Context) (runErr error)

Run opens the controller's state, publishes it for control-api, and holds it until the context ends.

func (*ControlCore) Stop

func (s *ControlCore) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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