Sha256: 9cb2615dfbb471f2778371f1a9dfafda7d1803af87f7ccec6e7ae409a6ec4a99
Contents?: true
Size: 1.58 KB
Versions: 16
Compression:
Stored size: 1.58 KB
Contents
/** * @file * Declares the ZFS storage pool (zpool) fact resolver. */ #pragma once #include <facter/facts/resolver.hpp> #include <string> #include <vector> namespace facter { namespace facts { namespace resolvers { /** * Responsible for resolving ZFS storage pool (zpool) facts. */ struct zpool_resolver : resolver { /** * Constructs the zpool_resolver. */ zpool_resolver(); /** * Called to resolve all facts the resolver is responsible for. * @param facts The fact collection that is resolving facts. */ virtual void resolve(collection& facts) override; protected: /** * Gets the platform's zpool command. * @return Returns the platform's zpool command. */ virtual std::string zpool_command() = 0; /** * Represents the resolver's data. */ struct data { /** * Stores the zpool version. */ std::string version; /** * Stores the zpool feature flags. */ std::vector<std::string> feature_flags; /** * Stores the zpool version numbers. */ std::vector<std::string> versions; }; /** * Collects the resolver data. * @param facts The fact collection that is resolving facts. * @return Returns the resolver data. */ virtual data collect_data(collection& facts); }; }}} // namespace facter::facts::resolvers
Version data entries
16 entries across 16 versions & 2 rubygems