cfxdb.globalschema¶
Classes¶
User activations ( |
|
Global (master node wide) database schema. |
|
Index of activation tokes by user authid and pubkey ( |
|
Index of management realms by name ( |
|
Index of nodes by management realm and node authid ( |
|
Index of nodes by node public key ( |
|
Index of organizations by name ( |
|
Index of users by email address ( |
|
Index of users by name ( |
|
Index of users by pubkey ( |
|
Management realm database configuration object ( |
|
Nodes paired with management realms ( |
|
Organizations defined in this domain / master node ( |
|
Usage metering records ( |
|
User roles on management realms ( |
|
Users registered in this domain / master node ( |
Module Contents¶
- class ActivationTokens(slot=None, compress=None, marshal=None, unmarshal=None)[source]¶
Bases:
zlmdb.MapUuidCborUser activations (
activation_oid -> activation).
- class GlobalSchema(db)[source]¶
Bases:
objectGlobal (master node wide) database schema.
- activation_tokens: ActivationTokens[source]¶
User activation tokens.
Database table
cfxdb.globalschema.ActivationTokens
- static attach(db: zlmdb.Database) object[source]¶
Factory to create a schema from attaching to a database. The schema tables will be automatically mapped as persistant maps and attached to the database slots.
- Parameters:
db – Database to which to attach this schema.
- Returns:
Open database handle with attached schema, an instance of
GlobalSchema.
- idx_act_tokens_by_authid_pubkey: IndexActivationTokensByAuthidPubkey[source]¶
Index on user activation tokens (by authid, pubkey).
Database table
cfxdb.globalschema.IndexActivationTokensByAuthidPubkey
- idx_mrealms_by_name: IndexManagementRealmByName[source]¶
Index on management realms (by name).
Database table
cfxdb.globalschema.IndexManagementRealmByName
- idx_nodes_by_authid: IndexNodesByAuthid[source]¶
Index on nodes (by authid).
Database table
cfxdb.globalschema.IndexNodesByAuthid
- idx_nodes_by_pubkey: IndexNodesByPubkey[source]¶
Index on nodes (by pubkey).
Database table
cfxdb.globalschema.IndexNodesByPubkey
- idx_organizations_by_name: IndexOrganizationsByName[source]¶
Index on organizations (by name).
Database table
cfxdb.globalschema.IndexOrganizationsByName
- idx_users_by_email: IndexUsersByEmail[source]¶
Index on users (by email).
Database table
cfxdb.globalschema.IndexUsersByEmail
- idx_users_by_pubkey: IndexUsersByPubkey[source]¶
Index on users (by pubkey).
Database table
cfxdb.globalschema.IndexUsersByPubkey
- mrealms: ManagementRealms[source]¶
Management realms.
Database table
cfxdb.globalschema.ManagementRealms
- nodes: Nodes[source]¶
Nodes.
Database table
cfxdb.globalschema.Nodes
- organizations: Organizations[source]¶
Organizations.
Database table
cfxdb.globalschema.Organizations
- usage: UsageRecords[source]¶
Usage metering records (by timestamp).
Database table
cfxdb.globalschema.UsageRecords
- users: Users[source]¶
Users.
Database table
cfxdb.globalschema.Users
- users_mrealm_roles: UserMrealmRoles[source]¶
User roles map (by mrealm_oid, user_oid to UserRoles).
Database table
cfxdb.globalschema.UserMrealmRoles
- class IndexActivationTokensByAuthidPubkey(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapStringUuidIndex of activation tokes by user authid and pubkey (
(user_authid, user_pubkey) -> activation_oid).
- class IndexManagementRealmByName(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapStringUuidIndex of management realms by name (
mrealm_name -> mrealm_oid).
- class IndexNodesByAuthid(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapUuidStringUuidIndex of nodes by management realm and node authid (
(mrealm_oid, authid) -> node_oid).
- class IndexNodesByPubkey(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapStringUuidIndex of nodes by node public key (
node_pubkey -> node_oid).
- class IndexOrganizationsByName(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapStringUuidIndex of organizations by name (
organization_name -> organization_oid).
- class IndexUsersByEmail(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapStringUuidIndex of users by email address (
user_email -> user_oid).
- class IndexUsersByName(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapStringUuidIndex of users by name (
user_name -> user_oid).
- class IndexUsersByPubkey(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapStringUuidIndex of users by pubkey (
user_pubkey -> user_oid).
- class ManagementRealms(slot=None, compress=None, marshal=None, unmarshal=None)[source]¶
Bases:
zlmdb.MapUuidCborManagement realm database configuration object (
oid -> mrealm).
- class Nodes(slot=None, compress=None, marshal=None, unmarshal=None)[source]¶
Bases:
zlmdb.MapUuidCborNodes paired with management realms (
node_oid -> node).
- class Organizations(slot=None, compress=None, marshal=None, unmarshal=None)[source]¶
Bases:
zlmdb.MapUuidCborOrganizations defined in this domain / master node (
organization_oid -> organization).
- class UsageRecords(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
zlmdb.MapTimestampUuidFlatBuffersUsage metering records (
(timestamp, usage_oid) -> usage_record).
- class UserMrealmRoles(slot=None, compress=None, marshal=None, unmarshal=None)[source]¶
Bases:
zlmdb.MapUuidUuidCborUser roles on management realms (
(mrealm_oid, role_oid) -> role).
- class Users(slot=None, compress=None, marshal=None, unmarshal=None)[source]¶
Bases:
zlmdb.MapUuidCborUsers registered in this domain / master node (
user_oid -> user).