cells/

directory
v0.0.0-...-1779528 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: MIT

Directories

Path Synopsis
Package accesscore implements the accesscore Cell: identity management, session lifecycle (login/refresh/logout/validate), RBAC authorization, and role queries.
Package accesscore implements the accesscore Cell: identity management, session lifecycle (login/refresh/logout/validate), RBAC authorization, and role queries.
configgetter
Package configgetter wires accesscore ConfigGetter adapters.
Package configgetter wires accesscore ConfigGetter adapters.
internal/adapters/http
Package http provides HTTP adapter implementations for accesscore's outbound cross-cell calls.
Package http provides HTTP adapter implementations for accesscore's outbound cross-cell calls.
internal/adapters/postgres
Package postgres provides cell-private PostgreSQL implementations of the accesscore port interfaces.
Package postgres provides cell-private PostgreSQL implementations of the accesscore port interfaces.
internal/adminprovision
Package adminprovision encapsulates the idempotent, race-safe "bring the first admin into existence" domain logic shared by two consumers:
Package adminprovision encapsulates the idempotent, race-safe "bring the first admin into existence" domain logic shared by two consumers:
internal/domain
Package domain contains the accesscore Cell domain models.
Package domain contains the accesscore Cell domain models.
internal/dto
Package dto contains accesscore's local typed views of cross-cell event payloads.
Package dto contains accesscore's local typed views of cross-cell event payloads.
internal/mem
Package mem provides in-memory repository implementations for accesscore.
Package mem provides in-memory repository implementations for accesscore.
internal/ports
Package ports defines accesscore's outbound dependency interfaces.
Package ports defines accesscore's outbound dependency interfaces.
internal/sessionmint
Package sessionmint centralizes access-JWT issuance so that login, IssueForUser (change-password flow), and refresh share a single fail-closed "fetch roles → sign access" pipeline.
Package sessionmint centralizes access-JWT issuance so that login, IssueForUser (change-password flow), and refresh share a single fail-closed "fetch roles → sign access" pipeline.
internal/testutil
Package testutil provides shared test fixtures for cells/accesscore tests.
Package testutil provides shared test fixtures for cells/accesscore tests.
postgres
Package postgres exposes accesscore-owned PostgreSQL repository factories to composition roots while keeping the concrete implementations inside the cell's internal adapter tree.
Package postgres exposes accesscore-owned PostgreSQL repository factories to composition roots while keeping the concrete implementations inside the cell's internal adapter tree.
slices/authorizationdecide
Package authorizationdecide implements the authorization-decide slice: RBAC-based authorization decisions.
Package authorizationdecide implements the authorization-decide slice: RBAC-based authorization decisions.
slices/configreceive
Package configreceive implements the config-receive slice: consumes config state-sync events from configcore.
Package configreceive implements the config-receive slice: consumes config state-sync events from configcore.
slices/identitymanage
Package identitymanage implements the identity-manage slice: CRUD + Lock/Unlock user accounts.
Package identitymanage implements the identity-manage slice: CRUD + Lock/Unlock user accounts.
slices/rbaccheck
Package rbaccheck implements the rbac-check slice: HasRole / ListRoles queries for a given user.
Package rbaccheck implements the rbac-check slice: HasRole / ListRoles queries for a given user.
slices/sessionlogin
Package sessionlogin implements the session-login slice: password-based login with JWT access token and opaque refresh token issuance.
Package sessionlogin implements the session-login slice: password-based login with JWT access token and opaque refresh token issuance.
slices/sessionlogout
Package sessionlogout implements the session-logout slice: revokes sessions and publishes revocation events.
Package sessionlogout implements the session-logout slice: revokes sessions and publishes revocation events.
slices/sessionrefresh
Package sessionrefresh implements the session-refresh slice: validates an opaque refresh token via refresh.Store and issues a fresh access JWT.
Package sessionrefresh implements the session-refresh slice: validates an opaque refresh token via refresh.Store and issues a fresh access JWT.
slices/sessionvalidate
Package sessionvalidate implements the session-validate slice: verifies access tokens and returns Claims.
Package sessionvalidate implements the session-validate slice: verifies access tokens and returns Claims.
slices/setup
Package setup implements the interactive first-run admin provisioning slice.
Package setup implements the interactive first-run admin provisioning slice.
Package auditcore implements the auditcore Cell: tamper-evident audit log with hash chain (via runtime/audit/ledger framework), event consumption, and query.
Package auditcore implements the auditcore Cell: tamper-evident audit log with hash chain (via runtime/audit/ledger framework), event consumption, and query.
internal/appender
Package appender is the single-source implementation of the auditcore audit-append behavior, shared by the four slice packages auditappend{user,config,session,role}.
Package appender is the single-source implementation of the auditcore audit-append behavior, shared by the four slice packages auditappend{user,config,session,role}.
internal/dto
Package dto holds typed payload structs for auditcore event contracts.
Package dto holds typed payload structs for auditcore event contracts.
slices/auditappendconfig
Package auditappendconfig is the audit-append-config slice: it consumes config-change events and appends them to the audit ledger.
Package auditappendconfig is the audit-append-config slice: it consumes config-change events and appends them to the audit ledger.
slices/auditappendrole
Package auditappendrole is the audit-append-role slice: it consumes role assignment events and appends them to the audit ledger.
Package auditappendrole is the audit-append-role slice: it consumes role assignment events and appends them to the audit ledger.
slices/auditappendsession
Package auditappendsession is the audit-append-session slice: it consumes session lifecycle events and appends them to the audit ledger.
Package auditappendsession is the audit-append-session slice: it consumes session lifecycle events and appends them to the audit ledger.
slices/auditappenduser
Package auditappenduser is the audit-append-user slice: it consumes user lifecycle events and appends them to the audit ledger.
Package auditappenduser is the audit-append-user slice: it consumes user lifecycle events and appends them to the audit ledger.
slices/auditquery
Package auditquery implements the audit-query slice: query audit entries via HTTP using ledger.Store.
Package auditquery implements the audit-query slice: query audit entries via HTTP using ledger.Store.
Package configcore implements the configcore Cell: configuration management with versioning, publishing, rollback, and feature flag evaluation.
Package configcore implements the configcore Cell: configuration management with versioning, publishing, rollback, and feature flag evaluation.
internal/adapters/postgres
Package postgres provides a PostgreSQL implementation of configcore ports.
Package postgres provides a PostgreSQL implementation of configcore ports.
internal/crypto
Package crypto provides configcore-specific crypto helpers.
Package crypto provides configcore-specific crypto helpers.
internal/domain
Package domain contains the configcore Cell domain models.
Package domain contains the configcore Cell domain models.
internal/dto
Package dto provides shared handler-level data transfer objects for configcore.
Package dto provides shared handler-level data transfer objects for configcore.
internal/events
Package events defines configcore's internal event wire payloads and decoders.
Package events defines configcore's internal event wire payloads and decoders.
internal/mem
Package mem provides in-memory repository implementations for configcore.
Package mem provides in-memory repository implementations for configcore.
internal/ports
Package ports defines the driven-side interfaces for configcore.
Package ports defines the driven-side interfaces for configcore.
internal/testutil
Package testutil provides test doubles and helpers scoped to the configcore cell.
Package testutil provides test doubles and helpers scoped to the configcore cell.
postgres
Package postgres wires PostgreSQL-backed repositories for configcore.
Package postgres wires PostgreSQL-backed repositories for configcore.
slices/configpublish
Package configpublish — PublishFailureMode type.
Package configpublish — PublishFailureMode type.
slices/configread
Package configread implements the config-read slice: Get/List config entries.
Package configread implements the config-read slice: Get/List config entries.
slices/configsubscribe
Package configsubscribe implements the config-subscribe slice: consumes config state-sync events to update a local version-tracking cache.
Package configsubscribe implements the config-subscribe slice: consumes config state-sync events to update a local version-tracking cache.
slices/configwrite
Package configwrite implements the config-write slice: Create/Update/Delete config entries with event publishing.
Package configwrite implements the config-write slice: Create/Update/Delete config entries with event publishing.
slices/featureflag
Package featureflag implements the feature-flag slice: Get/Evaluate feature flags.
Package featureflag implements the feature-flag slice: Get/Evaluate feature flags.
slices/flagwrite
Package flagwrite implements the flag-write slice: Create/Update/Delete/Toggle feature flags with transactional repo writes (L1 consistency).
Package flagwrite implements the flag-write slice: Create/Update/Delete/Toggle feature flags with transactional repo writes (L1 consistency).
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL