Skip to main content Crate ollama_file_find Copy item path Source BlobPathInfo LayerInfo ListedModel ScanArgs Arguments controlling a scan of the manifests directory. ScanOutcome Outcome of a scan: the successfully parsed models plus any errors that occurred. Error Error enum describing all failure modes the library can encounter. build_blob_infos Build blob path info list and decide primary digest.
Build blob info records for layers + optional config, returning the primary digest chosen.
Primary heuristic: largest (by declared size) layer; fall back to config if none. build_blob_path_info Produce a BlobPathInfo for the provided layer/config entry. digest_to_blob_path Translate a content digest (e.g. sha256:abcd...) to Ollama’s on-disk blob path. ollama_models_dir Locate the models directory (OLLAMA_MODELS or fallback to $HOME/.ollama/models) scan_manifests Scan manifests and construct ListedModel entries. Result Library wide result type.