Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecisionCode ¶
Types ¶
type ActionRegistry ¶
type ActionRegistry struct {
// contains filtered or unexported fields
}
func ParseActionRegistry ¶
func ParseActionRegistry(raw string) (*ActionRegistry, error)
ParseActionRegistry reads OCTO_OBO_ACTION_SCOPES_JSON. Every OBO Action and its allowed Scopes must be explicitly registered at startup. An empty value creates an empty registry, so non-OBO deployments can start while OBO fails closed until policy is configured.
func (*ActionRegistry) Allows ¶
func (r *ActionRegistry) Allows(action string) bool
func (*ActionRegistry) AllowsScope ¶
func (r *ActionRegistry) AllowsScope(action, scope string) bool
type DBSnapshotReader ¶
DBSnapshotReader performs every mutable identity/authorization read inside one repeatable-read transaction. It does not consult legacy OBO caches.
type DecisionError ¶
func (*DecisionError) Error ¶
func (e *DecisionError) Error() string
func (*DecisionError) Unwrap ¶
func (e *DecisionError) Unwrap() error
type Delegation ¶
type Principal ¶
type Principal struct {
Mode Mode `json:"mode"`
Actor Identity `json:"actor"`
Subject Identity `json:"subject"`
Delegation *Delegation `json:"delegation,omitempty"`
}
type Resolver ¶
type Resolver struct {
Reader SnapshotReader
Registry *ActionRegistry
}
Click to show internal directories.
Click to hide internal directories.