Skip to content

Instantly share code, notes, and snippets.

Last active August 12, 2018 14:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
service Controller {
// provisions a volume
rpc CreateVolume (CreateVolumeRequest)
returns (CreateVolumeResponse) {}
// deletes a previously provisioned volume
rpc DeleteVolume (DeleteVolumeRequest)
returns (DeleteVolumeResponse) {}
// make a volume available on some required node
rpc ControllerPublishVolume (ControllerPublishVolumeRequest)
returns (ControllerPublishVolumeResponse) {}
// make a volume un-available on some required node
rpc ControllerUnpublishVolume (ControllerUnpublishVolumeRequest)
returns (ControllerUnpublishVolumeResponse) {}
// E.g. can it be used for read/write simultaneously from multiple nodes
rpc ValidateVolumeCapabilities (ValidateVolumeCapabilitiesRequest)
returns (ValidateVolumeCapabilitiesResponse) {}
// return all available volumes
rpc ListVolumes (ListVolumesRequest)
returns (ListVolumesResponse) {}
// capacity of the total available storage pool
rpc GetCapacity (GetCapacityRequest)
returns (GetCapacityResponse) {}
// E.g. plugins might not implement GetCapacity, Snapshotting
rpc ControllerGetCapabilities (ControllerGetCapabilitiesRequest)
returns (ControllerGetCapabilitiesResponse) {}
// make a snapshot
rpc CreateSnapshot (CreateSnapshotRequest)
returns (CreateSnapshotResponse) {}
// Delete a given snapshot
rpc DeleteSnapshot (DeleteSnapshotRequest)
returns (DeleteSnapshotResponse) {}
// list snapshots
rpc ListSnapshots (ListSnapshotsRequest)
returns (ListSnapshotsResponse) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment