17 #ifndef __MESOS_RESOURCE_PROVIDER_DISK_PROFILE_ADAPTOR_HPP__ 18 #define __MESOS_RESOURCE_PROVIDER_DISK_PROFILE_ADAPTOR_HPP__ 71 google::protobuf::Map<std::string, std::string>
parameters;
95 static std::shared_ptr<DiskProfileAdaptor>
getAdaptor();
118 const std::string& profile,
119 const ResourceProviderInfo& resourceProviderInfo) = 0;
139 const ResourceProviderInfo& resourceProviderInfo) = 0;
147 #endif // __MESOS_RESOURCE_PROVIDER_DISK_PROFILE_ADAPTOR_HPP__ virtual process::Future< ProfileInfo > translate(const std::string &profile, const ResourceProviderInfo &resourceProviderInfo)=0
Returns the CSI volume capability and the parameters to create CSI volumes associated with the profil...
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_adaptor.hpp:71
virtual ~DiskProfileAdaptor()
Definition: disk_profile_adaptor.hpp:97
Volume::Source::CSIVolume::VolumeCapability capability
Corresponds to the volume_capability or volume_capabilities fields of the affected CSI requests liste...
Definition: disk_profile_adaptor.hpp:64
static void setAdaptor(const std::shared_ptr< DiskProfileAdaptor > &adaptor)
Global methods for setting and getting a DiskProfileAdaptor instance.
Definition: adaptor.hpp:21
Definition: disk_profile_adaptor.hpp:53
This module is used by Storage Resource Providers to translate the "profile" field of a Resource::Dis...
Definition: disk_profile_adaptor.hpp:50
static std::shared_ptr< DiskProfileAdaptor > getAdaptor()
virtual process::Future< hashset< std::string > > watch(const hashset< std::string > &knownProfiles, const ResourceProviderInfo &resourceProviderInfo)=0
Returns a future that will be satisifed iff the set of profiles known by the module differs from the ...
static Try< DiskProfileAdaptor * > create(const Option< std::string > &name=None())
Factory method used to create a DiskProfileAdaptor instance.
DiskProfileAdaptor()
Definition: disk_profile_adaptor.hpp:142
constexpr const char * name
Definition: shell.hpp:41
Definition: future.hpp:58