Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenKeyring/oak-keyring
/ functions
Functions
5,714 in github.com/OpenKeyring/oak-keyring
⨍
Functions
5,714
◇
Types & classes
509
↓ 10 callers
Function
make_conflict
Helper to build a conflict display with two fields.
src/tui/screens/sync_conflict.rs:342
↓ 10 callers
Function
make_service
(timeout: u64)
src/services/clipboard.rs:613
↓ 10 callers
Function
permissive_unlocked_vault
Default vault mock that returns unlocked and handles the most common get_metadata calls (returns None for any key).
src/executor/mock_orchestration_test.rs:46
↓ 10 callers
Method
query_audit_log
Query the audit log with filters and pagination. Returns a tuple of `(matching entries, total count)`. The total count reflects all entries matching
src/services/vault/audit.rs:52
↓ 10 callers
Method
register
Register a parser, replacing any previous entry for the same format.
src/services/import_export/parser.rs:171
↓ 10 callers
Function
render_detail_snapshot
( state: &DetailPanelState, width: u16, height: u16, focused: bool, un
src/tui/screens/main/detail.rs:1617
↓ 10 callers
Function
render_screen
(screen: &CreateRecordScreen, width: u16, height: u16)
tests/snapshot_tests/screens/create_record_test.rs:22
↓ 10 callers
Function
render_screen
(screen: &OnboardingScreen, width: u16, height: u16)
tests/snapshot_tests/screens/onboarding_test.rs:23
↓ 10 callers
Function
render_screen
(screen: &EditRecordScreen, width: u16, height: u16)
tests/snapshot_tests/screens/edit_record_test.rs:23
↓ 10 callers
Function
render_screen
(screen: &ChangeMasterPasswordScreen, width: u16, height: u16)
tests/snapshot_tests/screens/change_master_password_test.rs:22
↓ 10 callers
Method
run
Runs the main sync loop until shutdown.
src/sync/task.rs:180
↓ 10 callers
Function
search_records
Filter records by a search query using case-insensitive AND logic. The query is split by whitespace into terms. A record matches only when every term
src/services/vault/search.rs:10
↓ 10 callers
Function
set_metadata
Set (insert or replace) a metadata key-value pair.
src/db/queries/metadata.rs:21
↓ 10 callers
Method
set_step_forward
(&mut self, step: OnboardingStep)
src/tui/screens/onboarding/screen.rs:137
↓ 10 callers
Function
setup_vault
Create an in-memory VaultService with schema initialized and crypto unlocked.
tests/integration/vault_service_test.rs:32
↓ 10 callers
Function
test_db_page_key
(bytes: [u8; 32])
src/crypto/db_page_key.rs:41
↓ 10 callers
Method
textarea_captures_vertical
Check if the notes textarea currently captures vertical navigation. Returns true when notes textarea is focused (not footer, not dropdown).
src/tui/state/form_state.rs:987
↓ 10 callers
Method
update
(&mut self, msg: Message, ctx: &mut ScreenContext)
src/tui/screens/audit_log/screen.rs:419
↓ 10 callers
Method
zeroize
(&mut self)
src/tui/screens/recovery_key.rs:44
↓ 9 callers
Function
assert_one_of
(actual: &str, expected: &[&str])
src/tui/state/list_state/tests.rs:10
↓ 9 callers
Function
category_label
Return the display label for a sidebar category.
src/tui/screens/main/sidebar.rs:521
↓ 9 callers
Method
cleanup_after_batch
Remove records matching the given IDs, fix selection, and exit visual mode if no records remain selected.
src/tui/state/list_state/state.rs:367
↓ 9 callers
Function
count_password_history
Count password history entries for a record.
src/db/queries/password_history.rs:86
↓ 9 callers
Function
create_login_record
Helper: create a Login record and return its UUID.
src/executor/record.rs:599
↓ 9 callers
Function
create_test_storage
()
src/sync/task.rs:871
↓ 9 callers
Function
csv_rules
Validation rules for CSV imports.
src/services/import_export/validation.rs:212
↓ 9 callers
Function
ctrl
(ch: char)
src/tui/screens/import_export/tests.rs:22
↓ 9 callers
Method
current_dek_version
(&self)
src/crypto/keystore.rs:450
↓ 9 callers
Method
current_dek_version
(&self)
src/services/vault/mod.rs:250
↓ 9 callers
Method
db_page_key
(&self)
src/crypto/keystore.rs:444
↓ 9 callers
Function
decrypt
(ciphertext: &[u8], nonce: &[u8; 24], key: &[u8; 32])
src/crypto/xchacha20.rs:21
↓ 9 callers
Function
decrypt_name_only
( crypto: &CryptoManager, ciphertext: &[u8], nonce: &[u8; 24], aad: &[u8], dek_version: u3
src/crypto/payload.rs:161
↓ 9 callers
Function
default_mapping
Helper: default CsvColumnMapping with standard column names.
src/services/import_export/parsers/csv.rs:200
↓ 9 callers
Function
derive_key_locked
Derives a 32-byte key using Argon2id, outputting directly into locked memory. This function is the secure version of [`derive_key_with_params`] for s
src/crypto/argon2.rs:115
↓ 9 callers
Function
derive_key_with_params
( password: &str, salt: &[u8; 16], params: &Argon2Params, )
src/crypto/argon2.rs:60
↓ 9 callers
Function
dummy_ctx
()
src/tui/screens/set_password.rs:1128
↓ 9 callers
Function
ensure_cloud_restore_has_records
( metadata_source: &mut dyn crate::services::sync::SyncService, )
src/executor/sync.rs:164
↓ 9 callers
Method
execute_import
Execute the import: create vault records for validated, non-duplicate items. The `vault_create_fn` closure handles actual record creation. This keeps
src/services/import_export/service.rs:389
↓ 9 callers
Method
focus_next_toggle
(&mut self)
src/tui/state/generator_state.rs:349
↓ 9 callers
Method
focus_prev_toggle
(&mut self)
src/tui/state/generator_state.rs:359
↓ 9 callers
Method
footer_start_index
Index where fixed footer shortcuts begin.
src/tui/state/main_state/state.rs:197
↓ 9 callers
Method
get_last_health_check_at
Get the timestamp of the last successful health check. Returns `Ok(None)` if the key does not exist. If the stored value is corrupted (not a valid RF
src/services/vault/metadata.rs:56
↓ 9 callers
Method
handle_import_preview_key
( &mut self, key: KeyEvent, ctx: &mut ScreenContext, )
src/tui/screens/onboarding/handlers.rs:510
↓ 9 callers
Function
handle_load_record_detail
(executor: &mut CommandExecutor, id: Uuid)
src/executor/record.rs:242
↓ 9 callers
Function
handle_unlock
( executor: &mut CommandExecutor, master_password: SecureStr, )
src/executor/vault.rs:196
↓ 9 callers
Method
insert_char
Insert a character at the cursor position and advance the cursor.
src/tui/state/tag_management.rs:75
↓ 9 callers
Function
key
(code: KeyCode)
src/app/update.rs:1028
↓ 9 callers
Function
load_cached_health_report
Load cached health report from persisted `record_health_state` rows. Rebuilds a `HealthReport` by projecting the tri-state flags stored in the `recor
src/executor/health.rs:242
↓ 9 callers
Function
login_fields
()
src/tui/screens/form/validation.rs:290
↓ 9 callers
Function
make_detail_view
(id: Uuid, is_favorite: bool)
src/tui/state/main_state/tests.rs:2234
↓ 9 callers
Function
make_entry
Helper: create a Database with one entry configured by `f`. Uses the keepass 0.12 public builder API since `Entry::new()` is `pub(crate)`.
src/services/import_export/parsers/keepass_test.rs:127
↓ 9 callers
Method
normalize_export_output_path_cursor
(&mut self)
src/tui/screens/import_export/screen.rs:149
↓ 9 callers
Method
push_metadata_atomic
Uploads metadata only if the remote metadata_version matches the expected one. This provides CAS (Compare-And-Swap) behavior for multi-device coordina
src/cloud/storage.rs:123
↓ 9 callers
Function
render_buffer
Render into a TestBackend under the default `en` locale and return the buffer. For other locales use [`render_buffer_locale`].
src/tui/screens/main/list/tests.rs:193
↓ 9 callers
Method
reset
(&self)
src/sync/retry.rs:115
↓ 9 callers
Method
resolve_keep_remote
Resolves a conflict by keeping the remote version. For KeepRemote: 1. Deserialize conflict_data bytes as ConflictPayload 2. Validate the ConflictPayl
src/sync/conflict.rs:175
↓ 9 callers
Method
serialize
Serializes the conflict payload to JSON bytes.
src/cloud/record.rs:368
↓ 9 callers
Method
set_step_back
(&mut self, step: OnboardingStep)
src/tui/screens/onboarding/screen.rs:146
↓ 9 callers
Function
setup_vault
()
src/services/rotation.rs:560
↓ 9 callers
Method
step_text
(&self)
src/tui/screens/database_recovery.rs:97
↓ 9 callers
Method
to_error_context
(&self)
src/errors/mapping/sync.rs:125
↓ 9 callers
Method
update_config_for_test
(&self, updater: F)
src/executor/config_impl/handler.rs:33
↓ 9 callers
Function
validate_file_common
Common file validation shared by all parsers. Checks existence, file size against [`MAX_FILE_SIZE`], and extension match. Individual parsers should c
src/services/import_export/parser.rs:118
↓ 9 callers
Function
validate_items
Validates a batch of parsed items against the given rules. Each item is evaluated via [`validate_item`]. Items are classified into three categories:
src/services/import_export/validation.rs:356
↓ 9 callers
Function
write_temp
Write `data` to a temp file with the given name and return the path.
src/services/import_export/parsers/okb.rs:222
↓ 8 callers
Method
add_pending_conflict
Adds a conflict pending resolution.
src/sync/checkpoint.rs:89
↓ 8 callers
Method
adjust_scroll
Adjust scroll offset so the selected item stays within the visible area.
src/tui/state/list_state/state.rs:150
↓ 8 callers
Method
all
Return all sort orders in cycle order.
src/tui/state/tag_management.rs:40
↓ 8 callers
Method
batch_remove_tag
Remove a tag from multiple records in a single transaction. Returns the number of associations actually removed. After removal, if the tag is no long
src/services/vault/tag/state.rs:170
↓ 8 callers
Method
batch_restore
Batch restore multiple soft-deleted records. Pre-filters to only soft-deleted records. Captures names before the mutation so audit entries are accura
src/services/vault/trash.rs:197
↓ 8 callers
Function
batch_soft_delete_records
Batch soft-delete multiple records. Returns the number of affected rows.
src/db/queries/record.rs:562
↓ 8 callers
Method
begin_file_backed_vault_db
( &mut self, key: &crate::crypto::db_page_key::DbPageKey, )
src/executor/mod.rs:505
↓ 8 callers
Function
build_okb
Build a valid .okb file in-memory from the given JSON payload and password.
src/services/import_export/parsers/okb.rs:202
↓ 8 callers
Method
clear_current_limit_error
(&mut self)
src/tui/state/form_state.rs:815
↓ 8 callers
Method
commit
(mut self)
src/executor/mod.rs:615
↓ 8 callers
Function
context
( tx: &'a tokio::sync::mpsc::Sender<Command>, config: &'a crate::config::AppConfig, )
src/tui/screens/database_recovery.rs:1256
↓ 8 callers
Function
create_sync_service
Create a SyncService backed by a real filesystem (required for atomic rename-based uploads). Returns (TempDir, Box<dyn SyncService>) — caller must kee
src/executor/rotation.rs:396
↓ 8 callers
Function
create_test_metadata
()
src/cloud/storage.rs:457
↓ 8 callers
Function
create_test_record
(id: &str)
src/cloud/storage.rs:469
↓ 8 callers
Function
create_test_storage
()
src/services/sync.rs:736
↓ 8 callers
Function
create_textarea
Create a `TextArea` configured with the project's Tokyo Night theme.
src/tui/components/textarea.rs:17
↓ 8 callers
Method
current_source
(&self)
src/tui/screens/import_export/screen.rs:230
↓ 8 callers
Method
decrypt_history_password
Decrypt a single password history entry by its ID. The AAD used during encryption was `format!("record:{}", record_id)`, which is reconstructed from
src/services/vault/history.rs:42
↓ 8 callers
Function
decrypt_payload
( crypto: &CryptoManager, ciphertext: &[u8], nonce: &[u8; 24], aad: &[u8], _credential_typ
src/crypto/payload.rs:147
↓ 8 callers
Function
decrypted_record_to_export
Map a fully decrypted record to the export format. Field mapping uses type-specific fields: - Login: username, password, url, notes - Api: app_id, se
src/executor/import_export.rs:384
↓ 8 callers
Function
display_width
(value: &str)
src/tui/components/text_input.rs:16
↓ 8 callers
Function
display_width
(text: &str)
src/tui/screens/main/sidebar.rs:516
↓ 8 callers
Function
handle_run_health_check
(executor: &mut CommandExecutor, force: bool)
src/executor/health.rs:295
↓ 8 callers
Function
handle_trigger_sync
(executor: &mut CommandExecutor)
src/executor/sync.rs:340
↓ 8 callers
Method
import_focus_cycle_next
(&mut self)
src/tui/screens/import_export/screen.rs:234
↓ 8 callers
Function
is_selected
(item: &SidebarItem, state: &SidebarState)
src/tui/screens/main/sidebar.rs:391
↓ 8 callers
Method
is_tag_management
Whether tag management mode is active.
src/tui/state/main_state/state.rs:383
↓ 8 callers
Method
item_count
Returns the number of focusable items in this tab.
src/tui/state/config_state/state.rs:281
↓ 8 callers
Function
line_area
(area: Rect, row: u16)
src/tui/screens/config_screen/config/about.rs:123
↓ 8 callers
Method
list_tags_with_stats
List all tags with usage statistics for sorting. Returns tags with [`TagSortMeta`] containing: - `record_count`: Number of non-deleted records with t
src/services/vault/tag/state.rs:55
↓ 8 callers
Method
load
(&self, config_dir: &std::path::Path)
src/executor/config_impl/handler.rs:43
↓ 8 callers
Method
load
Loads checkpoint from vault directory. Returns error if file exists but is corrupt or cannot be read.
src/sync/checkpoint.rs:130
↓ 8 callers
Function
make_config
( auto_rotate: bool, rotate_after_days: Option<u32>, rotate_after_records: Option<u32>
src/services/rotation.rs:277
↓ 8 callers
Function
make_record_with_health
( id: Uuid, name: &str, compromised: bool, weak: bool, dup_group: Option<usize>, )
tests/snapshot_tests/screens/list_test.rs:53
↓ 8 callers
Function
make_test_record
(name: &str)
src/tui/state/main_state/tests.rs:1799
← previous
next →
301–400 of 5,714, ranked by callers