17 #ifndef __CSI_V1_VOLUME_MANAGER_HPP__ 18 #define __CSI_V1_VOLUME_MANAGER_HPP__ 23 #include <google/protobuf/map.h> 42 #include "csi/state.hpp" 50 class VolumeManagerProcess;
57 const std::string& rootDir,
58 const CSIPluginInfo& info,
79 const Volume::Source::CSIVolume::VolumeCapability& capability,
80 const google::protobuf::Map<std::string, std::string>& parameters)
84 const std::string&
name,
85 const Bytes& capacity,
86 const Volume::Source::CSIVolume::VolumeCapability& capability,
87 const google::protobuf::Map<std::string, std::string>& parameters)
92 const Volume::Source::CSIVolume::VolumeCapability& capability,
93 const google::protobuf::Map<std::string, std::string>& parameters)
103 const std::string& volumeId,
107 const std::string& volumeId)
override;
118 #endif // __CSI_V1_VOLUME_MANAGER_HPP__ Definition: volume_manager.hpp:57
Definition: option.hpp:29
Definition: v1_volume_manager.hpp:53
VolumeManager(const std::string &rootDir, const CSIPluginInfo &info, const hashset< Service > &services, const process::grpc::client::Runtime &runtime, ServiceManager *serviceManager, Metrics *metrics, SecretResolver *secretResolver)
Definition: volume_manager.hpp:48
process::Future< VolumeInfo > createVolume(const std::string &name, const Bytes &capacity, const Volume::Source::CSIVolume::VolumeCapability &capability, const google::protobuf::Map< std::string, std::string > ¶meters) override
process::Future< Bytes > getCapacity(const Volume::Source::CSIVolume::VolumeCapability &capability, const google::protobuf::Map< std::string, std::string > ¶meters) override
Definition: metrics.hpp:28
process::Future< Nothing > publishVolume(const std::string &volumeId, const Option< state::VolumeState > &volumeState=None()) override
A copyable interface to manage an internal runtime process for asynchronous gRPC calls.
Definition: grpc.hpp:157
process::Future< Nothing > unpublishVolume(const std::string &volumeId) override
~VolumeManager() override
process::Future< Nothing > detachVolume(const std::string &volumeId) override
Definition: executor.hpp:48
process::Future< Nothing > recover() override
Definition: resolver.hpp:34
Definition: service_manager.hpp:51
PID< MetricsProcess > metrics
constexpr const char * name
Definition: shell.hpp:41
process::Future< bool > deleteVolume(const std::string &volumeId) override
process::Future< Option< Error > > validateVolume(const VolumeInfo &volumeInfo, const Volume::Source::CSIVolume::VolumeCapability &capability, const google::protobuf::Map< std::string, std::string > ¶meters) override
process::Future< Nothing > attachVolume(const std::string &volumeId) override
VolumeManager & operator=(const VolumeManager &)=delete
process::Future< std::vector< VolumeInfo > > listVolumes() override