16 const std::string storeUri;
17 const std::set<std::string> systemTypes;
18 const std::string sshKey;
19 const unsigned int maxJobs;
20 const float speedFactor;
21 const std::set<std::string> supportedFeatures;
22 const std::set<std::string> mandatoryFeatures;
23 const std::string sshPublicHostKey;
36 bool allSupported(
const std::set<std::string> & features)
const;
41 bool mandatoryMet(
const std::set<std::string> & features)
const;
43 Machine(
decltype(storeUri) storeUri,
44 decltype(systemTypes) systemTypes,
45 decltype(sshKey) sshKey,
46 decltype(maxJobs) maxJobs,
47 decltype(speedFactor) speedFactor,
48 decltype(supportedFeatures) supportedFeatures,
49 decltype(mandatoryFeatures) mandatoryFeatures,
50 decltype(sshPublicHostKey) sshPublicHostKey);
52 kj::Promise<Result<ref<Store>>> openStore()
const;