MCPcopy Create free account

hub / github.com/alexykn/sps2 / functions

Functions2,023 in github.com/alexykn/sps2

↓ 7 callersFunctionget_state_packages
Get packages present in a particular state snapshot # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:85
↓ 7 callersMethodinactive_slot
Returns the identifier of the inactive slot.
crates/state/src/manager.rs:222
↓ 7 callersFunctionis_macho_file
(path: &Path)
crates/builder/src/artifact_qa/macho_utils.rs:12
↓ 7 callersMethodis_positive
(self)
crates/resolver/src/sat/types.rs:64
↓ 7 callersFunctionmake_sp_and_add_to_store
( store: &sps2_store::PackageStore, name: &str, version: &str, files: &[(&str,
crates/install/src/atomic/installer.rs:382
↓ 7 callersMethodmatches
(&self, version: &Version)
crates/types/src/version.rs:32
↓ 7 callersMethodnegate
(self)
crates/resolver/src/sat/types.rs:76
↓ 7 callersMethodprepare_transaction
Phase 1 of 2PC: Prepare and commit database changes This method commits all database changes except the active state pointer, then writes the journal
crates/state/src/manager.rs:1243
↓ 7 callersMethodsize
Calculate total size of the package # Errors Returns an error if size calculation fails due to I/O issues
crates/store/src/package.rs:152
↓ 7 callersMethodstate_id
(&self)
crates/state/src/models.rs:28
↓ 6 callersMethodadd_finding
Add a finding to the collector
crates/builder/src/artifact_qa/diagnostics.rs:90
↓ 6 callersMethodadd_node
Add node to graph
crates/resolver/src/graph.rs:162
↓ 6 callersFunctioncreate_pool
Create a new `SQLite` connection pool # Errors Returns an error if the database connection fails or configuration is invalid.
crates/state/src/lib.rs:54
↓ 6 callersMethodemit_operation_completed
Emit an operation completed event
crates/events/src/lib.rs:185
↓ 6 callersMethodemit_operation_started
Emit an operation started event
crates/events/src/lib.rs:178
↓ 6 callersMethodenrich_event_meta
Allow implementers to enrich event metadata before emission.
crates/events/src/lib.rs:120
↓ 6 callersMethodevent_source
(&self)
crates/events/src/events/mod.rs:107
↓ 6 callersFunctionexecute_command
Execute a generic command
crates/builder/src/stages/executors.rs:298
↓ 6 callersMethodextract_single_download
Extract a single downloaded file # Errors Returns an error if archive extraction fails.
crates/builder/src/core/api.rs:811
↓ 6 callersMethodget_package_versions
(&self, name: &str)
crates/resolver/src/sat/mod.rs:88
↓ 6 callersMethodinstall
Perform atomic installation # Errors Returns an error if state transition fails, package installation fails, or filesystem operations fail.
crates/install/src/atomic/installer.rs:168
↓ 6 callersMethodis_fatal
(&self)
crates/builder/src/artifact_qa/reports.rs:27
↓ 6 callersMethodis_success
(&self)
crates/ops/src/lib.rs:186
↓ 6 callersMethodis_true
(self)
crates/resolver/src/sat/types.rs:136
↓ 6 callersMethodload
Load index from cache or JSON content # Errors Returns an error if the JSON content is invalid, cache cannot be read, or the index fails validation.
crates/index/src/lib.rs:50
↓ 6 callersMethodlog_level
(&self)
crates/events/src/events/mod.rs:131
↓ 6 callersFunctionnormalize_path
Normalize a path by resolving .., ., and symlinks
crates/builder/src/security/path_resolver.rs:8
↓ 6 callersMethodparent_id
(&self)
crates/events/src/progress/tracker.rs:217
↓ 6 callersMethodremove_file
Remove a file from the store # Errors Returns an error if file removal fails
crates/store/src/file_store.rs:353
↓ 6 callersMethodresolve_with_sat
Resolve dependencies using SAT solver for more accurate resolution This method converts the dependency problem to a SAT problem and uses a DPLL-based
crates/resolver/src/resolver.rs:70
↓ 6 callersMethodsend_event
Send event if sender is available
crates/builder/src/environment/directories.rs:71
↓ 6 callersMethodverify
Verify store integrity # Errors Returns an error if package listing fails or verification operations fail
crates/store/src/lib.rs:357
↓ 5 callersMethodadd_runtime_dep
(mut self, spec: PackageSpec)
crates/resolver/src/lib.rs:70
↓ 5 callersFunctionapply_ansi_style
(text: &str, code: &str, use_color: bool)
apps/sls/src/main.rs:503
↓ 5 callersMethodclear
Clear all assignments
crates/resolver/src/sat/types.rs:302
↓ 5 callersMethodcomplete_operation
Complete an operation
crates/events/src/progress/manager.rs:312
↓ 5 callersMethodcurrent_dir
(&self)
crates/builder/src/security/context.rs:316
↓ 5 callersMethodcurrent_level
(&self)
crates/resolver/src/sat/types.rs:259
↓ 5 callersMethodemit_with_meta
(&self, meta: EventMeta, event: AppEvent)
crates/events/src/progress/manager.rs:445
↓ 5 callersMethodexecute
Execute a command in the build context # Errors Returns an error if command execution fails
crates/builder/src/build_systems/core.rs:101
↓ 5 callersMethodfile_store
(&self)
crates/store/src/lib.rs:80
↓ 5 callersMethodget_env_vars
(&self, ctx: &BuildSystemContext)
crates/builder/src/build_systems/cmake.rs:369
↓ 5 callersMethodget_tool_metadata
Get metadata for a tool
crates/platform/src/core/mod.rs:694
↓ 5 callersMethodindex_path
Get the index cache file path
crates/index/src/cache.rs:23
↓ 5 callersMethodis_false
(self)
crates/resolver/src/sat/types.rs:142
↓ 5 callersMethodlevel
(&self, var: Variable)
crates/resolver/src/sat/types.rs:253
↓ 5 callersMethodload_trusted_keys
Load trusted keys from disk # Errors Returns an error if: - The trusted keys file cannot be read - The JSON content cannot be parsed
crates/ops/src/keys.rs:124
↓ 5 callersMethodname
(&self)
crates/builder/src/artifact_qa/mod.rs:48
↓ 5 callersMethodpackage_id
(&self)
crates/resolver/src/graph.rs:125
↓ 5 callersMethodpersist_metadata
(&self)
crates/state/src/live_slots.rs:234
↓ 5 callersFunctionset_active_state
Set the active state pointer # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:36
↓ 5 callersMethodset_state
(&mut self, slot: SlotId, value: Option<Uuid>)
crates/state/src/live_slots.rs:46
↓ 5 callersMethodslot_path
(&self, slot: SlotId)
crates/state/src/live_slots.rs:107
↓ 5 callersFunctionsymlink
(target: &Path, link: &Path)
crates/platform/src/fs.rs:431
↓ 5 callersMethodupdate_progress
Update progress for an operation
crates/events/src/progress/manager.rs:204
↓ 5 callersMethodwith_event_sender
(mut self, event_sender: EventSender)
crates/install/src/prepare/context.rs:30
↓ 5 callersMethodwith_net
(mut self, net: NetClient)
crates/ops/src/context.rs:144
↓ 5 callersMethodwith_resolver
(mut self, resolver: Resolver)
crates/ops/src/context.rs:150
↓ 5 callersMethodwith_store
(mut self, store: PackageStore)
crates/ops/src/context.rs:126
↓ 4 callersFunctionadd_file_object
Insert or increment a file object entry. # Errors Returns an error if the database operations fail.
crates/state/src/file_queries_runtime.rs:17
↓ 4 callersFunctionadd_package_file_entry
Insert a package file entry for a `state_packages` row. # Errors Returns an error if the database operations fail or if the package ID is unknown.
crates/state/src/file_queries_runtime.rs:109
↓ 4 callersFunctioncalculate_state_changes
Calculate changes between parent and child states
crates/ops/src/maintenance.rs:657
↓ 4 callersFunctioncarry_forward_packages
Carry forward packages from parent state, excluding specified packages This function registers package references for packages that are unchanged bet
crates/install/src/atomic/package.rs:25
↓ 4 callersMethodclear_journal
Deletes the journal file upon successful completion # Errors Returns an error if file deletion fails
crates/state/src/manager.rs:1201
↓ 4 callersMethodcommand
(&self)
crates/builder/src/build_systems/nodejs.rs:364
↓ 4 callersFunctioncreate_package
Create a .sp package file from a directory # Errors Returns an error if: - Source directory is missing manifest.toml - Archive creation fails - I/O
crates/store/src/archive.rs:92
↓ 4 callersFunctioncreate_sp
(name: &str, version: &str)
crates/install/src/prepare/executor.rs:407
↓ 4 callersMethoddir_name
(self)
crates/types/src/state.rs:88
↓ 4 callersMethodemit_discrepancy
(&self, operation_id: &str, discrepancy: &Discrepancy)
crates/guard/src/verifier.rs:486
↓ 4 callersFunctionemit_pipeline_failed
(ctx: &BuildContext, target: &QaTarget, error: &Error)
crates/builder/src/artifact_qa/mod.rs:445
↓ 4 callersMethodexecute_filesystem_swap_and_finalize
Phase 2 of 2PC: Execute filesystem swap and finalize This method performs the filesystem operations and finalizes the transaction. # Errors Returns
crates/state/src/manager.rs:1325
↓ 4 callersMethodfetch
Download a file # Errors Returns an error if: - Network access is disabled - The URL is invalid - The download fails
crates/builder/src/core/api.rs:91
↓ 4 callersFunctionfetch_text
Fetch text content from a URL # Errors Returns an error if the HTTP request fails, the server returns an error status, or the response body cannot b
crates/net/src/lib.rs:63
↓ 4 callersMethodfinalize_db_state
Helper function for final DB state update, used by both commit and recovery # Errors Returns an error if database update fails
crates/state/src/manager.rs:1359
↓ 4 callersFunctionformat_permissions
(metadata: &std::fs::Metadata)
apps/sls/src/main.rs:462
↓ 4 callersFunctionget_all_store_refs
Fetch all archive CAS rows # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:531
↓ 4 callersMethodget_env_vars
(&self, ctx: &BuildSystemContext)
crates/builder/src/build_systems/nodejs.rs:607
↓ 4 callersMethodget_env_vars
(&self, _ctx: &BuildSystemContext)
crates/builder/src/build_systems/meson.rs:289
↓ 4 callersMethodget_env_vars
(&self, ctx: &BuildSystemContext)
crates/builder/src/build_systems/autotools.rs:368
↓ 4 callersFunctionget_package_file_entries
Fetch file entries for a state package ID. # Errors Returns an error if the database operation fails.
crates/state/src/file_queries_runtime.rs:381
↓ 4 callersMethodget_tracker
Get a tracker by its ID
crates/events/src/progress/manager.rs:97
↓ 4 callersMethodin_degree
(&self)
crates/resolver/src/execution.rs:60
↓ 4 callersFunctionincrement_store_ref
Increment archive refcount # Errors Returns an error if the database operation fails.
crates/state/src/queries_runtime.rs:248
↓ 4 callersMethodindex
(self)
crates/resolver/src/sat/types.rs:19
↓ 4 callersMethodinitialize
Initialize the file store directory structure # Errors Returns an error if directory creation fails
crates/store/src/file_store.rs:60
↓ 4 callersFunctionis_archive
Check if a file is an archive that should be extracted
crates/builder/src/stages/executors.rs:13
↓ 4 callersMethodis_command_allowed
(&self, command: &str)
crates/builder/src/config.rs:163
↓ 4 callersMethodjournal_path
Returns the canonical path to the journal file
crates/state/src/manager.rs:1153
↓ 4 callersMethodlist_states_detailed
List all states with full details # Errors Returns an error if the database query fails.
crates/state/src/manager.rs:770
↓ 4 callersFunctionmk_env
()
crates/install/src/atomic/installer.rs:373
↓ 4 callersFunctionmk_state
()
crates/state/src/manager.rs:1388
↓ 4 callersMethodpackage_name
(&self)
crates/builder/src/environment/core.rs:220
↓ 4 callersFunctionparse_and_validate_command
Parse and validate a simple command string
crates/builder/src/validation/command.rs:17
↓ 4 callersFunctionparse_yaml_recipe
Parse a YAML recipe from a file # Errors Returns an error if: - The file cannot be read - The YAML is invalid - Required fields are missing - Valida
crates/builder/src/recipe/parser.rs:17
↓ 4 callersMethodprogram
Get the program name
crates/platform/src/process/mod.rs:80
↓ 4 callersFunctionread_manifest
Read `manifest.toml` from a path # Errors Returns an error if reading or parsing the manifest fails.
crates/store/src/manifest_io.rs:14
↓ 4 callersMethodremove_dir_all
( &self, ctx: &PlatformContext, path: &Path, )
crates/platform/src/implementations/macos/filesystem.rs:604
↓ 4 callersMethodremove_package
Remove a package from the store # Errors Returns an error if directory removal fails
crates/store/src/lib.rs:198
↓ 4 callersFunctionrun_migrations
Run database migrations # Errors Returns an error if any migration fails to execute.
crates/state/src/lib.rs:97
↓ 4 callersMethodsave_trusted_keys
Save trusted keys to disk # Errors Returns an error if: - The trusted keys cannot be serialized to JSON - The file cannot be written to disk
crates/ops/src/keys.rs:146
← previousnext →101–200 of 2,023, ranked by callers