载入中...
搜索中...
未找到
Authority.h
浏览该文件的文档.
116 [[nodiscard]] eve::Result<void> revoke(const std::string& id, const std::string& reason = "revoked");
121 [[nodiscard]] int revokeBySource(const std::string& source, const std::string& reason = "source_revoked");
126 [[nodiscard]] int revokeByActor(const std::string& actor, const std::string& reason = "actor_revoked");
131 [[nodiscard]] int revokeByScope(const std::string& scope, const std::string& reason = "scope_revoked");
148 [[nodiscard]] bool can(const std::string& actor, const std::string& scope, const std::string& capability) const;
223 [[nodiscard]] eve::Result<eve::SnapshotEnvelope> snapshot(const eve::SnapshotHashProvider& hashProvider) const;
239 [[nodiscard]] eve::Result<std::string> snapshotEnvelopeJson(const eve::SnapshotHashProvider& hashProvider) const;
251 [[nodiscard]] eve::Result<std::string> add(RuleEffect effect, const std::string& actor, const std::string& scope,
261 [[nodiscard]] static bool ruleMatches(const Rule& rule, const std::string& actor, const std::string& scope,
301 [[nodiscard]] static eve::script::Borrowed<Store> resolve(AuthorityStoreHandleRef reference) noexcept;
Move-only, checked operation results for the common layer.
Versioned, integrity-checked persistence envelopes.
Explicit Value/Owned/Borrowed semantics at the Squirrel boundary.
Script module factory for generic authority stores.
Definition Authority.h:286
Module_REG(Authority)
static eve::Result< void > release(AuthorityStoreHandleRef reference)
Releases a module-owned store.
Definition Authority.cpp:503
static eve::Result< AuthorityStoreHandleRef > newStore()
Allocates an authority store and returns its ownership reference.
Definition Authority.cpp:492
static bool isStale(AuthorityStoreHandleRef reference) noexcept
Reports whether a store reference is stale for the current module.
Definition Authority.cpp:512
static eve::script::Borrowed< Store > resolve(AuthorityStoreHandleRef reference) noexcept
Resolves a live store as a non-owning observation.
Definition Authority.cpp:497
int eventCapacity() const noexcept
Returns the event retention capacity; 0 means unlimited.
Definition Authority.h:192
Non-owning observation of a registry-owned object.
Definition RuntimeBorrow.h:27
Slot/generation registry whose objects are exclusively unique-owned.
Definition RuntimeRegistry.h:292
Definition Authority.cpp:15
std::string effectName(RuleEffect effect)
Returns the stable lowercase name of a rule effect.
Definition Authority.cpp:113
@ Expired
@ Granted
@ Revoked
constexpr std::string_view kWildcard
Opaque field token that matches any actor, scope, or capability.
Definition Authority.h:35
std::string eventKindName(EventKind kind)
Returns the stable lowercase name of an event kind.
Definition Authority.cpp:114
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:22
Deterministically sequenced authority lifecycle event.
Definition Authority.h:64
One stable authority rule over an opaque actor and scope.
Definition Authority.h:38
Handle plus owner-lifetime epoch for a non-ECS registry object.
Definition RuntimeBorrow.h:72