VAULT-11829: Add GetClusterStatus rpc to meta capability (#18316)
* add GetClusterStatus rpc to meta capability * consolidate HA-related info * add storage type
This commit is contained in:
parent
ae653a05a7
commit
de59e29bbc
|
@ -401,6 +401,522 @@ func (x *ListAuthResponse) GetAuths() []*Auth {
|
|||
return nil
|
||||
}
|
||||
|
||||
type GetClusterStatusRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *GetClusterStatusRequest) Reset() {
|
||||
*x = GetClusterStatusRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetClusterStatusRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetClusterStatusRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetClusterStatusRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[8]
|
||||
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 GetClusterStatusRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetClusterStatusRequest) Descriptor() ([]byte, []int) {
|
||||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
type HANode struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Hostname string `protobuf:"bytes,1,opt,name=Hostname,proto3" json:"Hostname,omitempty"`
|
||||
}
|
||||
|
||||
func (x *HANode) Reset() {
|
||||
*x = HANode{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *HANode) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*HANode) ProtoMessage() {}
|
||||
|
||||
func (x *HANode) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[9]
|
||||
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 HANode.ProtoReflect.Descriptor instead.
|
||||
func (*HANode) Descriptor() ([]byte, []int) {
|
||||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *HANode) GetHostname() string {
|
||||
if x != nil {
|
||||
return x.Hostname
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type HAStatus struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Enabled bool `protobuf:"varint,1,opt,name=Enabled,proto3" json:"Enabled,omitempty"`
|
||||
Nodes []*HANode `protobuf:"bytes,2,rep,name=Nodes,proto3" json:"Nodes,omitempty"`
|
||||
}
|
||||
|
||||
func (x *HAStatus) Reset() {
|
||||
*x = HAStatus{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *HAStatus) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*HAStatus) ProtoMessage() {}
|
||||
|
||||
func (x *HAStatus) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[10]
|
||||
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 HAStatus.ProtoReflect.Descriptor instead.
|
||||
func (*HAStatus) Descriptor() ([]byte, []int) {
|
||||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *HAStatus) GetEnabled() bool {
|
||||
if x != nil {
|
||||
return x.Enabled
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *HAStatus) GetNodes() []*HANode {
|
||||
if x != nil {
|
||||
return x.Nodes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RaftServer struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// NodeID is the name of the server
|
||||
NodeID string `protobuf:"bytes,1,opt,name=NodeID,proto3" json:"NodeID,omitempty"`
|
||||
// Address is the IP:port of the server, used for Raft communications
|
||||
Address string `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"`
|
||||
// Leader is true if this server is the current cluster leader
|
||||
Leader bool `protobuf:"varint,3,opt,name=Leader,proto3" json:"Leader,omitempty"`
|
||||
// Protocol version is the raft protocol version used by the server
|
||||
ProtocolVersion string `protobuf:"bytes,4,opt,name=ProtocolVersion,proto3" json:"ProtocolVersion,omitempty"`
|
||||
// Voter is true if this server has a vote in the cluster. This might
|
||||
// be false if the server is staging and still coming online.
|
||||
Voter bool `protobuf:"varint,5,opt,name=Voter,proto3" json:"Voter,omitempty"`
|
||||
}
|
||||
|
||||
func (x *RaftServer) Reset() {
|
||||
*x = RaftServer{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *RaftServer) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RaftServer) ProtoMessage() {}
|
||||
|
||||
func (x *RaftServer) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[11]
|
||||
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 RaftServer.ProtoReflect.Descriptor instead.
|
||||
func (*RaftServer) Descriptor() ([]byte, []int) {
|
||||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *RaftServer) GetNodeID() string {
|
||||
if x != nil {
|
||||
return x.NodeID
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RaftServer) GetAddress() string {
|
||||
if x != nil {
|
||||
return x.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RaftServer) GetLeader() bool {
|
||||
if x != nil {
|
||||
return x.Leader
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *RaftServer) GetProtocolVersion() string {
|
||||
if x != nil {
|
||||
return x.ProtocolVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RaftServer) GetVoter() bool {
|
||||
if x != nil {
|
||||
return x.Voter
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type RaftConfiguration struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Servers []*RaftServer `protobuf:"bytes,1,rep,name=Servers,proto3" json:"Servers,omitempty"`
|
||||
}
|
||||
|
||||
func (x *RaftConfiguration) Reset() {
|
||||
*x = RaftConfiguration{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *RaftConfiguration) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RaftConfiguration) ProtoMessage() {}
|
||||
|
||||
func (x *RaftConfiguration) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[12]
|
||||
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 RaftConfiguration.ProtoReflect.Descriptor instead.
|
||||
func (*RaftConfiguration) Descriptor() ([]byte, []int) {
|
||||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *RaftConfiguration) GetServers() []*RaftServer {
|
||||
if x != nil {
|
||||
return x.Servers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type AutopilotServer struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
||||
Healthy bool `protobuf:"varint,2,opt,name=Healthy,proto3" json:"Healthy,omitempty"`
|
||||
}
|
||||
|
||||
func (x *AutopilotServer) Reset() {
|
||||
*x = AutopilotServer{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *AutopilotServer) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AutopilotServer) ProtoMessage() {}
|
||||
|
||||
func (x *AutopilotServer) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[13]
|
||||
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 AutopilotServer.ProtoReflect.Descriptor instead.
|
||||
func (*AutopilotServer) Descriptor() ([]byte, []int) {
|
||||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *AutopilotServer) GetID() string {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AutopilotServer) GetHealthy() bool {
|
||||
if x != nil {
|
||||
return x.Healthy
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type AutopilotStatus struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Healthy bool `protobuf:"varint,1,opt,name=Healthy,proto3" json:"Healthy,omitempty"`
|
||||
Servers []*AutopilotServer `protobuf:"bytes,2,rep,name=Servers,proto3" json:"Servers,omitempty"`
|
||||
}
|
||||
|
||||
func (x *AutopilotStatus) Reset() {
|
||||
*x = AutopilotStatus{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *AutopilotStatus) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AutopilotStatus) ProtoMessage() {}
|
||||
|
||||
func (x *AutopilotStatus) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[14]
|
||||
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 AutopilotStatus.ProtoReflect.Descriptor instead.
|
||||
func (*AutopilotStatus) Descriptor() ([]byte, []int) {
|
||||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *AutopilotStatus) GetHealthy() bool {
|
||||
if x != nil {
|
||||
return x.Healthy
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *AutopilotStatus) GetServers() []*AutopilotServer {
|
||||
if x != nil {
|
||||
return x.Servers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RaftStatus struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RaftConfiguration *RaftConfiguration `protobuf:"bytes,1,opt,name=RaftConfiguration,proto3" json:"RaftConfiguration,omitempty"`
|
||||
AutopilotStatus *AutopilotStatus `protobuf:"bytes,2,opt,name=AutopilotStatus,proto3" json:"AutopilotStatus,omitempty"`
|
||||
QuorumWarnings []string `protobuf:"bytes,3,rep,name=QuorumWarnings,proto3" json:"QuorumWarnings,omitempty"`
|
||||
}
|
||||
|
||||
func (x *RaftStatus) Reset() {
|
||||
*x = RaftStatus{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *RaftStatus) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RaftStatus) ProtoMessage() {}
|
||||
|
||||
func (x *RaftStatus) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[15]
|
||||
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 RaftStatus.ProtoReflect.Descriptor instead.
|
||||
func (*RaftStatus) Descriptor() ([]byte, []int) {
|
||||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *RaftStatus) GetRaftConfiguration() *RaftConfiguration {
|
||||
if x != nil {
|
||||
return x.RaftConfiguration
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RaftStatus) GetAutopilotStatus() *AutopilotStatus {
|
||||
if x != nil {
|
||||
return x.AutopilotStatus
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RaftStatus) GetQuorumWarnings() []string {
|
||||
if x != nil {
|
||||
return x.QuorumWarnings
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetClusterStatusResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ClusterID string `protobuf:"bytes,1,opt,name=ClusterID,proto3" json:"ClusterID,omitempty"`
|
||||
HAStatus *HAStatus `protobuf:"bytes,2,opt,name=HAStatus,proto3" json:"HAStatus,omitempty"`
|
||||
RaftStatus *RaftStatus `protobuf:"bytes,3,opt,name=RaftStatus,proto3" json:"RaftStatus,omitempty"`
|
||||
StorageType string `protobuf:"bytes,4,opt,name=StorageType,proto3" json:"StorageType,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetClusterStatusResponse) Reset() {
|
||||
*x = GetClusterStatusResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[16]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *GetClusterStatusResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetClusterStatusResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetClusterStatusResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_vault_hcp_link_proto_meta_meta_proto_msgTypes[16]
|
||||
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 GetClusterStatusResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetClusterStatusResponse) Descriptor() ([]byte, []int) {
|
||||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP(), []int{16}
|
||||
}
|
||||
|
||||
func (x *GetClusterStatusResponse) GetClusterID() string {
|
||||
if x != nil {
|
||||
return x.ClusterID
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetClusterStatusResponse) GetHAStatus() *HAStatus {
|
||||
if x != nil {
|
||||
return x.HAStatus
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetClusterStatusResponse) GetRaftStatus() *RaftStatus {
|
||||
if x != nil {
|
||||
return x.RaftStatus
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetClusterStatusResponse) GetStorageType() string {
|
||||
if x != nil {
|
||||
return x.StorageType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_vault_hcp_link_proto_meta_meta_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_vault_hcp_link_proto_meta_meta_proto_rawDesc = []byte{
|
||||
|
@ -431,24 +947,85 @@ var file_vault_hcp_link_proto_meta_meta_proto_rawDesc = []byte{
|
|||
0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x41, 0x75, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x0a, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x05, 0x41,
|
||||
0x75, 0x74, 0x68, 0x73, 0x32, 0xd8, 0x01, 0x0a, 0x0b, 0x48, 0x43, 0x50, 0x4c, 0x69, 0x6e, 0x6b,
|
||||
0x4d, 0x65, 0x74, 0x61, 0x12, 0x4b, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65,
|
||||
0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x1b, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69,
|
||||
0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e,
|
||||
0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12,
|
||||
0x17, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x75, 0x6e, 0x74,
|
||||
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e,
|
||||
0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x73, 0x12,
|
||||
0x16, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x73,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4c,
|
||||
0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42,
|
||||
0x36, 0x5a, 0x34, 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, 0x2f, 0x68, 0x63, 0x70, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x75, 0x74, 0x68, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74,
|
||||
0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
|
||||
0x24, 0x0a, 0x06, 0x48, 0x41, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x48, 0x6f, 0x73,
|
||||
0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x48, 0x6f, 0x73,
|
||||
0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x48, 0x0a, 0x08, 0x48, 0x41, 0x53, 0x74, 0x61, 0x74, 0x75,
|
||||
0x73, 0x12, 0x18, 0x0a, 0x07, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x08, 0x52, 0x07, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x05, 0x4e,
|
||||
0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x48, 0x41, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x22,
|
||||
0x96, 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x66, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x16,
|
||||
0x0a, 0x06, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
||||
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
|
||||
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
|
||||
0x12, 0x16, 0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
|
||||
0x52, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x08, 0x52, 0x05, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x22, 0x3f, 0x0a, 0x11, 0x52, 0x61, 0x66, 0x74,
|
||||
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a,
|
||||
0x07, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10,
|
||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
|
||||
0x52, 0x07, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x22, 0x3b, 0x0a, 0x0f, 0x41, 0x75, 0x74,
|
||||
0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02,
|
||||
0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07,
|
||||
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x48,
|
||||
0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x22, 0x5c, 0x0a, 0x0f, 0x41, 0x75, 0x74, 0x6f, 0x70, 0x69,
|
||||
0x6c, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x48, 0x65, 0x61,
|
||||
0x6c, 0x74, 0x68, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x48, 0x65, 0x61, 0x6c,
|
||||
0x74, 0x68, 0x79, 0x12, 0x2f, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x02,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x75, 0x74, 0x6f,
|
||||
0x70, 0x69, 0x6c, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x07, 0x53, 0x65, 0x72,
|
||||
0x76, 0x65, 0x72, 0x73, 0x22, 0xbc, 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x66, 0x74, 0x53, 0x74, 0x61,
|
||||
0x74, 0x75, 0x73, 0x12, 0x45, 0x0a, 0x11, 0x52, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
||||
0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17,
|
||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
|
||||
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x52, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6e,
|
||||
0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x0f, 0x41, 0x75,
|
||||
0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x70,
|
||||
0x69, 0x6c, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0f, 0x41, 0x75, 0x74, 0x6f,
|
||||
0x70, 0x69, 0x6c, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x51,
|
||||
0x75, 0x6f, 0x72, 0x75, 0x6d, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20,
|
||||
0x03, 0x28, 0x09, 0x52, 0x0e, 0x51, 0x75, 0x6f, 0x72, 0x75, 0x6d, 0x57, 0x61, 0x72, 0x6e, 0x69,
|
||||
0x6e, 0x67, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74,
|
||||
0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x12, 0x1c, 0x0a, 0x09, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x09, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x44, 0x12, 0x2a,
|
||||
0x0a, 0x08, 0x48, 0x41, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x0e, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x41, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
||||
0x52, 0x08, 0x48, 0x41, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x0a, 0x52, 0x61,
|
||||
0x66, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
|
||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
||||
0x52, 0x0a, 0x52, 0x61, 0x66, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b,
|
||||
0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x32, 0xab,
|
||||
0x02, 0x0a, 0x0b, 0x48, 0x43, 0x50, 0x4c, 0x69, 0x6e, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4b,
|
||||
0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73,
|
||||
0x12, 0x1b, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65,
|
||||
0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
|
||||
0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x4c,
|
||||
0x69, 0x73, 0x74, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x09,
|
||||
0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x73, 0x12, 0x16, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74,
|
||||
0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x10, 0x47, 0x65, 0x74,
|
||||
0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53,
|
||||
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74,
|
||||
0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34,
|
||||
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,
|
||||
0x2f, 0x68, 0x63, 0x70, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
@ -463,7 +1040,7 @@ func file_vault_hcp_link_proto_meta_meta_proto_rawDescGZIP() []byte {
|
|||
return file_vault_hcp_link_proto_meta_meta_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_vault_hcp_link_proto_meta_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_vault_hcp_link_proto_meta_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
|
||||
var file_vault_hcp_link_proto_meta_meta_proto_goTypes = []interface{}{
|
||||
(*ListNamespacesRequest)(nil), // 0: meta.ListNamespacesRequest
|
||||
(*ListNamespacesResponse)(nil), // 1: meta.ListNamespacesResponse
|
||||
|
@ -473,21 +1050,39 @@ var file_vault_hcp_link_proto_meta_meta_proto_goTypes = []interface{}{
|
|||
(*ListAuthsRequest)(nil), // 5: meta.ListAuthsRequest
|
||||
(*Auth)(nil), // 6: meta.Auth
|
||||
(*ListAuthResponse)(nil), // 7: meta.ListAuthResponse
|
||||
(*GetClusterStatusRequest)(nil), // 8: meta.GetClusterStatusRequest
|
||||
(*HANode)(nil), // 9: meta.HANode
|
||||
(*HAStatus)(nil), // 10: meta.HAStatus
|
||||
(*RaftServer)(nil), // 11: meta.RaftServer
|
||||
(*RaftConfiguration)(nil), // 12: meta.RaftConfiguration
|
||||
(*AutopilotServer)(nil), // 13: meta.AutopilotServer
|
||||
(*AutopilotStatus)(nil), // 14: meta.AutopilotStatus
|
||||
(*RaftStatus)(nil), // 15: meta.RaftStatus
|
||||
(*GetClusterStatusResponse)(nil), // 16: meta.GetClusterStatusResponse
|
||||
}
|
||||
var file_vault_hcp_link_proto_meta_meta_proto_depIdxs = []int32{
|
||||
3, // 0: meta.ListMountsResponse.Mounts:type_name -> meta.Mount
|
||||
6, // 1: meta.ListAuthResponse.Auths:type_name -> meta.Auth
|
||||
0, // 2: meta.HCPLinkMeta.ListNamespaces:input_type -> meta.ListNamespacesRequest
|
||||
2, // 3: meta.HCPLinkMeta.ListMounts:input_type -> meta.ListMountsRequest
|
||||
5, // 4: meta.HCPLinkMeta.ListAuths:input_type -> meta.ListAuthsRequest
|
||||
1, // 5: meta.HCPLinkMeta.ListNamespaces:output_type -> meta.ListNamespacesResponse
|
||||
4, // 6: meta.HCPLinkMeta.ListMounts:output_type -> meta.ListMountsResponse
|
||||
7, // 7: meta.HCPLinkMeta.ListAuths:output_type -> meta.ListAuthResponse
|
||||
5, // [5:8] is the sub-list for method output_type
|
||||
2, // [2:5] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
9, // 2: meta.HAStatus.Nodes:type_name -> meta.HANode
|
||||
11, // 3: meta.RaftConfiguration.Servers:type_name -> meta.RaftServer
|
||||
13, // 4: meta.AutopilotStatus.Servers:type_name -> meta.AutopilotServer
|
||||
12, // 5: meta.RaftStatus.RaftConfiguration:type_name -> meta.RaftConfiguration
|
||||
14, // 6: meta.RaftStatus.AutopilotStatus:type_name -> meta.AutopilotStatus
|
||||
10, // 7: meta.GetClusterStatusResponse.HAStatus:type_name -> meta.HAStatus
|
||||
15, // 8: meta.GetClusterStatusResponse.RaftStatus:type_name -> meta.RaftStatus
|
||||
0, // 9: meta.HCPLinkMeta.ListNamespaces:input_type -> meta.ListNamespacesRequest
|
||||
2, // 10: meta.HCPLinkMeta.ListMounts:input_type -> meta.ListMountsRequest
|
||||
5, // 11: meta.HCPLinkMeta.ListAuths:input_type -> meta.ListAuthsRequest
|
||||
8, // 12: meta.HCPLinkMeta.GetClusterStatus:input_type -> meta.GetClusterStatusRequest
|
||||
1, // 13: meta.HCPLinkMeta.ListNamespaces:output_type -> meta.ListNamespacesResponse
|
||||
4, // 14: meta.HCPLinkMeta.ListMounts:output_type -> meta.ListMountsResponse
|
||||
7, // 15: meta.HCPLinkMeta.ListAuths:output_type -> meta.ListAuthResponse
|
||||
16, // 16: meta.HCPLinkMeta.GetClusterStatus:output_type -> meta.GetClusterStatusResponse
|
||||
13, // [13:17] is the sub-list for method output_type
|
||||
9, // [9:13] is the sub-list for method input_type
|
||||
9, // [9:9] is the sub-list for extension type_name
|
||||
9, // [9:9] is the sub-list for extension extendee
|
||||
0, // [0:9] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_vault_hcp_link_proto_meta_meta_proto_init() }
|
||||
|
@ -592,6 +1187,114 @@ func file_vault_hcp_link_proto_meta_meta_proto_init() {
|
|||
return nil
|
||||
}
|
||||
}
|
||||
file_vault_hcp_link_proto_meta_meta_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetClusterStatusRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vault_hcp_link_proto_meta_meta_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HANode); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vault_hcp_link_proto_meta_meta_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HAStatus); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vault_hcp_link_proto_meta_meta_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RaftServer); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vault_hcp_link_proto_meta_meta_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RaftConfiguration); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vault_hcp_link_proto_meta_meta_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AutopilotServer); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vault_hcp_link_proto_meta_meta_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AutopilotStatus); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vault_hcp_link_proto_meta_meta_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RaftStatus); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_vault_hcp_link_proto_meta_meta_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GetClusterStatusResponse); 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{
|
||||
|
@ -599,7 +1302,7 @@ func file_vault_hcp_link_proto_meta_meta_proto_init() {
|
|||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_vault_hcp_link_proto_meta_meta_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumMessages: 17,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
|
|
@ -34,6 +34,62 @@ message ListAuthResponse {
|
|||
repeated Auth Auths = 1;
|
||||
}
|
||||
|
||||
message GetClusterStatusRequest {}
|
||||
|
||||
message HANode {
|
||||
string Hostname = 1;
|
||||
}
|
||||
|
||||
message HAStatus {
|
||||
bool Enabled = 1;
|
||||
repeated HANode Nodes = 2;
|
||||
}
|
||||
|
||||
message RaftServer {
|
||||
// NodeID is the name of the server
|
||||
string NodeID = 1;
|
||||
|
||||
// Address is the IP:port of the server, used for Raft communications
|
||||
string Address = 2;
|
||||
|
||||
// Leader is true if this server is the current cluster leader
|
||||
bool Leader = 3;
|
||||
|
||||
// Protocol version is the raft protocol version used by the server
|
||||
string ProtocolVersion = 4;
|
||||
|
||||
// Voter is true if this server has a vote in the cluster. This might
|
||||
// be false if the server is staging and still coming online.
|
||||
bool Voter = 5;
|
||||
}
|
||||
|
||||
message RaftConfiguration {
|
||||
repeated RaftServer Servers = 1;
|
||||
}
|
||||
|
||||
message AutopilotServer {
|
||||
string ID = 1;
|
||||
bool Healthy = 2;
|
||||
}
|
||||
|
||||
message AutopilotStatus {
|
||||
bool Healthy = 1;
|
||||
repeated AutopilotServer Servers = 2;
|
||||
}
|
||||
|
||||
message RaftStatus {
|
||||
RaftConfiguration RaftConfiguration = 1;
|
||||
AutopilotStatus AutopilotStatus = 2;
|
||||
repeated string QuorumWarnings = 3;
|
||||
}
|
||||
|
||||
message GetClusterStatusResponse {
|
||||
string ClusterID = 1;
|
||||
HAStatus HAStatus = 2;
|
||||
RaftStatus RaftStatus = 3;
|
||||
string StorageType = 4;
|
||||
}
|
||||
|
||||
service HCPLinkMeta {
|
||||
// ListNamespaces will be used to recursively list all namespaces
|
||||
rpc ListNamespaces(ListNamespacesRequest) returns (ListNamespacesResponse);
|
||||
|
@ -43,4 +99,7 @@ service HCPLinkMeta {
|
|||
|
||||
// ListAuths will be used to recursively list all auths in all namespaces
|
||||
rpc ListAuths(ListAuthsRequest) returns (ListAuthResponse);
|
||||
|
||||
// GetClusterStatus will provide various cluster-level information
|
||||
rpc GetClusterStatus(GetClusterStatusRequest) returns (GetClusterStatusResponse);
|
||||
}
|
||||
|
|
|
@ -24,6 +24,8 @@ type HCPLinkMetaClient interface {
|
|||
ListMounts(ctx context.Context, in *ListMountsRequest, opts ...grpc.CallOption) (*ListMountsResponse, error)
|
||||
// ListAuths will be used to recursively list all auths in all namespaces
|
||||
ListAuths(ctx context.Context, in *ListAuthsRequest, opts ...grpc.CallOption) (*ListAuthResponse, error)
|
||||
// GetClusterStatus will provide various cluster-level information
|
||||
GetClusterStatus(ctx context.Context, in *GetClusterStatusRequest, opts ...grpc.CallOption) (*GetClusterStatusResponse, error)
|
||||
}
|
||||
|
||||
type hCPLinkMetaClient struct {
|
||||
|
@ -61,6 +63,15 @@ func (c *hCPLinkMetaClient) ListAuths(ctx context.Context, in *ListAuthsRequest,
|
|||
return out, nil
|
||||
}
|
||||
|
||||
func (c *hCPLinkMetaClient) GetClusterStatus(ctx context.Context, in *GetClusterStatusRequest, opts ...grpc.CallOption) (*GetClusterStatusResponse, error) {
|
||||
out := new(GetClusterStatusResponse)
|
||||
err := c.cc.Invoke(ctx, "/meta.HCPLinkMeta/GetClusterStatus", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// HCPLinkMetaServer is the server API for HCPLinkMeta service.
|
||||
// All implementations must embed UnimplementedHCPLinkMetaServer
|
||||
// for forward compatibility
|
||||
|
@ -71,6 +82,8 @@ type HCPLinkMetaServer interface {
|
|||
ListMounts(context.Context, *ListMountsRequest) (*ListMountsResponse, error)
|
||||
// ListAuths will be used to recursively list all auths in all namespaces
|
||||
ListAuths(context.Context, *ListAuthsRequest) (*ListAuthResponse, error)
|
||||
// GetClusterStatus will provide various cluster-level information
|
||||
GetClusterStatus(context.Context, *GetClusterStatusRequest) (*GetClusterStatusResponse, error)
|
||||
mustEmbedUnimplementedHCPLinkMetaServer()
|
||||
}
|
||||
|
||||
|
@ -87,6 +100,9 @@ func (UnimplementedHCPLinkMetaServer) ListMounts(context.Context, *ListMountsReq
|
|||
func (UnimplementedHCPLinkMetaServer) ListAuths(context.Context, *ListAuthsRequest) (*ListAuthResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListAuths not implemented")
|
||||
}
|
||||
func (UnimplementedHCPLinkMetaServer) GetClusterStatus(context.Context, *GetClusterStatusRequest) (*GetClusterStatusResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetClusterStatus not implemented")
|
||||
}
|
||||
func (UnimplementedHCPLinkMetaServer) mustEmbedUnimplementedHCPLinkMetaServer() {}
|
||||
|
||||
// UnsafeHCPLinkMetaServer may be embedded to opt out of forward compatibility for this service.
|
||||
|
@ -154,6 +170,24 @@ func _HCPLinkMeta_ListAuths_Handler(srv interface{}, ctx context.Context, dec fu
|
|||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HCPLinkMeta_GetClusterStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetClusterStatusRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HCPLinkMetaServer).GetClusterStatus(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/meta.HCPLinkMeta/GetClusterStatus",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HCPLinkMetaServer).GetClusterStatus(ctx, req.(*GetClusterStatusRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// HCPLinkMeta_ServiceDesc is the grpc.ServiceDesc for HCPLinkMeta service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
|
@ -173,6 +207,10 @@ var HCPLinkMeta_ServiceDesc = grpc.ServiceDesc{
|
|||
MethodName: "ListAuths",
|
||||
Handler: _HCPLinkMeta_ListAuths_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetClusterStatus",
|
||||
Handler: _HCPLinkMeta_GetClusterStatus_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "vault/hcp_link/proto/meta/meta.proto",
|
||||
|
|
Loading…
Reference in New Issue