Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlPlane ¶ added in v0.12.7
type ControlPlane struct {
// contains filtered or unexported fields
}
ControlPlane manages the control plane's subprocess startup sequence and health reporting. The /healthz endpoint actively probes all internal service ports — it only returns 200 when every service is responding.
func NewControlPlane ¶ added in v0.12.7
func NewControlPlane() *ControlPlane
NewControlPlane creates a new startup orchestrator. The probes are configured later via SetServiceProbes once TLS config and port values are available.
func (*ControlPlane) HealthzHandler ¶ added in v0.12.7
func (o *ControlPlane) HealthzHandler() http.Handler
HealthzHandler returns an http.Handler for the /healthz endpoint. Returns 200 only when SetReady was called AND all service probes pass. If any service is down, returns 503 with a JSON body.
func (*ControlPlane) IsReady ¶ added in v0.12.7
func (o *ControlPlane) IsReady() bool
IsReady returns whether the CP has completed all startup steps.
func (*ControlPlane) SetReady ¶ added in v0.12.7
func (o *ControlPlane) SetReady()
SetReady marks the CP as ready. Called after all startup steps (subprocesses, eBPF load, gRPC server) have succeeded.
func (*ControlPlane) SetServiceProbes ¶ added in v0.12.7
func (o *ControlPlane) SetServiceProbes(cp config.ControlPlaneSettings, tlsCfg *tls.Config)
SetServiceProbes configures the aggregate health probes from the ControlPlaneSettings. Called during CP startup after TLS config is built. All Ory services use HTTPS; the gRPC admin port is probed via raw TCP (gRPC health check would require a client).
type StatusCode ¶ added in v0.12.7
type StatusCode = int
const ( StatusOk StatusCode = 0 StatusErr StatusCode = 1 )
func Main ¶ added in v0.12.7
func Main() StatusCode