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
↓ 13 callers
Function
init_db
(path: &Path)
src/db/schema.rs:54
↓ 13 callers
Function
key
(code: KeyCode)
src/tui/screens/create_record_test.rs:96
↓ 13 callers
Method
list_trash
List all soft-deleted records, decrypting name and subtitle for TUI display. Returns `VaultError::NotUnlocked` if the vault is locked.
src/services/vault/trash.rs:20
↓ 13 callers
Function
make_conflict
Build a test conflict display with two fields.
tests/integration/audit_sync_test.rs:56
↓ 13 callers
Method
next_word
Move focus to the next editable word (wraps around).
src/tui/screens/recovery_key.rs:87
↓ 13 callers
Function
render_screen
(screen: &ImportExportScreen, width: u16, height: u16)
tests/snapshot_tests/screens/import_export_test.rs:25
↓ 13 callers
Method
select_category
Select a specific category by setting `selected_index` to its position.
src/tui/state/main_state/state.rs:333
↓ 13 callers
Function
send_key
Send a [`KeyEvent`] message to the state and return the [`ScreenResult`].
tests/integration/main_pipeline_test.rs:41
↓ 13 callers
Method
set_style
Switch generation style and regenerate.
src/tui/state/generator_state.rs:199
↓ 13 callers
Function
setup_service
Helper: create an in-memory VaultService with schema initialized.
src/services/vault/audit.rs:168
↓ 13 callers
Function
shortcuts_text
Return the shortcut hint string based on the focused panel and trash state.
src/tui/screens/main/status_bar.rs:211
↓ 13 callers
Method
sync
(mut self, sync: Option<Box<dyn SyncService>>)
src/executor/builder.rs:111
↓ 13 callers
Function
test_context
(tx: &'a mpsc::Sender<Command>, config: &'a AppConfig)
src/tui/screens/config_screen/tests.rs:10
↓ 13 callers
Function
test_storage_fs
(temp_dir: &TempDir)
src/cloud/storage.rs:441
↓ 13 callers
Function
validate_item
Evaluates the given field map against the provided rules. Returns one `FieldValidation` per rule. Fields are looked up in the `fields` map by their l
src/services/import_export/validation.rs:301
↓ 13 callers
Function
validate_len
(field: &'static str, value: &str, max: usize)
src/types/record_limits.rs:95
↓ 12 callers
Method
cmp
(&self, other: &Self)
src/tui/state/notification.rs:23
↓ 12 callers
Function
create_csv_file
(content: &str)
src/services/import_export/tests.rs:30
↓ 12 callers
Function
create_csv_file
Helper: create a temporary CSV file with the given content.
src/services/import_export/parsers/csv.rs:190
↓ 12 callers
Method
create_operator
(&self, config: &ProviderConfig)
src/cloud/provider.rs:68
↓ 12 callers
Function
default_csv_mapping
()
src/services/import_export/tests.rs:18
↓ 12 callers
Function
derive_kek
(sk: &[u8; 32])
src/crypto/hkdf.rs:6
↓ 12 callers
Method
detect_conflicts
Detects conflicts between local and remote versions. # Detection Rules - `local_sync_status == Pending AND remote_version > local_version` → `Conflic
src/sync/conflict.rs:100
↓ 12 callers
Function
dropdown_control
(value: &str)
src/tui/screens/config_screen/config/render.rs:598
↓ 12 callers
Method
focus_prev
(&mut self)
src/tui/screens/key_recovery.rs:128
↓ 12 callers
Function
generate_test_key
()
src/crypto/xchacha20.rs:77
↓ 12 callers
Method
get_mut
Look up a mutable reference to the parser for `source`.
src/services/import_export/parser.rs:182
↓ 12 callers
Method
hard_delete_record
Permanently delete a record and all associated data. Cascade-deletes `record_tags` and `password_history` via FK constraints. Writes an audit entry w
src/services/vault/record/crud.rs:523
↓ 12 callers
Function
header_rows
Header rows: wide = LOGO_HEIGHT + 1 gap, narrow = 1 brand + 1 separator.
src/tui/screens/onboarding/views_setup.rs:48
↓ 12 callers
Function
import_sources
()
src/tui/screens/import_export/types.rs:54
↓ 12 callers
Function
insert_password_history
Insert a password history entry for a record.
src/db/queries/password_history.rs:22
↓ 12 callers
Method
list_record_health_states
List all persisted health states from the `record_health_state` table. Returns an empty vector when no rows exist.
src/services/vault/health_state.rs:26
↓ 12 callers
Function
make_health_state
(record_id: &Uuid, record_version: u64)
src/db/queries_test.rs:361
↓ 12 callers
Function
make_trash_detail_data
()
src/tui/screens/main/detail.rs:1583
↓ 12 callers
Method
mark_record_synced
Mark a single record as fully synchronized with cloud state.
src/services/vault/health_state.rs:95
↓ 12 callers
Method
open_dropdown
(&mut self, field: DropdownField)
src/tui/screens/config_screen/handlers.rs:308
↓ 12 callers
Method
parse
( &self, path: &Path, _password: Option<&SecureStr>, _csv_mapping: Option<&Csv
src/services/import_export/parsers/bitwarden.rs:84
↓ 12 callers
Function
push_len_error
(errors: &mut Vec<ValidationError>, field_index: usize, value: &str, max: usize)
src/tui/screens/form/validation.rs:171
↓ 12 callers
Function
random_from_slice
(choices: &[u8])
src/crypto/password.rs:11
↓ 12 callers
Method
record_name
Builder method: sets the record name.
src/errors/context.rs:59
↓ 12 callers
Function
render_screen
(screen: &DatabaseRecoveryScreen, width: u16, height: u16)
tests/snapshot_tests/screens/database_recovery_test.rs:20
↓ 12 callers
Function
render_to_snapshot
( state: &ListPanelState, width: u16, height: u16, focused: bool, unicode: bool, filte
tests/snapshot_tests/screens/list_test.rs:79
↓ 12 callers
Function
replace_str
Replace a string value at a given key if it matches the old value.
tools/1pux-sanitize/src/main.rs:228
↓ 12 callers
Function
serialize_metadata
(metadata: &CloudMetadata)
src/cloud/metadata.rs:153
↓ 12 callers
Method
validate_config
(&self, config: &ProviderConfig)
src/cloud/provider.rs:80
↓ 12 callers
Method
visual_selected_ids
Return the IDs of records selected in visual mode.
src/tui/state/list_state/state.rs:317
↓ 11 callers
Function
build_record_item
Build a single two-line list item with blank separator. Line 1 (title): ` [Type] Name [badge] timestamp ◀` Line 2 (subtitle): ` subtitle` Line 3
src/tui/screens/main/list/items.rs:177
↓ 11 callers
Function
create_1pux_file
Create a temporary .1pux (ZIP) file containing the given JSON as `export.data`.
src/services/import_export/parsers/onepassword.rs:427
↓ 11 callers
Function
create_cloud_storage
Creates a CloudStorage instance from SyncConfig. Matches on `config.provider` and delegates to the corresponding adapter. Implemented providers** (a
src/cloud/provider.rs:140
↓ 11 callers
Method
create_export_session
Create a new export session in `Created` status. Validates password length (>= 8) and output path extension (.okb). Returns the session UUID for use
src/services/import_export/service.rs:605
↓ 11 callers
Function
create_test_metadata_with_records
( vault_token: &str, version: u64, records: Vec<(&str, u64)>, )
tests/sync_pipeline_test.rs:54
↓ 11 callers
Method
decrypt
( &self, ciphertext: &[u8], nonce: &[u8; 24], aad: &[u8], dek_version:
src/crypto/crypto_manager.rs:57
↓ 11 callers
Function
derive_key
(password: &str, salt: &[u8; 16])
src/crypto/argon2.rs:52
↓ 11 callers
Method
download_record
Downloads and deserializes a record. Returns Ok(None) if record does not exist.
src/cloud/storage.rs:192
↓ 11 callers
Function
encrypt_opdata01_b64
(plaintext: &[u8], key: &[u8; 32], mac_key: &[u8; 32])
tools/opvault-rekey/src/main.rs:216
↓ 11 callers
Method
enqueue_pending
Enqueue pending sync data (only while editing).
src/tui/state/sync_ui_state.rs:151
↓ 11 callers
Method
exit_visual
Exit visual mode back to normal browsing. Clears selection.
src/tui/state/list_state/state.rs:266
↓ 11 callers
Function
extract_command
Unwrap a [`ScreenResult::Command`] into its inner [`Command`]. # Panics Panics if `result` is not `ScreenResult::Command`.
tests/integration/main_pipeline_test.rs:62
↓ 11 callers
Method
filtered_entries
Returns entries filtered by the selected operation category.
src/tui/screens/audit_log/screen.rs:357
↓ 11 callers
Function
fresh_db
Helper: create a fully-initialized in-memory database.
src/db/schema_test.rs:6
↓ 11 callers
Function
get_record_health_state
Get the health state for a single record. Returns `None` if no health state row exists for the given `record_id`.
src/db/queries/health_state.rs:16
↓ 11 callers
Method
handle_key
(&mut self, key: KeyCode)
src/tui/screens/sync_conflict.rs:58
↓ 11 callers
Function
handle_trigger_rotation
(executor: &mut CommandExecutor)
src/executor/rotation.rs:241
↓ 11 callers
Function
make_health_state
(record_version: u64, compromised: Option<bool>)
src/executor/health_test.rs:1685
↓ 11 callers
Function
make_key
Convenience: build an `ExistingRecordKey`.
src/services/import_export/duplicate.rs:123
↓ 11 callers
Function
make_unlocked_executor
Create a basic unlocked executor with no records.
src/executor/record.rs:575
↓ 11 callers
Method
mark_changed
Mark that a change has been made.
src/tui/state/config_state/state.rs:659
↓ 11 callers
Method
mark_records_pending_sync
Mark a batch of records as pending sync in the `sync_state` table. For each record, upserts a row with `sync_status = Pending` and `local_updated_at
src/services/vault/health_state.rs:87
↓ 11 callers
Method
move_down
Move selection down to next selectable item.
src/tui/state/main_state/state.rs:341
↓ 11 callers
Method
notify_config_change
( &self, config: &AppConfig, changed_fields: &[&str], )
src/executor/config_impl/handler.rs:177
↓ 11 callers
Function
redact_sensitive_values
Redacts credential-bearing fields before text reaches UI notifications or logs.
src/security/redaction.rs:7
↓ 11 callers
Function
render_header
Render the logo (wide) or brand text + separator (narrow) into the given area. Returns the number of rows consumed: `LOGO_HEIGHT + 1` for wide, `2` fo
src/tui/screens/onboarding/views_setup.rs:17
↓ 11 callers
Function
run_migrations
Runs all pending migrations on the given connection. - Reads current version from metadata table. - Executes each pending migration in order. - Updat
src/db/migrations/runner.rs:58
↓ 11 callers
Method
save
(&self, config_dir: &std::path::Path)
src/config/mod.rs:75
↓ 11 callers
Function
send_result
Send a [`CommandResult`] message to the state and return the [`ScreenResult`].
tests/integration/main_pipeline_test.rs:50
↓ 11 callers
Function
sensitive
(s: &str)
src/tui/screens/import_export/tests.rs:10
↓ 11 callers
Method
set_last_health_check_at
Set the timestamp of the last successful health check. The timestamp is stored as UTC RFC 3339.
src/services/vault/metadata.rs:77
↓ 11 callers
Method
set_text
(&self, text: &str)
src/services/clipboard.rs:60
↓ 11 callers
Method
set_uploads
Sets the records to upload.
src/sync/pipeline.rs:154
↓ 11 callers
Function
simple_csv_content
()
src/services/import_export/tests.rs:40
↓ 11 callers
Function
simulate_health_check_completed
Helper: simulate what `execute_internal(HealthCheckCompleted)` does — persist the report, update metadata, and return the result for assertion.
src/executor/health_test.rs:1278
↓ 11 callers
Function
test_storage
Creates a CloudStorage instance backed by in-memory storage.
src/sync/lock.rs:274
↓ 11 callers
Method
to_seed
(&self, passphrase: Option<&str>)
src/crypto/bip39.rs:107
↓ 11 callers
Function
unlock_service
Helper: unlock the VaultService with a fresh mnemonic.
src/services/vault/history.rs:181
↓ 10 callers
Method
add_device
(&mut self, device: DeviceInfo)
src/cloud/metadata.rs:132
↓ 10 callers
Function
build_empty_state_variant
Build the appropriate empty state variant based on list mode and filter.
src/tui/screens/main/list/empty.rs:21
↓ 10 callers
Function
build_list_item
Build a single `ListItem` from a `SidebarItem`.
src/tui/screens/main/sidebar.rs:163
↓ 10 callers
Function
build_trash_item
Build a trash-specific list item with deletion metadata and progressive warnings. Line 1 (title): ` [Type] Name ◀` Line 2 (metadata): ` X 天前删除
src/tui/screens/main/list/items.rs:386
↓ 10 callers
Function
char_count
(value: &str)
src/types/record_limits.rs:17
↓ 10 callers
Function
create_login
Create a Login record and return its ID.
tests/integration/vault_service_test.rs:53
↓ 10 callers
Function
create_test_cloud_record
(id: &str, version: u64)
src/sync/pipeline_test.rs:28
↓ 10 callers
Method
decrement_length
Decrement length (clamp to min).
src/tui/state/generator_state.rs:241
↓ 10 callers
Function
derive_dek
(kek: &[u8; 32], version: u32)
src/crypto/hkdf.rs:14
↓ 10 callers
Method
download_metadata
Downloads and deserializes metadata. Returns Ok(None) if metadata file does not exist.
src/cloud/storage.rs:67
↓ 10 callers
Method
format
(&self)
src/services/import_export/parser.rs:271
↓ 10 callers
Function
get_metadata
Get a metadata value by key. Returns `None` if the key does not exist.
src/db/queries/metadata.rs:6
↓ 10 callers
Method
increment_length
Increment length (clamp to max).
src/tui/state/generator_state.rs:224
↓ 10 callers
Function
insert_optional
Insert an optional value into the fields map only when it is `Some`.
src/services/import_export/parsers/okb.rs:188
↓ 10 callers
Function
list_deleted_records
List all soft-deleted records, ordered by `deleted_at` descending.
src/db/queries/record.rs:537
↓ 10 callers
Function
login_payload
Create a Login-type EncryptedPayload with the given name and password.
tests/integration/vault_service_test.rs:42
← previous
next →
201–300 of 5,714, ranked by callers