controlcore

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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