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) 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
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) 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 WithProvider ¶
WithProvider registers a named infrastructure provider.
Click to show internal directories.
Click to hide internal directories.