MCPcopy Create free account

hub / github.com/SamSaffron/op-cache / functions

Functions71 in github.com/SamSaffron/op-cache

↓ 7 callersMethodinsert
(&self, key: &str, value: String)
src/daemon/cache.rs:39
↓ 6 callersFunctioncollect_op_refs
Returns unique op:// references found in env var values.
src/run.rs:13
↓ 5 callersFunctionbuild_env
Build the final environment with resolved values substituted in.
src/run.rs:69
↓ 5 callersMethodsend_request
(&self, request: Request)
src/client.rs:26
↓ 4 callersMethodpid_path
(&self)
src/config.rs:76
↓ 3 callersFunctionensure_daemon_running
Spawn the daemon if not already running
src/spawn.rs:12
↓ 3 callersFunctionis_running
Check if daemon is running by checking PID file and process
src/daemon/mod.rs:85
↓ 2 callersFunctionexec_command
Replace the current process with the given command and environment. This function does not return on success.
src/run.rs:86
↓ 2 callersMethodget
(&self, key: &str)
src/daemon/cache.rs:27
↓ 2 callersMethodload
()
src/config.rs:56
↓ 2 callersMethodread
Read a secret, using cache if available
src/client.rs:52
↓ 2 callersFunctionrun_daemon_inner
(config: Config)
src/daemon/mod.rs:61
↓ 1 callersMethodclear
Clear the cache
src/client.rs:135
↓ 1 callersMethodclear
(&self)
src/daemon/cache.rs:43
↓ 1 callersFunctioncmd_clear
(config: Config)
src/main.rs:102
↓ 1 callersFunctioncmd_daemon
(config: Config)
src/main.rs:141
↓ 1 callersFunctioncmd_daemon_foreground
(config: Config)
src/main.rs:146
↓ 1 callersFunctioncmd_read
(config: Config, reference: &str, account: Option<&str>)
src/main.rs:33
↓ 1 callersFunctioncmd_run
(config: Config, command: Vec<String>, account: Option<&str>)
src/main.rs:46
↓ 1 callersFunctioncmd_stats
(config: Config)
src/main.rs:83
↓ 1 callersFunctioncmd_status
(config: &Config)
src/main.rs:70
↓ 1 callersFunctioncmd_stop
(config: Config)
src/main.rs:115
↓ 1 callersMethodconnect
(&self)
src/client.rs:20
↓ 1 callersFunctiondaemonize
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 callersFunctiondefault_max_entries
()
src/config.rs:31
↓ 1 callersFunctiondefault_op_path
()
src/config.rs:35
↓ 1 callersFunctiondefault_op_timeout_seconds
()
src/config.rs:39
↓ 1 callersFunctiondefault_socket_path
()
src/config.rs:23
↓ 1 callersFunctiondefault_ttl_seconds
()
src/config.rs:27
↓ 1 callersMethodexecute_op_read
Execute op read command
src/client.rs:91
↓ 1 callersFunctionget_pid
Get the PID of the running daemon
src/daemon/mod.rs:104
↓ 1 callersMethodlog_path
(&self)
src/config.rs:80
↓ 1 callersFunctionread_message
(reader: &mut R)
src/protocol.rs:49
↓ 1 callersFunctionresolve_refs
Resolves all op:// references concurrently (bounded) through the cache. Returns a map from reference string to resolved value.
src/run.rs:29
↓ 1 callersMethodrun
(&self)
src/daemon/server.rs:25
↓ 1 callersFunctionrun_daemon
(config: Config)
src/daemon/mod.rs:45
↓ 1 callersFunctionrun_foreground
Run the daemon in the foreground (for testing/debugging)
src/daemon/mod.rs:35
↓ 1 callersFunctionspawn_daemon
()
src/spawn.rs:21
↓ 1 callersMethodstats
Get cache statistics
src/client.rs:124
↓ 1 callersMethodstats
(&self)
src/daemon/cache.rs:49
↓ 1 callersMethodstop
Stop the daemon
src/client.rs:146
↓ 1 callersFunctionwait_for_daemon
(config: &Config)
src/spawn.rs:34
↓ 1 callersFunctionwrite_message
Wire format: [4-byte length (big-endian)][MessagePack payload]
src/protocol.rs:34
Functionbuild_env_leaves_unresolved_unchanged
()
src/run.rs:198
Functionbuild_env_preserves_order
()
src/run.rs:183
Functionbuild_env_substitutes_duplicate_refs
()
src/run.rs:169
Functionbuild_env_substitutes_resolved_values
()
src/run.rs:152
Methodcache_key
Hash the reference (and optional account) for use as cache key
src/client.rs:42
Functioncache_key_account_vs_none_differ
()
src/client.rs:183
Functioncache_key_different_accounts_differ
()
src/client.rs:176
Functioncache_key_with_account
()
src/client.rs:167
Functioncache_key_without_account
()
src/client.rs:160
Functioncollect_op_refs_deduplicates
()
src/run.rs:141
Functioncollect_op_refs_empty_env
()
src/run.rs:114
Functioncollect_op_refs_finds_op_values
()
src/run.rs:103
Functioncollect_op_refs_ignores_non_op
()
src/run.rs:121
Functioncollect_op_refs_skips_partial_match
()
src/run.rs:131
Methodconfig_path
()
src/config.rs:68
Methoddefault
()
src/config.rs:44
Methodeffective_account
Resolve the effective account: explicit flag wins, then OP_ACCOUNT env var.
src/client.rs:34
Functioneffective_account_explicit_wins
()
src/client.rs:190
Functioneffective_account_falls_back_to_env
()
src/client.rs:198
Functioneffective_account_ignores_empty_env
()
src/client.rs:213
Functioneffective_account_none_when_unset
()
src/client.rs:206
Methodfrom
(e: anyhow::Error)
src/error.rs:28
Functionhandle_connection
( mut stream: UnixStream, cache: Arc<Cache>, shutdown_rx: &mut watch::Receiver<bool>, shutdown
src/daemon/server.rs:99
Functionhandle_request
(request: &Request, cache: &Cache)
src/daemon/server.rs:140
Functionmain
()
src/main.rs:17
Methodnew
(config: Config)
src/client.rs:16
Methodnew
(config: Config)
src/daemon/server.rs:19
Methodnew
(max_entries: u64, ttl_seconds: u64)
src/daemon/cache.rs:14