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§

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.
SubdirIndexStats
Statistics for a single subdir indexing operation

Enums§

PreconditionChecks
Configuration for precondition checks during file operations.

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_s3
Ensures that an S3 channel has a valid noarch/repodata.json file.
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_s3
Create a new repodata.json for all packages in the channel at the given S3 URL.
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.