Documentation
¶
Overview ¶
Package bootx owns framework-level startup validation.
It is intentionally small for now: Kernel services can use it before server startup to fail fast on topology/policy mismatches instead of letting each business component rediscover the same production rules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateGovernance ¶
func ValidateGovernance(cfg GovernanceConfig) error
ValidateGovernance fails fast when Kernel governance contracts are inconsistent with runtime topology or missing required providers.
Types ¶
type Deployment ¶
type Deployment struct {
Replicas int
}
Deployment describes the runtime topology known at startup.
type GovernanceConfig ¶
type GovernanceConfig struct {
Deployment Deployment
ServerLimits []ratelimitx.Policy
Downstreams []clientpolicyx.DownstreamPolicy
AuthnRequired bool
AuthnConfigured bool
AuthzRequired bool
AuthzConfigured bool
AuditRequired bool
AuditConfigured bool
}
GovernanceConfig contains the policy slices bootx can validate before serving traffic.
Click to show internal directories.
Click to hide internal directories.