code wiki / (root) / nx_hr_admin.nx

nx_hr_admin.nx

buildroot/runtime/nx_hr_admin.nx

3127 B42 linesdepth 11pulls 21 transitivereach 28 importersview sourcekind librarytopic hr
docsdependenciesstructsconstsfunctions

about

nx_hr_admin.nx -- CUTOVER (operator: "drive the cutover" off TSV): now a THIN COMPAT-SHIM that delegates the hra_* API to nx_hr_sov (the sovereign nx_seg_store + canon HR directory). The API is byte-stable, so the daemons, nx_hr_entitle, nx_hr_access, the provisioner, and every gate keep their CALLS -- only the STORAGE is now sovereign (no tsv [[feedback-no-3rd-party-tsv-sovereign-store]]). The `store` param is now a seg_store PREFIX. The BASE nx_hr (TAB-log) is LEFT untouched for torrent (nx_torrent_authn uses hr_resolve_level directly) -> NO sibling breakage. seg_store auto-derives a unique commit id from the record content, so the hra_* API needs no segid (true drop-in).

dependencies 2 imports · 17 importers

nx_hr_sov.nx nx_syscalls.nx nx_hr_admin.nx nx_account_admin_exceed_gate.nx nx_gen_gateway_daemon.nx nx_gen_gateway_gate.nx nx_gen_live_probe.nx nx_hr_access.nx nx_hr_access_gate.nx nx_hr_admin_gate.nx nx_hr_admin_page_gate.nx nx_hr_audit_gate.nx nx_hr_entitle.nx

diagram shows first 10 each side; +0 more imports, +7 more importers in the complete lists below.

imports: nx_hr_sov.nxnx_syscalls.nx

imported by: nx_account_admin_exceed_gate.nxnx_gen_gateway_daemon.nxnx_gen_gateway_gate.nxnx_gen_live_probe.nxnx_hr_access.nxnx_hr_access_gate.nxnx_hr_admin_gate.nxnx_hr_admin_page_gate.nxnx_hr_audit_gate.nxnx_hr_entitle.nxnx_hr_entitle_gate.nxnx_hr_provision_roster.nxnx_lan_signup.nxnx_lan_signup_gate.nxnx_lan_signup_routes.nxnx_lan_signup_socket_gate.nxnx_realm_multi_gate.nx

structs

none

consts

10const HRA_LVL_OWNER: i64 = 3
11const HRA_LVL_MEMBER: i64 = 1
12const HRA_LVL_NONE: i64 = 0
13const HRA_ST_NONE: i64 = 0
14const HRA_ST_ACTIVE: i64 = 1
15const HRA_ST_SUSPENDED: i64 = 2
16const HRA_ST_INVITED: i64 = 3

functions

19func hra_enroll(store: *u8, realm: *u8, realm_n: i64, handle: *u8, hn: i64, level: i64, family: *u8, ts: i64, actor: *u8, out_cid: *u8) -> i64
called by 10: mainmainmainmainmainmain+4 calls 1: hrs_enroll
23func hra_invite(store: *u8, realm: *u8, realm_n: i64, handle: *u8, hn: i64, level: i64, family: *u8, ts: i64, actor: *u8, out_cid: *u8) -> i64
called by 9: mainmainmainmainmainmain+3 calls 1: hrs_invite
27func hra_claim(store: *u8, realm: *u8, realm_n: i64, handle: *u8, hn: i64, family: *u8, ts: i64, actor: *u8) -> i64
called by 4: mainmainmainlsd_route calls 1: hrs_claim
31func hra_suspend(store: *u8, realm: *u8, realm_n: i64, handle: *u8, hn: i64, family: *u8, ts: i64, actor: *u8) -> i64
36func hra_resolve_level(store: *u8, cred_id: *u8, cidlen: i64) -> i64 { return hrs_resolve_level(store, cred_id) }
38func hra_is_invited(store: *u8, realm: *u8, realm_n: i64, handle: *u8, hn: i64) -> i64 { return hrs_is_invited(store, realm, realm_n, handle, hn) }
40func hra_is_superadmin(store: *u8, cred_id: *u8, cidlen: i64) -> i64 { return hrs_is_superadmin(store, cred_id) }
42func hra_roster_count(store: *u8, want_status: i64) -> i64 { return hrs_roster_count(store, want_status) }
called by 2: mainmain calls 1: hrs_roster_count