载入中...
搜索中...
未找到
Authority.h
浏览该文件的文档.
74 std::string grant(const std::string& actor, const std::string& scope, const std::string& capability,
77 std::string deny(const std::string& actor, const std::string& scope, const std::string& capability,
87 bool can(const std::string& actor, const std::string& scope, const std::string& capability) const;
89 Decision explain(const std::string& actor, const std::string& scope, const std::string& capability) const;
127 [[nodiscard]] eve::Result<eve::SnapshotEnvelope> snapshot(const eve::SnapshotHashProvider& hashProvider) const;
143 [[nodiscard]] eve::Result<std::string> snapshotEnvelopeJson(const eve::SnapshotHashProvider& hashProvider) const;
191 [[nodiscard]] static eve::script::Borrowed<Store> resolve(AuthorityStoreHandleRef reference) noexcept;
Versioned, integrity-checked persistence envelopes.
Explicit Value/Owned/Borrowed semantics at the Squirrel boundary.
Script module factory for generic authority stores.
Definition Authority.h:176
Module_REG(Authority)
static eve::Result< AuthorityStoreHandleRef > newStore()
Allocates an authority store and returns its ownership reference.
Definition Authority.cpp:395
static bool isStale(AuthorityStoreHandleRef reference) noexcept
Reports whether a store reference is stale for the current module.
Definition Authority.cpp:415
static eve::script::Borrowed< Store > resolve(AuthorityStoreHandleRef reference) noexcept
Resolves a live store as a non-owning observation.
Definition Authority.cpp:400
Non-owning C++ observation with no implicit lifetime extension.
Definition RuntimeRegistry.h:42
Slot/generation registry whose objects are exclusively unique-owned.
Definition RuntimeRegistry.h:359
Definition Authority.cpp:15
std::string effectName(RuleEffect effect)
Returns the stable lowercase name of a rule effect.
Definition Authority.cpp:132
@ Expired
@ Granted
@ Revoked
std::string eventKindName(EventKind kind)
Returns the stable lowercase name of an event kind.
Definition Authority.cpp:133
std::function< Result< ContentId >(std::string_view canonicalInput)> SnapshotHashProvider
Injected content-digest implementation used by snapshots.
Definition Snapshot.h:36
Stable outer format shared by persistence and cross-process snapshots.
Definition Snapshot.h:46
Handle domain for module-owned authority stores.
Definition Authority.h:19
Deterministically sequenced authority lifecycle event.
Definition Authority.h:53
One stable authority rule over an opaque actor and scope.
Definition Authority.h:27
Handle plus owner-lifetime epoch for a non-ECS registry object.
Definition RuntimeRegistry.h:91