Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SamSaffron/op-cache
/ functions
Functions
71 in github.com/SamSaffron/op-cache
⨍
Functions
71
◇
Types & classes
10
↓ 7 callers
Method
insert
(&self, key: &str, value: String)
src/daemon/cache.rs:39
↓ 6 callers
Function
collect_op_refs
Returns unique op:// references found in env var values.
src/run.rs:13
↓ 5 callers
Function
build_env
Build the final environment with resolved values substituted in.
src/run.rs:69
↓ 5 callers
Method
send_request
(&self, request: Request)
src/client.rs:26
↓ 4 callers
Method
pid_path
(&self)
src/config.rs:76
↓ 3 callers
Function
ensure_daemon_running
Spawn the daemon if not already running
src/spawn.rs:12
↓ 3 callers
Function
is_running
Check if daemon is running by checking PID file and process
src/daemon/mod.rs:85
↓ 2 callers
Function
exec_command
Replace the current process with the given command and environment. This function does not return on success.
src/run.rs:86
↓ 2 callers
Method
get
(&self, key: &str)
src/daemon/cache.rs:27
↓ 2 callers
Method
load
()
src/config.rs:56
↓ 2 callers
Method
read
Read a secret, using cache if available
src/client.rs:52
↓ 2 callers
Function
run_daemon_inner
(config: Config)
src/daemon/mod.rs:61
↓ 1 callers
Method
clear
Clear the cache
src/client.rs:135
↓ 1 callers
Method
clear
(&self)
src/daemon/cache.rs:43
↓ 1 callers
Function
cmd_clear
(config: Config)
src/main.rs:102
↓ 1 callers
Function
cmd_daemon
(config: Config)
src/main.rs:141
↓ 1 callers
Function
cmd_daemon_foreground
(config: Config)
src/main.rs:146
↓ 1 callers
Function
cmd_read
(config: Config, reference: &str, account: Option<&str>)
src/main.rs:33
↓ 1 callers
Function
cmd_run
(config: Config, command: Vec<String>, account: Option<&str>)
src/main.rs:46
↓ 1 callers
Function
cmd_stats
(config: Config)
src/main.rs:83
↓ 1 callers
Function
cmd_status
(config: &Config)
src/main.rs:70
↓ 1 callers
Function
cmd_stop
(config: Config)
src/main.rs:115
↓ 1 callers
Method
connect
(&self)
src/client.rs:20
↓ 1 callers
Function
daemonize
Daemonize and run the server. Uses traditional double-fork daemonization which is safe because the daemon is just a cache server - it doesn't need D-B
src/daemon/mod.rs:20
↓ 1 callers
Function
default_max_entries
()
src/config.rs:31
↓ 1 callers
Function
default_op_path
()
src/config.rs:35
↓ 1 callers
Function
default_op_timeout_seconds
()
src/config.rs:39
↓ 1 callers
Function
default_socket_path
()
src/config.rs:23
↓ 1 callers
Function
default_ttl_seconds
()
src/config.rs:27
↓ 1 callers
Method
execute_op_read
Execute op read command
src/client.rs:91
↓ 1 callers
Function
get_pid
Get the PID of the running daemon
src/daemon/mod.rs:104
↓ 1 callers
Method
log_path
(&self)
src/config.rs:80
↓ 1 callers
Function
read_message
(reader: &mut R)
src/protocol.rs:49
↓ 1 callers
Function
resolve_refs
Resolves all op:// references concurrently (bounded) through the cache. Returns a map from reference string to resolved value.
src/run.rs:29
↓ 1 callers
Method
run
(&self)
src/daemon/server.rs:25
↓ 1 callers
Function
run_daemon
(config: Config)
src/daemon/mod.rs:45
↓ 1 callers
Function
run_foreground
Run the daemon in the foreground (for testing/debugging)
src/daemon/mod.rs:35
↓ 1 callers
Function
spawn_daemon
()
src/spawn.rs:21
↓ 1 callers
Method
stats
Get cache statistics
src/client.rs:124
↓ 1 callers
Method
stats
(&self)
src/daemon/cache.rs:49
↓ 1 callers
Method
stop
Stop the daemon
src/client.rs:146
↓ 1 callers
Function
wait_for_daemon
(config: &Config)
src/spawn.rs:34
↓ 1 callers
Function
write_message
Wire format: [4-byte length (big-endian)][MessagePack payload]
src/protocol.rs:34
Function
build_env_leaves_unresolved_unchanged
()
src/run.rs:198
Function
build_env_preserves_order
()
src/run.rs:183
Function
build_env_substitutes_duplicate_refs
()
src/run.rs:169
Function
build_env_substitutes_resolved_values
()
src/run.rs:152
Method
cache_key
Hash the reference (and optional account) for use as cache key
src/client.rs:42
Function
cache_key_account_vs_none_differ
()
src/client.rs:183
Function
cache_key_different_accounts_differ
()
src/client.rs:176
Function
cache_key_with_account
()
src/client.rs:167
Function
cache_key_without_account
()
src/client.rs:160
Function
collect_op_refs_deduplicates
()
src/run.rs:141
Function
collect_op_refs_empty_env
()
src/run.rs:114
Function
collect_op_refs_finds_op_values
()
src/run.rs:103
Function
collect_op_refs_ignores_non_op
()
src/run.rs:121
Function
collect_op_refs_skips_partial_match
()
src/run.rs:131
Method
config_path
()
src/config.rs:68
Method
default
()
src/config.rs:44
Method
effective_account
Resolve the effective account: explicit flag wins, then OP_ACCOUNT env var.
src/client.rs:34
Function
effective_account_explicit_wins
()
src/client.rs:190
Function
effective_account_falls_back_to_env
()
src/client.rs:198
Function
effective_account_ignores_empty_env
()
src/client.rs:213
Function
effective_account_none_when_unset
()
src/client.rs:206
Method
from
(e: anyhow::Error)
src/error.rs:28
Function
handle_connection
( mut stream: UnixStream, cache: Arc<Cache>, shutdown_rx: &mut watch::Receiver<bool>, shutdown
src/daemon/server.rs:99
Function
handle_request
(request: &Request, cache: &Cache)
src/daemon/server.rs:140
Function
main
()
src/main.rs:17
Method
new
(config: Config)
src/client.rs:16
Method
new
(config: Config)
src/daemon/server.rs:19
Method
new
(max_entries: u64, ttl_seconds: u64)
src/daemon/cache.rs:14