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 ¶
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.