generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WriteVolumeCache API to v1beta2 Volume API group
add writevolumecache api to csi-proxy v1beta2 volume API group
- Loading branch information
Showing
16 changed files
with
3,662 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
syntax = "proto3"; | ||
|
||
package v1beta2; | ||
|
||
option go_package = "github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2"; | ||
|
||
service Volume { | ||
// ListVolumesOnDisk returns the volume IDs (in \\.\Volume{GUID} format) for | ||
// all volumes on a Disk device | ||
rpc ListVolumesOnDisk(ListVolumesOnDiskRequest) returns (ListVolumesOnDiskResponse) {} | ||
// MountVolume mounts the volume at the requested global staging path | ||
rpc MountVolume(MountVolumeRequest) returns (MountVolumeResponse) {} | ||
// DismountVolume gracefully dismounts a volume | ||
rpc DismountVolume(DismountVolumeRequest) returns (DismountVolumeResponse) {} | ||
// IsVolumeFormatted checks if a volume is formatted with NTFS | ||
rpc IsVolumeFormatted(IsVolumeFormattedRequest) returns (IsVolumeFormattedResponse) {} | ||
// FormatVolume formats a volume with the provided file system | ||
rpc FormatVolume(FormatVolumeRequest) returns (FormatVolumeResponse) {} | ||
// ResizeVolume performs resizing of the partition and file system for a block based volume | ||
rpc ResizeVolume(ResizeVolumeRequest) returns (ResizeVolumeResponse) {} | ||
// VolumeStats gathers DiskSize, VolumeSize and VolumeUsedSize for a volume | ||
rpc VolumeStats(VolumeStatsRequest) returns (VolumeStatsResponse) {} | ||
// GetVolumeDiskNumber gets the disk number of the disk where the volume is located | ||
rpc GetVolumeDiskNumber(VolumeDiskNumberRequest) returns (VolumeDiskNumberResponse) {} | ||
// GetVolumeIDFromMount gets the volume id for a given mount | ||
rpc GetVolumeIDFromMount(VolumeIDFromMountRequest) returns (VolumeIDFromMountResponse) {} | ||
// WriteVolumeCache write volume cache to disk | ||
rpc WriteVolumeCache(WriteVolumeCacheRequest) returns (WriteVolumeCacheResponse) {} | ||
} | ||
|
||
message ListVolumesOnDiskRequest { | ||
// Disk device ID of the disk to query for volumes | ||
string disk_id = 1; | ||
} | ||
|
||
message ListVolumesOnDiskResponse { | ||
// Volume device IDs of volumes on the specified disk | ||
repeated string volume_ids = 1; | ||
} | ||
|
||
message MountVolumeRequest { | ||
// Volume device ID of the volume to mount | ||
string volume_id = 1; | ||
// Path in the host's file system where the volume needs to be mounted | ||
string path = 2; | ||
} | ||
|
||
message MountVolumeResponse { | ||
// Intentionally empty | ||
} | ||
|
||
message DismountVolumeRequest { | ||
// Volume device ID of the volume to dismount | ||
string volume_id = 1; | ||
// Path where the volume has been mounted. | ||
string path = 2; | ||
} | ||
|
||
message DismountVolumeResponse { | ||
// Intentionally empty | ||
} | ||
|
||
message IsVolumeFormattedRequest { | ||
// Volume device ID of the volume to check | ||
string volume_id = 1; | ||
} | ||
|
||
message IsVolumeFormattedResponse { | ||
// Is the volume formatted with NTFS | ||
bool formatted = 1; | ||
} | ||
|
||
message FormatVolumeRequest { | ||
// Volume device ID of the volume to format | ||
string volume_id = 1; | ||
} | ||
|
||
message FormatVolumeResponse { | ||
// Intentionally empty | ||
} | ||
|
||
message ResizeVolumeRequest { | ||
// Volume device ID of the volume to dismount | ||
string volume_id = 1; | ||
// New size of the volume | ||
int64 size = 2; | ||
} | ||
|
||
message ResizeVolumeResponse { | ||
// Intentionally empty | ||
} | ||
|
||
message VolumeStatsRequest{ | ||
// Volume device Id of the volume to get the stats for | ||
string volume_id = 1; | ||
} | ||
|
||
message VolumeStatsResponse{ | ||
// Capacity of the volume | ||
int64 volumeSize = 1; | ||
// Used bytes | ||
int64 volumeUsedSize = 2; | ||
} | ||
|
||
message VolumeDiskNumberRequest{ | ||
// Volume device Id of the volume to get the disk number for | ||
string volume_id = 1; | ||
} | ||
|
||
message VolumeDiskNumberResponse{ | ||
// Corresponding disk number | ||
int64 diskNumber = 1; | ||
} | ||
|
||
message VolumeIDFromMountRequest { | ||
// Mount | ||
string mount = 1; | ||
} | ||
|
||
message VolumeIDFromMountResponse { | ||
// Mount | ||
string volume_id = 1; | ||
} | ||
|
||
message WriteVolumeCacheRequest { | ||
// Volume device ID of the volume to flush the cache | ||
string volume_id = 1; | ||
} | ||
|
||
message WriteVolumeCacheResponse { | ||
// Intentionally empty | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package v1beta2 | ||
|
||
// Add manual conversion functions here to override automatic conversion functions |
Oops, something went wrong.