Lines Matching refs:KeystoreDB

736 pub struct KeystoreDB {  struct
829 impl KeystoreDB { impl
3241 fn new_test_db() -> Result<KeystoreDB> { in new_test_db()
3242 let conn = KeystoreDB::make_connection("file::memory:")?; in new_test_db()
3244 let mut db = KeystoreDB { conn, gc: None, perboot: Arc::new(perboot::PerbootDB::new()) }; in new_test_db()
3246 KeystoreDB::init_tables(tx).context("Failed to initialize tables.").no_gc() in new_test_db()
3251 fn new_test_db_with_gc<F>(path: &Path, cb: F) -> Result<KeystoreDB> in new_test_db_with_gc()
3257 let gc_db = KeystoreDB::new(path, None).expect("Failed to open test gc db_connection."); in new_test_db_with_gc()
3260 KeystoreDB::new(path, Some(Arc::new(gc))) in new_test_db_with_gc()
3264 db: &mut KeystoreDB, in rebind_alias() argument
3271 KeystoreDB::rebind_alias(tx, newid, alias, &domain, &namespace, KeyType::Client).no_gc() in rebind_alias()
3386 fn get_auth_tokens(db: &KeystoreDB) -> Vec<AuthTokenEntry> { in get_auth_tokens()
3393 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files()
3399 let db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files()
4485 let mut db = KeystoreDB::new(temp_dir.path(), None).unwrap(); in test_upgrade_0_to_1()
4555 KeystoreDB::from_0_to_1(tx).no_gc() in test_upgrade_0_to_1()
4631 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_insert_and_load_full_keyentry_domain_app_concurrently()
4662 let mut db = KeystoreDB::new(temp_dir.path(), None).unwrap(); in test_insert_and_load_full_keyentry_domain_app_concurrently()
4705 let mut db1 = KeystoreDB::new(temp_dir.path(), None).expect("Failed to open database1."); in test_database_busy_error_code()
4706 let mut db2 = KeystoreDB::new(temp_dir.path(), None).expect("Failed to open database2."); in test_database_busy_error_code()
4846 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in list()
4960 fn get_keyentry(db: &KeystoreDB) -> Result<Vec<KeyEntryRow>> { in get_keyentry()
4988 db: &mut KeystoreDB, in load_attestation_key_pool() argument
5240 db: &mut KeystoreDB, in make_test_key_entry() argument
5299 db: &mut KeystoreDB, in make_bootlevel_key_entry() argument
5358 fn debug_dump_keyentry_table(db: &mut KeystoreDB) -> Result<()> { in debug_dump_keyentry_table()
5388 fn debug_dump_grant_table(db: &mut KeystoreDB) -> Result<()> { in debug_dump_grant_table()
5611 fn get_storage_stats_map(db: &mut KeystoreDB) -> BTreeMap<i32, StorageStats> { in get_storage_stats_map()
5619 db: &mut KeystoreDB, in assert_storage_increased() argument