Documentation
¶
Overview ¶
Package app provides the CtrlPlane root orchestrator that wires all subsystems together. It is separated from the root ctrlplane package to avoid import cycles, since domain packages embed ctrlplane.Entity.
Index ¶
- type CtrlPlane
- func (cp *CtrlPlane) Auth() auth.Provider
- func (cp *CtrlPlane) Config() ctrlplane.Config
- func (cp *CtrlPlane) Events() event.Bus
- func (cp *CtrlPlane) Extensions() *plugin.Registry
- func (cp *CtrlPlane) Providers() *provider.Registry
- func (cp *CtrlPlane) Routes() http.Handler
- func (cp *CtrlPlane) Start(ctx context.Context) error
- func (cp *CtrlPlane) Stop(ctx context.Context) error
- func (cp *CtrlPlane) Store() store.Store
- type Option
- func WithAuth(p auth.Provider) Option
- func WithConfig(cfg ctrlplane.Config) Option
- func WithDefaultProvider(name string) Option
- func WithEventBus(b event.Bus) Option
- func WithExtension(ext plugin.Extension) Option
- func WithProvider(name string, p provider.Provider) Option
- func WithStore(s store.Store) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtrlPlane ¶
type CtrlPlane struct {
// Services are the public subsystem interfaces.
Instances instance.Service
Deploys deploy.Service
Health health.Service
Telemetry telemetry.Service
Network network.Service
Secrets secrets.Service
Admin admin.Service
// contains filtered or unexported fields
}
CtrlPlane is the root orchestrator that wires all subsystems together.
func (*CtrlPlane) Extensions ¶ added in v0.0.3
Extensions returns the plugin registry.
func (*CtrlPlane) Routes ¶
Routes returns an http.Handler with all ctrlplane API routes mounted. This is a stub that will be filled in when the api/ package is implemented.
type Option ¶
Option configures a CtrlPlane instance.
func WithDefaultProvider ¶
WithDefaultProvider sets the default provider name.
func WithEventBus ¶
WithEventBus replaces the default in-memory event bus.
func WithExtension ¶ added in v0.0.3
WithExtension registers a plugin extension with the control plane.
func WithProvider ¶
WithProvider registers a named infrastructure provider.