Expand description
Indexing of packages in a output folder to create up to date repodata.json files
Modules§
- cache
- Cache for
PackageRecordsto optimize retry attempts during concurrent indexing. - error
- Defines errors used in this crate.
Structs§
- Channel
Metadata - Channel metadata written into generated repodata.
- Index
Channel Config - Index options that apply to a single channel.
- Index
Config - Index configuration with default options and per-channel overrides.
- Index
FsConfig - Configuration for
index_fs - Index
S3Config - Configuration for
index_s3 - Index
Stats - Statistics for the entire indexing operation
- Repodata
File Metadata - Metadata for a single repodata file, used to detect concurrent modifications.
- Repodata
Metadata Collection - Collection of metadata for all critical repodata files that need concurrent access protection.
- Repodata
Revision Info - A revision paired with its metadata: the flattened form of a
RepodataRevisionsentry, used as indexer input and in reporter messages. - Repodata
Revision Metadata - Metadata for a single
RepodataRevisionsentry; the revision itself is the map key. - Subdir
Index Stats - Statistics for a single subdir indexing operation
Enums§
- Package
Revision Assignment - How packages are assigned to repodata revisions while indexing.
- Precondition
Checks - Configuration for precondition checks during file operations.
- Repodata
Revision - A repodata revision.
Functions§
- ensure_
channel_ initialized - Ensures that a channel has a valid
noarch/repodata.jsonfile. - ensure_
channel_ initialized_ fs - Ensures that a filesystem channel has a valid
noarch/repodata.jsonfile. - ensure_
channel_ initialized_ fs_ with_ channel_ metadata - Ensures that a filesystem channel has a valid
noarch/repodata.jsonfile and writes channel metadata into the generated file if initialization is needed. - ensure_
channel_ initialized_ s3 - Ensures that an S3 channel has a valid
noarch/repodata.jsonfile. - ensure_
channel_ initialized_ s3_ with_ channel_ metadata - Ensures that an S3 channel has a valid
noarch/repodata.jsonfile and writes channel metadata into the generated file if initialization is needed. - ensure_
channel_ initialized_ with_ channel_ metadata - Ensures that a channel has a valid
noarch/repodata.jsonfile and writes channel metadata into the generated file if initialization is needed. - index
- Create a new
repodata.jsonfor all packages in the given operator’s root. - index_
fs - Create a new
repodata.jsonfor all packages in the channel at the given directory. - index_
fs_ with_ channel_ metadata - Create a new
repodata.jsonfor all packages in the channel at the given directory and write channel metadata into the generated repodata. - index_
s3 - Create a new
repodata.jsonfor all packages in the channel at the given S3 URL. - index_
s3_ with_ channel_ metadata - Create a new
repodata.jsonfor all packages in the channel at the given S3 URL and write channel metadata into the generated repodata. - index_
with_ channel_ metadata - Create a new
repodata.jsonfor all packages in the given operator’s root and write channel metadata into the generated repodata. - package_
record_ from_ archive - Extract the package record from a conda package archive.
- package_
record_ from_ conda - Extract the package record from a
.condapackage file. This function will look for theinfo/index.jsonfile in the conda package and extract the package record from it. - package_
record_ from_ conda_ reader - Extract the package record from a
.condapackage file content. This function will look for theinfo/index.jsonfile in the conda package and extract the package record from it. - package_
record_ from_ index_ json - Extract the package record from an
index.jsonfile. - package_
record_ from_ tar_ bz2 - Extract the package record from a
.tar.bz2package file. This function will look for theinfo/index.jsonfile in the conda package and extract the package record from it. - package_
record_ from_ tar_ bz2_ reader - Extract the package record from a
.tar.bz2package file. This function will look for theinfo/index.jsonfile in the conda package and extract the package record from it. - write_
repodata - Write a
repodata.jsonfor all packages in the given configurator’s root. Uses conditional writes based on the provided metadata to prevent concurrent modification issues. - write_
retry_ policy - Returns a retry policy optimized for write operations with potential lock contention.
Type Aliases§
- Repodata
Revisions - Repodata revisions keyed by revision, mirroring the
vNdictionary of the CEP draft https://github.com/conda/ceps/pull/146. Keying encodes uniqueness; insertion order is preserved.