Crate sp_variant

Source
Expand description

Detect the OS distribution and version.

Modules§

yai
Yet another INI-like file parser.

Structs§

Builder
StorPool builder data.
DebRepo
Debian package repository data.
Detect
Check whether this host is running this particular OS variant.
Supported
The aspects of the StorPool operation supported for this build variant.
Variant
A single StorPool build variant with all its options.
VariantDefTop
The internal variant format data: all build variants, some more info.
VariantFormat
The internal format of the variant definition format data.
VariantFormatVersion
The version of the variant definition format data.
YumRepo
Yum/DNF package repository data.

Enums§

Repo
OS package repository data.
VariantError
An error that occurred while determining the Linux variant.
VariantKind
The supported StorPool build variants (OS distribution, version, etc).

Functions§

build_variants
Get the list of StorPool variants from the internal data module.
detect
Detect the variant that this host is currently running.
detect_from
Detect the current host’s variant from the supplied data.
get_all_variants
Get information about all variants.
get_all_variants_from
Get information about all variants defined in the specified structure.
get_all_variants_in_order
Get information about all variants in the order of inheritance between them.
get_all_variants_in_order_from
Get information about all variants defined in the specified structure in order.
get_by_alias_from
Get the variant with the specified builder alias from the supplied data.
get_format_version
Get the metadata format version of the variant data.
get_format_version_from
Get the metadata format version of the supplied variant data structure.
get_from
Get the variant with the specified name from the supplied data.
get_program_version
Get the program version from the variant data.
get_program_version_from
Get the program version from the supplied variant data structure.