-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
networkfence: add auto-generated files
Signed-off-by: Yug Gupta <[email protected]>
- Loading branch information
1 parent
50b40cd
commit 32fa508
Showing
5 changed files
with
1,182 additions
and
71 deletions.
There are no files selected for viewing
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,80 @@ | ||
// Code generated by make; DO NOT EDIT. | ||
syntax = "proto3"; | ||
package fence; | ||
|
||
import "github.com/container-storage-interface/spec/lib/go/csi/csi.proto"; | ||
import "google/protobuf/descriptor.proto"; | ||
|
||
option go_package = "github.com/csi-addons/spec/lib/go/fence"; | ||
|
||
// FenceController holds the RPC method for performing fencing operations. | ||
service FenceController { | ||
// FenceClusterNetwork RPC call to perform a fencing operation. | ||
rpc FenceClusterNetwork (FenceClusterNetworkRequest) | ||
returns (FenceClusterNetworkResponse) {} | ||
|
||
// UnfenceClusterNetwork RPC call to remove a list of CIDR blocks from the | ||
// list of blocklisted/fenced clients. | ||
rpc UnfenceClusterNetwork (UnfenceClusterNetworkRequest) | ||
returns (UnfenceClusterNetworkResponse) {} | ||
|
||
// ListClusterFence RPC call to provide a list of blocklisted/fenced clients. | ||
rpc ListClusterFence(ListClusterFenceRequest) | ||
returns (ListClusterFenceResponse){} | ||
} | ||
// FenceClusterNetworkRequest contains the information needed to identify | ||
// the storage cluster so that the appropriate fencing operation can be | ||
// performed. | ||
message FenceClusterNetworkRequest { | ||
// Plugin specific parameters passed in as opaque key-value pairs. | ||
map<string, string> parameters = 1; | ||
// Secrets required by the plugin to complete the request. | ||
map<string, string> secrets = 2 [(csi.v1.csi_secret) = true]; | ||
// list of CIDR blocks on which the fencing operation is expected to be | ||
// performed. | ||
repeated CIDR cidrs = 3; | ||
} | ||
|
||
// FenceClusterNetworkResponse is returned by the CSI-driver as a result of | ||
// the FenceClusterNetworkRequest call. | ||
message FenceClusterNetworkResponse { | ||
// Intentionally empty. | ||
} | ||
// UnfenceClusterNetworkRequest contains the information needed to identify | ||
// the cluster so that the appropriate fence operation can be | ||
// disabled. | ||
message UnfenceClusterNetworkRequest { | ||
// Plugin specific parameters passed in as opaque key-value pairs. | ||
map<string, string> parameters = 1; | ||
// Secrets required by the plugin to complete the request. | ||
map<string, string> secrets = 2 [(csi.v1.csi_secret) = true]; | ||
// list of CIDR blocks on which the fencing operation is expected to be | ||
// performed. | ||
repeated CIDR cidrs = 3; | ||
} | ||
|
||
// UnfenceClusterNetworkResponse is returned by the CSI-driver as a result of | ||
// the UnfenceClusterNetworkRequest call. | ||
message UnfenceClusterNetworkResponse { | ||
// Intentionally empty. | ||
} | ||
// ListClusterFenceRequest contains the information needed to identify | ||
// the cluster so that the appropriate fenced clients can be listed. | ||
message ListClusterFenceRequest { | ||
// Plugin specific parameters passed in as opaque key-value pairs. | ||
map<string, string> parameters = 1; | ||
// Secrets required by the plugin to complete the request. | ||
map<string, string> secrets = 2 [(csi.v1.csi_secret) = true]; | ||
} | ||
|
||
// ListClusterFenceResponse holds the information about the result of the | ||
// ListClusterFenceResponse call. | ||
message ListClusterFenceResponse { | ||
// list of IPs that are blocklisted by the SP. | ||
repeated CIDR cidrs = 1; | ||
} | ||
// CIDR holds a CIDR block. | ||
message CIDR { | ||
// CIDR block | ||
string cidr = 1; | ||
} |
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
Oops, something went wrong.