Crate sp_variant
source ·Expand description
Detect the OS distribution and version.
Modules§
- Yet another INI-like file parser.
Structs§
- StorPool builder data.
- Debian package repository data.
- Check whether this host is running this particular OS variant.
- The aspects of the StorPool operation supported for this build variant.
- A single StorPool build variant with all its options.
- The internal variant format data: all build variants, some more info.
- The internal format of the variant definition format data.
- The version of the variant definition format data.
- Yum/DNF package repository data.
Enums§
- OS package repository data.
- An error that occurred while determining the Linux variant.
- The supported StorPool build variants (OS distribution, version, etc).
Functions§
- Get the list of StorPool variants from the internal
data
module. - Detect the variant that this host is currently running.
- Detect the current host’s variant from the supplied data.
- Get information about all variants.
- Get information about all variants defined in the specified structure.
- Get information about all variants in the order of inheritance between them.
- Get information about all variants defined in the specified structure in order.
- Get the variant with the specified builder alias from the supplied data.
- Get the metadata format version of the variant data.
- Get the metadata format version of the supplied variant data structure.
- Get the variant with the specified name from the supplied data.
- Get the program version from the variant data.
- Get the program version from the supplied variant data structure.