Documentation
¶
Overview ¶
Package rbac exposes the relational governance decision (component/auth/rbac_governance.go) to the MemQL DSL as builtin capabilities. The DSL governance logic (dsl/rbac/logic.memql) resolves the actor + target ranks from the role catalog and hands them here; this integration performs the rank arithmetic the DSL grammar cannot express and returns the boolean decision.
Epic 1, E1.3 (memql#2071). Pure + DB-free: the handlers take ranks + ids + verb as args, so the integration needs nothing from the engine beyond the plugin context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
Integration is the DSL-callable governance and role-authoring surface.
The governance half is PURE -- rank arithmetic over values the DSL resolved -- and needed nothing from the plugin context. The role builtins (epic memql#5166) write rows and count holders, so the integration now carries the engine and the pooled database handle. Both are optional: a node wired without them serves the governance builtins and refuses the authoring ones with a typed code, which is the honest answer rather than a panic.
func New ¶
func New(engine roleEngine, bunDB func() *bun.DB) *Integration
New constructs the rbac integration. Both arguments may be nil: a node wired without them serves the governance builtins and refuses the authoring ones with a typed code.
func (*Integration) Capabilities ¶
func (i *Integration) Capabilities() []memql.IntegrationCapability
Capabilities returns the governance builtins.
func (*Integration) IntegrationName ¶
func (i *Integration) IntegrationName() string
IntegrationName returns the stable identifier.