Skip to main content

Crate rattler_index

Crate rattler_index 

Source
Expand description

Indexing of packages in a output folder to create up to date repodata.json files

Modules§

cache
Cache for PackageRecords to optimize retry attempts during concurrent indexing.
error
Defines errors used in this crate.

Structs§

ChannelMetadata
Channel metadata written into generated repodata.
IndexChannelConfig
Index options that apply to a single channel.
IndexConfig
Index configuration with default options and per-channel overrides.
IndexFsConfig
Configuration for index_fs
IndexS3Config
Configuration for index_s3
IndexStats
Statistics for the entire indexing operation
RepodataFileMetadata
Metadata for a single repodata file, used to detect concurrent modifications.
RepodataMetadataCollection
Collection of metadata for all critical repodata files that need concurrent access protection.
RepodataRevisionInfo
A revision paired with its metadata: the flattened form of a RepodataRevisions entry, used as indexer input and in reporter messages.
RepodataRevisionMetadata
Metadata for a single RepodataRevisions entry; the revision itself is the map key.
SubdirIndexStats
Statistics for a single subdir indexing operation

Enums§

PackageRevisionAssignment
How packages are assigned to repodata revisions while indexing.
PreconditionChecks
Configuration for precondition checks during file operations.
RepodataRevision
A repodata revision.

Functions§

ensure_channel_initialized
Ensures that a channel has a valid noarch/repodata.json file.
ensure_channel_initialized_fs
Ensures that a filesystem channel has a valid noarch/repodata.json file.
ensure_channel_initialized_fs_with_channel_metadata
Ensures that a filesystem channel has a valid noarch/repodata.json file 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.json file.
ensure_channel_initialized_s3_with_channel_metadata
Ensures that an S3 channel has a valid noarch/repodata.json file 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.json file and writes channel metadata into the generated file if initialization is needed.
index
Create a new repodata.json for all packages in the given operator’s root.
index_fs
Create a new repodata.json for all packages in the channel at the given directory.
index_fs_with_channel_metadata
Create a new repodata.json for all packages in the channel at the given directory and write channel metadata into the generated repodata.
index_s3
Create a new repodata.json for all packages in the channel at the given S3 URL.
index_s3_with_channel_metadata
Create a new repodata.json for 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.json for 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 .conda package file. This function will look for the info/index.json file in the conda package and extract the package record from it.
package_record_from_conda_reader
Extract the package record from a .conda package file content. This function will look for the info/index.json file in the conda package and extract the package record from it.
package_record_from_index_json
Extract the package record from an index.json file.
package_record_from_tar_bz2
Extract the package record from a .tar.bz2 package file. This function will look for the info/index.json file in the conda package and extract the package record from it.
package_record_from_tar_bz2_reader
Extract the package record from a .tar.bz2 package file. This function will look for the info/index.json file in the conda package and extract the package record from it.
write_repodata
Write a repodata.json for 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§

RepodataRevisions
Repodata revisions keyed by revision, mirroring the vN dictionary of the CEP draft https://github.com/conda/ceps/pull/146. Keying encodes uniqueness; insertion order is preserved.