2017-05-24 13:34:59 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2020-05-14 22:45:10 +00:00
|
|
|
// versions:
|
2020-06-29 21:23:28 +00:00
|
|
|
// protoc-gen-go v1.24.0
|
|
|
|
// protoc v3.6.1
|
2018-06-04 14:19:26 +00:00
|
|
|
// source: vault/request_forwarding_service.proto
|
2016-08-19 15:49:25 +00:00
|
|
|
|
2018-09-22 21:58:39 +00:00
|
|
|
package vault
|
2016-08-19 15:49:25 +00:00
|
|
|
|
2018-09-22 21:58:39 +00:00
|
|
|
import (
|
2019-04-13 03:13:14 +00:00
|
|
|
context "context"
|
2018-09-22 21:58:39 +00:00
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
forwarding "github.com/hashicorp/vault/helper/forwarding"
|
2016-08-19 15:49:25 +00:00
|
|
|
grpc "google.golang.org/grpc"
|
2019-07-08 23:02:20 +00:00
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
2020-05-14 22:45:10 +00:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2016-08-19 15:49:25 +00:00
|
|
|
)
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2016-08-19 15:49:25 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
2017-10-23 21:45:05 +00:00
|
|
|
|
2017-05-24 19:06:56 +00:00
|
|
|
type EchoRequest struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2018-07-11 00:49:48 +00:00
|
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
2017-10-23 18:59:37 +00:00
|
|
|
// ClusterAddr is used to send up a standby node's address to the active
|
|
|
|
// node upon heartbeat
|
2018-07-11 00:49:48 +00:00
|
|
|
ClusterAddr string `protobuf:"bytes,2,opt,name=cluster_addr,json=clusterAddr,proto3" json:"cluster_addr,omitempty"`
|
2017-10-23 18:59:37 +00:00
|
|
|
// ClusterAddrs is used to send up a list of cluster addresses to a dr
|
|
|
|
// primary from a dr secondary
|
2020-06-29 21:23:28 +00:00
|
|
|
ClusterAddrs []string `protobuf:"bytes,3,rep,name=cluster_addrs,json=clusterAddrs,proto3" json:"cluster_addrs,omitempty"`
|
|
|
|
RaftAppliedIndex uint64 `protobuf:"varint,4,opt,name=raft_applied_index,json=raftAppliedIndex,proto3" json:"raft_applied_index,omitempty"`
|
|
|
|
RaftNodeID string `protobuf:"bytes,5,opt,name=raft_node_id,json=raftNodeId,proto3" json:"raft_node_id,omitempty"`
|
|
|
|
NodeInfo *NodeInformation `protobuf:"bytes,6,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"`
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoRequest) Reset() {
|
|
|
|
*x = EchoRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*EchoRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EchoRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2017-05-24 19:06:56 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EchoRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_vault_request_forwarding_service_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2017-05-24 19:06:56 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoRequest) GetMessage() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Message
|
2017-05-24 19:06:56 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoRequest) GetClusterAddr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClusterAddr
|
2017-05-24 19:06:56 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoRequest) GetClusterAddrs() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClusterAddrs
|
2017-10-23 18:59:37 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoRequest) GetRaftAppliedIndex() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.RaftAppliedIndex
|
2019-06-20 19:14:58 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoRequest) GetRaftNodeID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.RaftNodeID
|
2019-06-20 19:14:58 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-29 21:23:28 +00:00
|
|
|
func (x *EchoRequest) GetNodeInfo() *NodeInformation {
|
|
|
|
if x != nil {
|
|
|
|
return x.NodeInfo
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-05-24 19:06:56 +00:00
|
|
|
type EchoReply struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-06-29 21:23:28 +00:00
|
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
|
|
|
ClusterAddrs []string `protobuf:"bytes,2,rep,name=cluster_addrs,json=clusterAddrs,proto3" json:"cluster_addrs,omitempty"`
|
|
|
|
ReplicationState uint32 `protobuf:"varint,3,opt,name=replication_state,json=replicationState,proto3" json:"replication_state,omitempty"`
|
|
|
|
RaftAppliedIndex uint64 `protobuf:"varint,4,opt,name=raft_applied_index,json=raftAppliedIndex,proto3" json:"raft_applied_index,omitempty"`
|
|
|
|
RaftNodeID string `protobuf:"bytes,5,opt,name=raft_node_id,json=raftNodeId,proto3" json:"raft_node_id,omitempty"`
|
|
|
|
NodeInfo *NodeInformation `protobuf:"bytes,6,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"`
|
2020-05-14 22:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *EchoReply) Reset() {
|
|
|
|
*x = EchoReply{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoReply) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*EchoReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EchoReply) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-05-03 19:38:53 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use EchoReply.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EchoReply) Descriptor() ([]byte, []int) {
|
|
|
|
return file_vault_request_forwarding_service_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2017-05-24 19:06:56 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoReply) GetMessage() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Message
|
2017-05-24 19:06:56 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoReply) GetClusterAddrs() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClusterAddrs
|
2017-05-24 19:06:56 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoReply) GetReplicationState() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ReplicationState
|
2018-01-18 03:17:47 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoReply) GetRaftAppliedIndex() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.RaftAppliedIndex
|
2019-06-20 19:14:58 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *EchoReply) GetRaftNodeID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.RaftNodeID
|
2019-06-20 19:14:58 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-29 21:23:28 +00:00
|
|
|
func (x *EchoReply) GetNodeInfo() *NodeInformation {
|
|
|
|
if x != nil {
|
|
|
|
return x.NodeInfo
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodeInformation struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
ClusterAddr string `protobuf:"bytes,1,opt,name=cluster_addr,json=clusterAddr,proto3" json:"cluster_addr,omitempty"`
|
|
|
|
ApiAddr string `protobuf:"bytes,2,opt,name=api_addr,json=apiAddr,proto3" json:"api_addr,omitempty"`
|
|
|
|
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
|
|
NodeID string `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
|
|
|
|
ReplicationState uint32 `protobuf:"varint,5,opt,name=replication_state,json=replicationState,proto3" json:"replication_state,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NodeInformation) Reset() {
|
|
|
|
*x = NodeInformation{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NodeInformation) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*NodeInformation) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *NodeInformation) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use NodeInformation.ProtoReflect.Descriptor instead.
|
|
|
|
func (*NodeInformation) Descriptor() ([]byte, []int) {
|
|
|
|
return file_vault_request_forwarding_service_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NodeInformation) GetClusterAddr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClusterAddr
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NodeInformation) GetApiAddr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ApiAddr
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NodeInformation) GetMode() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Mode
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NodeInformation) GetNodeID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.NodeID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *NodeInformation) GetReplicationState() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ReplicationState
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-09-18 03:03:00 +00:00
|
|
|
type ClientKey struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
X []byte `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"`
|
|
|
|
Y []byte `protobuf:"bytes,3,opt,name=y,proto3" json:"y,omitempty"`
|
|
|
|
D []byte `protobuf:"bytes,4,opt,name=d,proto3" json:"d,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ClientKey) Reset() {
|
|
|
|
*x = ClientKey{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-06-29 21:23:28 +00:00
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[3]
|
2020-05-14 22:45:10 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ClientKey) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*ClientKey) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ClientKey) ProtoReflect() protoreflect.Message {
|
2020-06-29 21:23:28 +00:00
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[3]
|
2020-05-14 22:45:10 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use ClientKey.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ClientKey) Descriptor() ([]byte, []int) {
|
2020-06-29 21:23:28 +00:00
|
|
|
return file_vault_request_forwarding_service_proto_rawDescGZIP(), []int{3}
|
2020-05-14 22:45:10 +00:00
|
|
|
}
|
2018-09-18 03:03:00 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ClientKey) GetType() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ClientKey) GetX() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.X
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ClientKey) GetY() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Y
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *ClientKey) GetD() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.D
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PerfStandbyElectionInput struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PerfStandbyElectionInput) Reset() {
|
|
|
|
*x = PerfStandbyElectionInput{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-06-29 21:23:28 +00:00
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[4]
|
2020-05-14 22:45:10 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PerfStandbyElectionInput) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*PerfStandbyElectionInput) ProtoMessage() {}
|
2018-09-18 03:03:00 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PerfStandbyElectionInput) ProtoReflect() protoreflect.Message {
|
2020-06-29 21:23:28 +00:00
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[4]
|
2020-05-14 22:45:10 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
2018-09-22 21:58:39 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use PerfStandbyElectionInput.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PerfStandbyElectionInput) Descriptor() ([]byte, []int) {
|
2020-06-29 21:23:28 +00:00
|
|
|
return file_vault_request_forwarding_service_proto_rawDescGZIP(), []int{4}
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
type PerfStandbyElectionResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
ClusterID string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
|
|
|
|
PrimaryClusterAddr string `protobuf:"bytes,3,opt,name=primary_cluster_addr,json=primaryClusterAddr,proto3" json:"primary_cluster_addr,omitempty"`
|
|
|
|
CaCert []byte `protobuf:"bytes,4,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
|
|
|
|
ClientCert []byte `protobuf:"bytes,5,opt,name=client_cert,json=clientCert,proto3" json:"client_cert,omitempty"`
|
|
|
|
ClientKey *ClientKey `protobuf:"bytes,6,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PerfStandbyElectionResponse) Reset() {
|
|
|
|
*x = PerfStandbyElectionResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-06-29 21:23:28 +00:00
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[5]
|
2020-05-14 22:45:10 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (x *PerfStandbyElectionResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
|
|
|
|
func (*PerfStandbyElectionResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PerfStandbyElectionResponse) ProtoReflect() protoreflect.Message {
|
2020-06-29 21:23:28 +00:00
|
|
|
mi := &file_vault_request_forwarding_service_proto_msgTypes[5]
|
2020-05-14 22:45:10 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
// Deprecated: Use PerfStandbyElectionResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PerfStandbyElectionResponse) Descriptor() ([]byte, []int) {
|
2020-06-29 21:23:28 +00:00
|
|
|
return file_vault_request_forwarding_service_proto_rawDescGZIP(), []int{5}
|
2020-05-14 22:45:10 +00:00
|
|
|
}
|
2018-09-18 03:03:00 +00:00
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PerfStandbyElectionResponse) GetID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ID
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PerfStandbyElectionResponse) GetClusterID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClusterID
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PerfStandbyElectionResponse) GetPrimaryClusterAddr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.PrimaryClusterAddr
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PerfStandbyElectionResponse) GetCaCert() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.CaCert
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PerfStandbyElectionResponse) GetClientCert() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClientCert
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (x *PerfStandbyElectionResponse) GetClientKey() *ClientKey {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClientKey
|
2018-09-18 03:03:00 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
var File_vault_request_forwarding_service_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_vault_request_forwarding_service_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x26, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f,
|
|
|
|
0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
|
|
|
|
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x1a,
|
|
|
|
0x1d, 0x68, 0x65, 0x6c, 0x70, 0x65, 0x72, 0x2f, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69,
|
2020-06-29 21:23:28 +00:00
|
|
|
0x6e, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf4,
|
2020-05-14 22:45:10 +00:00
|
|
|
0x01, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18,
|
|
|
|
0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73,
|
|
|
|
0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
|
|
|
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x63,
|
|
|
|
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03,
|
|
|
|
0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x73,
|
|
|
|
0x12, 0x2c, 0x0a, 0x12, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64,
|
|
|
|
0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x61,
|
|
|
|
0x66, 0x74, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x20,
|
|
|
|
0x0a, 0x0c, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x61, 0x66, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64,
|
2020-06-29 21:23:28 +00:00
|
|
|
0x12, 0x33, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20,
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65,
|
|
|
|
0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6e, 0x6f, 0x64,
|
|
|
|
0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xfc, 0x01, 0x0a, 0x09, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65,
|
|
|
|
0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a,
|
|
|
|
0x0d, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x73, 0x18, 0x02,
|
|
|
|
0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64,
|
|
|
|
0x72, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
|
|
|
0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x72,
|
|
|
|
0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
|
|
|
|
0x2c, 0x0a, 0x12, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x5f,
|
|
|
|
0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x61, 0x66,
|
|
|
|
0x74, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x20, 0x0a,
|
|
|
|
0x0c, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x61, 0x66, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12,
|
|
|
|
0x33, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49,
|
|
|
|
0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65,
|
|
|
|
0x49, 0x6e, 0x66, 0x6f, 0x22, 0xa9, 0x01, 0x0a, 0x0f, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66,
|
|
|
|
0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73,
|
|
|
|
0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
|
|
|
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x61,
|
|
|
|
0x70, 0x69, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61,
|
|
|
|
0x70, 0x69, 0x41, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f,
|
|
|
|
0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64,
|
|
|
|
0x65, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10,
|
|
|
|
0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65,
|
|
|
|
0x22, 0x49, 0x0a, 0x09, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a,
|
|
|
|
0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,
|
|
|
|
0x65, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x78, 0x12,
|
|
|
|
0x0c, 0x0a, 0x01, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x79, 0x12, 0x0c, 0x0a,
|
|
|
|
0x01, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x50,
|
|
|
|
0x65, 0x72, 0x66, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x22, 0xe9, 0x01, 0x0a, 0x1b, 0x50, 0x65, 0x72, 0x66,
|
|
|
|
0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52,
|
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74,
|
|
|
|
0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75,
|
|
|
|
0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72,
|
|
|
|
0x79, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x43, 0x6c, 0x75,
|
|
|
|
0x73, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x61, 0x5f, 0x63,
|
|
|
|
0x65, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x61, 0x43, 0x65, 0x72,
|
|
|
|
0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74,
|
|
|
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65,
|
|
|
|
0x72, 0x74, 0x12, 0x2f, 0x0a, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79,
|
|
|
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x43,
|
|
|
|
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
|
|
0x4b, 0x65, 0x79, 0x32, 0xf0, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x46,
|
|
|
|
0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x3d, 0x0a, 0x0e, 0x46, 0x6f, 0x72,
|
|
|
|
0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x13, 0x2e, 0x66, 0x6f,
|
|
|
|
0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x1a, 0x14, 0x2e, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x2e, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f,
|
|
|
|
0x12, 0x12, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x63, 0x68,
|
|
|
|
0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x21, 0x50, 0x65, 0x72, 0x66,
|
|
|
|
0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x45, 0x6c,
|
|
|
|
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x2e,
|
|
|
|
0x76, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62,
|
|
|
|
0x79, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x1a, 0x22,
|
|
|
|
0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x53, 0x74, 0x61, 0x6e, 0x64,
|
|
|
|
0x62, 0x79, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x22, 0x5a, 0x20, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
|
|
|
|
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x76,
|
|
|
|
0x61, 0x75, 0x6c, 0x74, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
0x6f, 0x33,
|
2020-05-14 22:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_vault_request_forwarding_service_proto_rawDescOnce sync.Once
|
|
|
|
file_vault_request_forwarding_service_proto_rawDescData = file_vault_request_forwarding_service_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_vault_request_forwarding_service_proto_rawDescGZIP() []byte {
|
|
|
|
file_vault_request_forwarding_service_proto_rawDescOnce.Do(func() {
|
|
|
|
file_vault_request_forwarding_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_vault_request_forwarding_service_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_vault_request_forwarding_service_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2020-06-29 21:23:28 +00:00
|
|
|
var file_vault_request_forwarding_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
2020-05-14 22:45:10 +00:00
|
|
|
var file_vault_request_forwarding_service_proto_goTypes = []interface{}{
|
|
|
|
(*EchoRequest)(nil), // 0: vault.EchoRequest
|
|
|
|
(*EchoReply)(nil), // 1: vault.EchoReply
|
2020-06-29 21:23:28 +00:00
|
|
|
(*NodeInformation)(nil), // 2: vault.NodeInformation
|
|
|
|
(*ClientKey)(nil), // 3: vault.ClientKey
|
|
|
|
(*PerfStandbyElectionInput)(nil), // 4: vault.PerfStandbyElectionInput
|
|
|
|
(*PerfStandbyElectionResponse)(nil), // 5: vault.PerfStandbyElectionResponse
|
|
|
|
(*forwarding.Request)(nil), // 6: forwarding.Request
|
|
|
|
(*forwarding.Response)(nil), // 7: forwarding.Response
|
2020-05-14 22:45:10 +00:00
|
|
|
}
|
|
|
|
var file_vault_request_forwarding_service_proto_depIDxs = []int32{
|
2020-06-29 21:23:28 +00:00
|
|
|
2, // 0: vault.EchoRequest.node_info:type_name -> vault.NodeInformation
|
|
|
|
2, // 1: vault.EchoReply.node_info:type_name -> vault.NodeInformation
|
|
|
|
3, // 2: vault.PerfStandbyElectionResponse.client_key:type_name -> vault.ClientKey
|
|
|
|
6, // 3: vault.RequestForwarding.ForwardRequest:input_type -> forwarding.Request
|
|
|
|
0, // 4: vault.RequestForwarding.Echo:input_type -> vault.EchoRequest
|
|
|
|
4, // 5: vault.RequestForwarding.PerformanceStandbyElectionRequest:input_type -> vault.PerfStandbyElectionInput
|
|
|
|
7, // 6: vault.RequestForwarding.ForwardRequest:output_type -> forwarding.Response
|
|
|
|
1, // 7: vault.RequestForwarding.Echo:output_type -> vault.EchoReply
|
|
|
|
5, // 8: vault.RequestForwarding.PerformanceStandbyElectionRequest:output_type -> vault.PerfStandbyElectionResponse
|
|
|
|
6, // [6:9] is the sub-list for method output_type
|
|
|
|
3, // [3:6] is the sub-list for method input_type
|
|
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
|
|
0, // [0:3] is the sub-list for field type_name
|
2020-05-14 22:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_vault_request_forwarding_service_proto_init() }
|
|
|
|
func file_vault_request_forwarding_service_proto_init() {
|
|
|
|
if File_vault_request_forwarding_service_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_vault_request_forwarding_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*EchoRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_vault_request_forwarding_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*EchoReply); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_vault_request_forwarding_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2020-06-29 21:23:28 +00:00
|
|
|
switch v := v.(*NodeInformation); i {
|
2020-05-14 22:45:10 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_vault_request_forwarding_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2020-06-29 21:23:28 +00:00
|
|
|
switch v := v.(*ClientKey); i {
|
2020-05-14 22:45:10 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_vault_request_forwarding_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2020-06-29 21:23:28 +00:00
|
|
|
switch v := v.(*PerfStandbyElectionInput); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_vault_request_forwarding_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2020-05-14 22:45:10 +00:00
|
|
|
switch v := v.(*PerfStandbyElectionResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_vault_request_forwarding_service_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
2020-06-29 21:23:28 +00:00
|
|
|
NumMessages: 6,
|
2020-05-14 22:45:10 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_vault_request_forwarding_service_proto_goTypes,
|
|
|
|
DependencyIndexes: file_vault_request_forwarding_service_proto_depIDxs,
|
|
|
|
MessageInfos: file_vault_request_forwarding_service_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_vault_request_forwarding_service_proto = out.File
|
|
|
|
file_vault_request_forwarding_service_proto_rawDesc = nil
|
|
|
|
file_vault_request_forwarding_service_proto_goTypes = nil
|
|
|
|
file_vault_request_forwarding_service_proto_depIDxs = nil
|
2019-02-05 21:02:15 +00:00
|
|
|
}
|
|
|
|
|
2016-08-19 15:49:25 +00:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
2020-05-14 22:45:10 +00:00
|
|
|
var _ grpc.ClientConnInterface
|
2016-08-19 15:49:25 +00:00
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
2020-05-14 22:45:10 +00:00
|
|
|
const _ = grpc.SupportPackageIsVersion6
|
2016-08-19 15:49:25 +00:00
|
|
|
|
2018-05-29 22:23:51 +00:00
|
|
|
// RequestForwardingClient is the client API for RequestForwarding service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
2016-08-19 15:49:25 +00:00
|
|
|
type RequestForwardingClient interface {
|
2017-01-06 22:08:43 +00:00
|
|
|
ForwardRequest(ctx context.Context, in *forwarding.Request, opts ...grpc.CallOption) (*forwarding.Response, error)
|
2017-05-24 19:06:56 +00:00
|
|
|
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error)
|
2018-09-18 03:03:00 +00:00
|
|
|
PerformanceStandbyElectionRequest(ctx context.Context, in *PerfStandbyElectionInput, opts ...grpc.CallOption) (RequestForwarding_PerformanceStandbyElectionRequestClient, error)
|
2016-08-19 15:49:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type requestForwardingClient struct {
|
2020-05-14 22:45:10 +00:00
|
|
|
cc grpc.ClientConnInterface
|
2016-08-19 15:49:25 +00:00
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func NewRequestForwardingClient(cc grpc.ClientConnInterface) RequestForwardingClient {
|
2016-08-19 15:49:25 +00:00
|
|
|
return &requestForwardingClient{cc}
|
|
|
|
}
|
|
|
|
|
2017-01-06 22:08:43 +00:00
|
|
|
func (c *requestForwardingClient) ForwardRequest(ctx context.Context, in *forwarding.Request, opts ...grpc.CallOption) (*forwarding.Response, error) {
|
2016-08-19 15:49:25 +00:00
|
|
|
out := new(forwarding.Response)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/vault.RequestForwarding/ForwardRequest", in, out, opts...)
|
2016-08-19 15:49:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2017-05-24 19:06:56 +00:00
|
|
|
func (c *requestForwardingClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error) {
|
|
|
|
out := new(EchoReply)
|
2018-05-29 22:23:51 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/vault.RequestForwarding/Echo", in, out, opts...)
|
2017-05-24 19:06:56 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-09-18 03:03:00 +00:00
|
|
|
func (c *requestForwardingClient) PerformanceStandbyElectionRequest(ctx context.Context, in *PerfStandbyElectionInput, opts ...grpc.CallOption) (RequestForwarding_PerformanceStandbyElectionRequestClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_RequestForwarding_serviceDesc.Streams[0], "/vault.RequestForwarding/PerformanceStandbyElectionRequest", opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
x := &requestForwardingPerformanceStandbyElectionRequestClient{stream}
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return x, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type RequestForwarding_PerformanceStandbyElectionRequestClient interface {
|
|
|
|
Recv() (*PerfStandbyElectionResponse, error)
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type requestForwardingPerformanceStandbyElectionRequestClient struct {
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *requestForwardingPerformanceStandbyElectionRequestClient) Recv() (*PerfStandbyElectionResponse, error) {
|
|
|
|
m := new(PerfStandbyElectionResponse)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
2018-05-29 22:23:51 +00:00
|
|
|
// RequestForwardingServer is the server API for RequestForwarding service.
|
2016-08-19 15:49:25 +00:00
|
|
|
type RequestForwardingServer interface {
|
2017-01-06 22:08:43 +00:00
|
|
|
ForwardRequest(context.Context, *forwarding.Request) (*forwarding.Response, error)
|
2017-05-24 19:06:56 +00:00
|
|
|
Echo(context.Context, *EchoRequest) (*EchoReply, error)
|
2018-09-18 03:03:00 +00:00
|
|
|
PerformanceStandbyElectionRequest(*PerfStandbyElectionInput, RequestForwarding_PerformanceStandbyElectionRequestServer) error
|
2016-08-19 15:49:25 +00:00
|
|
|
}
|
|
|
|
|
2019-07-08 23:02:20 +00:00
|
|
|
// UnimplementedRequestForwardingServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedRequestForwardingServer struct {
|
|
|
|
}
|
|
|
|
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedRequestForwardingServer) ForwardRequest(context.Context, *forwarding.Request) (*forwarding.Response, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ForwardRequest not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedRequestForwardingServer) Echo(context.Context, *EchoRequest) (*EchoReply, error) {
|
2019-07-08 23:02:20 +00:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented")
|
|
|
|
}
|
2020-05-14 22:45:10 +00:00
|
|
|
func (*UnimplementedRequestForwardingServer) PerformanceStandbyElectionRequest(*PerfStandbyElectionInput, RequestForwarding_PerformanceStandbyElectionRequestServer) error {
|
2019-07-08 23:02:20 +00:00
|
|
|
return status.Errorf(codes.Unimplemented, "method PerformanceStandbyElectionRequest not implemented")
|
|
|
|
}
|
|
|
|
|
2016-08-19 15:49:25 +00:00
|
|
|
func RegisterRequestForwardingServer(s *grpc.Server, srv RequestForwardingServer) {
|
|
|
|
s.RegisterService(&_RequestForwarding_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
2017-01-06 22:08:43 +00:00
|
|
|
func _RequestForwarding_ForwardRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
2016-08-19 15:49:25 +00:00
|
|
|
in := new(forwarding.Request)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2017-01-06 22:08:43 +00:00
|
|
|
return srv.(RequestForwardingServer).ForwardRequest(ctx, in)
|
2016-08-19 15:49:25 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2017-01-06 22:08:43 +00:00
|
|
|
FullMethod: "/vault.RequestForwarding/ForwardRequest",
|
2016-08-19 15:49:25 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2017-01-06 22:08:43 +00:00
|
|
|
return srv.(RequestForwardingServer).ForwardRequest(ctx, req.(*forwarding.Request))
|
2016-08-19 15:49:25 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2017-05-24 19:06:56 +00:00
|
|
|
func _RequestForwarding_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(EchoRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RequestForwardingServer).Echo(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/vault.RequestForwarding/Echo",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RequestForwardingServer).Echo(ctx, req.(*EchoRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-09-18 03:03:00 +00:00
|
|
|
func _RequestForwarding_PerformanceStandbyElectionRequest_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
m := new(PerfStandbyElectionInput)
|
|
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return srv.(RequestForwardingServer).PerformanceStandbyElectionRequest(m, &requestForwardingPerformanceStandbyElectionRequestServer{stream})
|
|
|
|
}
|
|
|
|
|
|
|
|
type RequestForwarding_PerformanceStandbyElectionRequestServer interface {
|
|
|
|
Send(*PerfStandbyElectionResponse) error
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type requestForwardingPerformanceStandbyElectionRequestServer struct {
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *requestForwardingPerformanceStandbyElectionRequestServer) Send(m *PerfStandbyElectionResponse) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
2016-08-19 15:49:25 +00:00
|
|
|
var _RequestForwarding_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "vault.RequestForwarding",
|
|
|
|
HandlerType: (*RequestForwardingServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
2017-01-06 22:08:43 +00:00
|
|
|
MethodName: "ForwardRequest",
|
|
|
|
Handler: _RequestForwarding_ForwardRequest_Handler,
|
2016-08-19 15:49:25 +00:00
|
|
|
},
|
2017-05-24 19:06:56 +00:00
|
|
|
{
|
|
|
|
MethodName: "Echo",
|
|
|
|
Handler: _RequestForwarding_Echo_Handler,
|
|
|
|
},
|
2016-08-19 15:49:25 +00:00
|
|
|
},
|
2018-09-18 03:03:00 +00:00
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
{
|
|
|
|
StreamName: "PerformanceStandbyElectionRequest",
|
|
|
|
Handler: _RequestForwarding_PerformanceStandbyElectionRequest_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
},
|
|
|
|
},
|
2018-06-04 14:19:26 +00:00
|
|
|
Metadata: "vault/request_forwarding_service.proto",
|
2016-08-19 15:49:25 +00:00
|
|
|
}
|