17 #ifndef __MESOS_RESOURCE_PROVIDER_DISK_PROFILE_HPP__
18 #define __MESOS_RESOURCE_PROVIDER_DISK_PROFILE_HPP__
71 google::protobuf::Map<std::string, std::string>
parameters;
94 static void setAdaptor(
const std::shared_ptr<DiskProfileAdaptor>& adaptor);
95 static std::shared_ptr<DiskProfileAdaptor>
getAdaptor();
117 const std::string& profile,
118 const std::string& csiPluginInfoType) = 0;
136 const std::string& csiPluginInfoType) = 0;
144 #endif // __MESOS_RESOURCE_PROVIDER_DISK_PROFILE_HPP__
google::protobuf::Map< std::string, std::string > parameters
Free-form key-value pairs which should be passed into the body of a CreateVolumeRequest.
Definition: disk_profile.hpp:71
virtual ~DiskProfileAdaptor()
Definition: disk_profile.hpp:97
virtual process::Future< hashset< std::string > > watch(const hashset< std::string > &knownProfiles, const std::string &csiPluginInfoType)=0
Returns a future that will be satisifed iff the set of profiles known by the module differs from the ...
static void setAdaptor(const std::shared_ptr< DiskProfileAdaptor > &adaptor)
Global methods for setting and getting a DiskProfileAdaptor instance.
Definition: disk_profile.hpp:53
This module is used by Storage Resource Providers to translate the "profile" field of a Resource::Dis...
Definition: disk_profile.hpp:50
virtual process::Future< ProfileInfo > translate(const std::string &profile, const std::string &csiPluginInfoType)=0
Called before a Storage Resource Provider makes an affected CSI request.
csi::VolumeCapability capability
Corresponds to the volume_capability or volume_capabilities fields of the affected CSI requests liste...
Definition: disk_profile.hpp:64
static std::shared_ptr< DiskProfileAdaptor > getAdaptor()
static Try< DiskProfileAdaptor * > create(const Option< std::string > &name=None())
Factory method used to create a DiskProfileAdaptor instance.
DiskProfileAdaptor()
Definition: disk_profile.hpp:139
constexpr const char * name
Definition: shell.hpp:41
Definition: future.hpp:57