mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
VAULT-11827: Add new Link node level fields (#18203)
* add addition Link node-level status fields * pin protoc to 3.21.9 * make proto * change LogLevel to be a string * add RaftStatus; IsActive -> Activetime * use an enum for LogLevel
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
|||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
_ "google.golang.org/protobuf/types/known/emptypb"
|
_ "google.golang.org/protobuf/types/known/emptypb"
|
||||||
_ "google.golang.org/protobuf/types/known/timestamppb"
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
)
|
)
|
||||||
@@ -22,6 +22,111 @@ const (
|
|||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type LogLevel int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
LogLevel_NO_LEVEL LogLevel = 0
|
||||||
|
LogLevel_TRACE LogLevel = 1
|
||||||
|
LogLevel_DEBUG LogLevel = 2
|
||||||
|
LogLevel_INFO LogLevel = 3
|
||||||
|
LogLevel_WARN LogLevel = 4
|
||||||
|
LogLevel_ERROR LogLevel = 5
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for LogLevel.
|
||||||
|
var (
|
||||||
|
LogLevel_name = map[int32]string{
|
||||||
|
0: "NO_LEVEL",
|
||||||
|
1: "TRACE",
|
||||||
|
2: "DEBUG",
|
||||||
|
3: "INFO",
|
||||||
|
4: "WARN",
|
||||||
|
5: "ERROR",
|
||||||
|
}
|
||||||
|
LogLevel_value = map[string]int32{
|
||||||
|
"NO_LEVEL": 0,
|
||||||
|
"TRACE": 1,
|
||||||
|
"DEBUG": 2,
|
||||||
|
"INFO": 3,
|
||||||
|
"WARN": 4,
|
||||||
|
"ERROR": 5,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x LogLevel) Enum() *LogLevel {
|
||||||
|
p := new(LogLevel)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x LogLevel) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (LogLevel) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_vault_hcp_link_proto_node_status_status_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (LogLevel) Type() protoreflect.EnumType {
|
||||||
|
return &file_vault_hcp_link_proto_node_status_status_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x LogLevel) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use LogLevel.Descriptor instead.
|
||||||
|
func (LogLevel) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_vault_hcp_link_proto_node_status_status_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type RaftStatus struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
IsVoter bool `protobuf:"varint,1,opt,name=IsVoter,proto3" json:"IsVoter,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RaftStatus) Reset() {
|
||||||
|
*x = RaftStatus{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_vault_hcp_link_proto_node_status_status_proto_msgTypes[0]
|
||||||
|
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_node_status_status_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)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use RaftStatus.ProtoReflect.Descriptor instead.
|
||||||
|
func (*RaftStatus) Descriptor() ([]byte, []int) {
|
||||||
|
return file_vault_hcp_link_proto_node_status_status_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RaftStatus) GetIsVoter() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.IsVoter
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
type LinkedClusterNodeStatusResponse struct {
|
type LinkedClusterNodeStatusResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -42,12 +147,19 @@ type LinkedClusterNodeStatusResponse struct {
|
|||||||
RecoverySeal bool `protobuf:"varint,13,opt,name=RecoverySeal,proto3" json:"RecoverySeal,omitempty"`
|
RecoverySeal bool `protobuf:"varint,13,opt,name=RecoverySeal,proto3" json:"RecoverySeal,omitempty"`
|
||||||
StorageType string `protobuf:"bytes,14,opt,name=StorageType,proto3" json:"StorageType,omitempty"`
|
StorageType string `protobuf:"bytes,14,opt,name=StorageType,proto3" json:"StorageType,omitempty"`
|
||||||
ReplicationState []string `protobuf:"bytes,15,rep,name=ReplicationState,proto3" json:"ReplicationState,omitempty"`
|
ReplicationState []string `protobuf:"bytes,15,rep,name=ReplicationState,proto3" json:"ReplicationState,omitempty"`
|
||||||
|
Hostname string `protobuf:"bytes,16,opt,name=Hostname,proto3" json:"Hostname,omitempty"`
|
||||||
|
ListenerAddresses []string `protobuf:"bytes,17,rep,name=ListenerAddresses,proto3" json:"ListenerAddresses,omitempty"`
|
||||||
|
OperatingSystem string `protobuf:"bytes,18,opt,name=OperatingSystem,proto3" json:"OperatingSystem,omitempty"`
|
||||||
|
OperatingSystemVersion string `protobuf:"bytes,19,opt,name=OperatingSystemVersion,proto3" json:"OperatingSystemVersion,omitempty"`
|
||||||
|
LogLevel LogLevel `protobuf:"varint,20,opt,name=LogLevel,proto3,enum=hashicorp.vault.hcp_link.node_status.LogLevel" json:"LogLevel,omitempty"`
|
||||||
|
ActiveTime *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=ActiveTime,proto3" json:"ActiveTime,omitempty"`
|
||||||
|
RaftStatus *RaftStatus `protobuf:"bytes,22,opt,name=RaftStatus,proto3" json:"RaftStatus,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LinkedClusterNodeStatusResponse) Reset() {
|
func (x *LinkedClusterNodeStatusResponse) Reset() {
|
||||||
*x = LinkedClusterNodeStatusResponse{}
|
*x = LinkedClusterNodeStatusResponse{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_vault_hcp_link_proto_node_status_status_proto_msgTypes[0]
|
mi := &file_vault_hcp_link_proto_node_status_status_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -60,7 +172,7 @@ func (x *LinkedClusterNodeStatusResponse) String() string {
|
|||||||
func (*LinkedClusterNodeStatusResponse) ProtoMessage() {}
|
func (*LinkedClusterNodeStatusResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *LinkedClusterNodeStatusResponse) ProtoReflect() protoreflect.Message {
|
func (x *LinkedClusterNodeStatusResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_vault_hcp_link_proto_node_status_status_proto_msgTypes[0]
|
mi := &file_vault_hcp_link_proto_node_status_status_proto_msgTypes[1]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -73,7 +185,7 @@ func (x *LinkedClusterNodeStatusResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use LinkedClusterNodeStatusResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use LinkedClusterNodeStatusResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*LinkedClusterNodeStatusResponse) Descriptor() ([]byte, []int) {
|
func (*LinkedClusterNodeStatusResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_vault_hcp_link_proto_node_status_status_proto_rawDescGZIP(), []int{0}
|
return file_vault_hcp_link_proto_node_status_status_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LinkedClusterNodeStatusResponse) GetType() string {
|
func (x *LinkedClusterNodeStatusResponse) GetType() string {
|
||||||
@@ -181,6 +293,55 @@ func (x *LinkedClusterNodeStatusResponse) GetReplicationState() []string {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *LinkedClusterNodeStatusResponse) GetHostname() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Hostname
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *LinkedClusterNodeStatusResponse) GetListenerAddresses() []string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ListenerAddresses
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *LinkedClusterNodeStatusResponse) GetOperatingSystem() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.OperatingSystem
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *LinkedClusterNodeStatusResponse) GetOperatingSystemVersion() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.OperatingSystemVersion
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *LinkedClusterNodeStatusResponse) GetLogLevel() LogLevel {
|
||||||
|
if x != nil {
|
||||||
|
return x.LogLevel
|
||||||
|
}
|
||||||
|
return LogLevel_NO_LEVEL
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *LinkedClusterNodeStatusResponse) GetActiveTime() *timestamppb.Timestamp {
|
||||||
|
if x != nil {
|
||||||
|
return x.ActiveTime
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *LinkedClusterNodeStatusResponse) GetRaftStatus() *RaftStatus {
|
||||||
|
if x != nil {
|
||||||
|
return x.RaftStatus
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var File_vault_hcp_link_proto_node_status_status_proto protoreflect.FileDescriptor
|
var File_vault_hcp_link_proto_node_status_status_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_vault_hcp_link_proto_node_status_status_proto_rawDesc = []byte{
|
var file_vault_hcp_link_proto_node_status_status_proto_rawDesc = []byte{
|
||||||
@@ -193,40 +354,71 @@ var file_vault_hcp_link_proto_node_status_status_proto_rawDesc = []byte{
|
|||||||
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
||||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
|
||||||
0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x03, 0x0a, 0x1f, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x43, 0x6c,
|
0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x0a, 0x52, 0x61, 0x66, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75,
|
||||||
0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
|
0x73, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x73, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18,
|
0x28, 0x08, 0x52, 0x07, 0x49, 0x73, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x22, 0xcb, 0x06, 0x0a, 0x1f,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x49,
|
0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64,
|
||||||
0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||||
0x52, 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x12, 0x16, 0x0a,
|
0x12, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x54,
|
||||||
0x06, 0x53, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x53,
|
0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a,
|
||||||
0x65, 0x61, 0x6c, 0x65, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x54, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
|
0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61,
|
||||||
0x52, 0x01, 0x54, 0x12, 0x0c, 0x0a, 0x01, 0x4e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01,
|
0x6c, 0x69, 0x7a, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x18,
|
||||||
0x4e, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20,
|
0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x53, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x12, 0x0c, 0x0a,
|
||||||
0x01, 0x28, 0x03, 0x52, 0x08, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a,
|
0x01, 0x54, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x54, 0x12, 0x0c, 0x0a, 0x01, 0x4e,
|
||||||
0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4e, 0x6f,
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x4e, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x72, 0x6f,
|
||||||
0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08,
|
0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x50, 0x72, 0x6f,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a,
|
0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x07,
|
||||||
0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56,
|
||||||
0x52, 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x4d,
|
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x56, 0x65,
|
||||||
0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09,
|
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x61,
|
||||||
0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x6c, 0x75,
|
0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x44,
|
||||||
0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x43,
|
0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
||||||
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x44, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
|
||||||
0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x44, 0x12, 0x22, 0x0a, 0x0c, 0x52, 0x65, 0x63,
|
0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e,
|
||||||
0x6f, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x61, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52,
|
0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x44,
|
||||||
0x0c, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x61, 0x6c, 0x12, 0x20, 0x0a,
|
0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49,
|
||||||
0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01,
|
0x44, 0x12, 0x22, 0x0a, 0x0c, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65, 0x61,
|
||||||
0x28, 0x09, 0x52, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
|
0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72,
|
||||||
0x2a, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74,
|
0x79, 0x53, 0x65, 0x61, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
|
||||||
0x61, 0x74, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x52, 0x65, 0x70, 0x6c, 0x69,
|
0x54, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x53, 0x74, 0x6f, 0x72,
|
||||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x3d, 0x5a, 0x3b, 0x67,
|
0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6c, 0x69,
|
||||||
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63,
|
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28,
|
||||||
0x6f, 0x72, 0x70, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2f, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2f,
|
0x09, 0x52, 0x10, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74,
|
||||||
0x68, 0x63, 0x70, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6e,
|
0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||||
0x6f, 0x64, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
||||||
0x6f, 0x33,
|
0x2c, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65,
|
||||||
|
0x73, 0x73, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x4c, 0x69, 0x73, 0x74,
|
||||||
|
0x65, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x28, 0x0a,
|
||||||
|
0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d,
|
||||||
|
0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e,
|
||||||
|
0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x36, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x72, 0x61,
|
||||||
|
0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
|
||||||
|
0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
||||||
|
0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
|
||||||
|
0x4a, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x14, 0x20, 0x01, 0x28,
|
||||||
|
0x0e, 0x32, 0x2e, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x76, 0x61,
|
||||||
|
0x75, 0x6c, 0x74, 0x2e, 0x68, 0x63, 0x70, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x6e, 0x6f, 0x64,
|
||||||
|
0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65,
|
||||||
|
0x6c, 0x52, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x3a, 0x0a, 0x0a, 0x41,
|
||||||
|
0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
|
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||||
|
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x41, 0x63, 0x74,
|
||||||
|
0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x52, 0x61, 0x66, 0x74, 0x53,
|
||||||
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x68, 0x61,
|
||||||
|
0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x68, 0x63,
|
||||||
|
0x70, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74,
|
||||||
|
0x75, 0x73, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x52,
|
||||||
|
0x61, 0x66, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x4d, 0x0a, 0x08, 0x4c, 0x6f, 0x67,
|
||||||
|
0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x5f, 0x4c, 0x45, 0x56, 0x45,
|
||||||
|
0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x52, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x09,
|
||||||
|
0x0a, 0x05, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x46,
|
||||||
|
0x4f, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, 0x4e, 0x10, 0x04, 0x12, 0x09, 0x0a,
|
||||||
|
0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x05, 0x42, 0x3d, 0x5a, 0x3b, 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, 0x6e, 0x6f, 0x64, 0x65,
|
||||||
|
0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -241,16 +433,23 @@ func file_vault_hcp_link_proto_node_status_status_proto_rawDescGZIP() []byte {
|
|||||||
return file_vault_hcp_link_proto_node_status_status_proto_rawDescData
|
return file_vault_hcp_link_proto_node_status_status_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_vault_hcp_link_proto_node_status_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
var file_vault_hcp_link_proto_node_status_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
|
var file_vault_hcp_link_proto_node_status_status_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||||
var file_vault_hcp_link_proto_node_status_status_proto_goTypes = []interface{}{
|
var file_vault_hcp_link_proto_node_status_status_proto_goTypes = []interface{}{
|
||||||
(*LinkedClusterNodeStatusResponse)(nil), // 0: hashicorp.vault.hcp_link.node_status.LinkedClusterNodeStatusResponse
|
(LogLevel)(0), // 0: hashicorp.vault.hcp_link.node_status.LogLevel
|
||||||
|
(*RaftStatus)(nil), // 1: hashicorp.vault.hcp_link.node_status.RaftStatus
|
||||||
|
(*LinkedClusterNodeStatusResponse)(nil), // 2: hashicorp.vault.hcp_link.node_status.LinkedClusterNodeStatusResponse
|
||||||
|
(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
|
||||||
}
|
}
|
||||||
var file_vault_hcp_link_proto_node_status_status_proto_depIdxs = []int32{
|
var file_vault_hcp_link_proto_node_status_status_proto_depIdxs = []int32{
|
||||||
0, // [0:0] is the sub-list for method output_type
|
0, // 0: hashicorp.vault.hcp_link.node_status.LinkedClusterNodeStatusResponse.LogLevel:type_name -> hashicorp.vault.hcp_link.node_status.LogLevel
|
||||||
0, // [0:0] is the sub-list for method input_type
|
3, // 1: hashicorp.vault.hcp_link.node_status.LinkedClusterNodeStatusResponse.ActiveTime:type_name -> google.protobuf.Timestamp
|
||||||
0, // [0:0] is the sub-list for extension type_name
|
1, // 2: hashicorp.vault.hcp_link.node_status.LinkedClusterNodeStatusResponse.RaftStatus:type_name -> hashicorp.vault.hcp_link.node_status.RaftStatus
|
||||||
0, // [0:0] is the sub-list for extension extendee
|
3, // [3:3] is the sub-list for method output_type
|
||||||
0, // [0:0] is the sub-list for field type_name
|
3, // [3:3] 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
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_vault_hcp_link_proto_node_status_status_proto_init() }
|
func init() { file_vault_hcp_link_proto_node_status_status_proto_init() }
|
||||||
@@ -260,6 +459,18 @@ func file_vault_hcp_link_proto_node_status_status_proto_init() {
|
|||||||
}
|
}
|
||||||
if !protoimpl.UnsafeEnabled {
|
if !protoimpl.UnsafeEnabled {
|
||||||
file_vault_hcp_link_proto_node_status_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
file_vault_hcp_link_proto_node_status_status_proto_msgTypes[0].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_node_status_status_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*LinkedClusterNodeStatusResponse); i {
|
switch v := v.(*LinkedClusterNodeStatusResponse); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@@ -277,13 +488,14 @@ func file_vault_hcp_link_proto_node_status_status_proto_init() {
|
|||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_vault_hcp_link_proto_node_status_status_proto_rawDesc,
|
RawDescriptor: file_vault_hcp_link_proto_node_status_status_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 1,
|
||||||
NumMessages: 1,
|
NumMessages: 2,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
GoTypes: file_vault_hcp_link_proto_node_status_status_proto_goTypes,
|
GoTypes: file_vault_hcp_link_proto_node_status_status_proto_goTypes,
|
||||||
DependencyIndexes: file_vault_hcp_link_proto_node_status_status_proto_depIdxs,
|
DependencyIndexes: file_vault_hcp_link_proto_node_status_status_proto_depIdxs,
|
||||||
|
EnumInfos: file_vault_hcp_link_proto_node_status_status_proto_enumTypes,
|
||||||
MessageInfos: file_vault_hcp_link_proto_node_status_status_proto_msgTypes,
|
MessageInfos: file_vault_hcp_link_proto_node_status_status_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_vault_hcp_link_proto_node_status_status_proto = out.File
|
File_vault_hcp_link_proto_node_status_status_proto = out.File
|
||||||
|
|||||||
@@ -7,6 +7,19 @@ package hashicorp.vault.hcp_link.node_status;
|
|||||||
import "google/protobuf/timestamp.proto";
|
import "google/protobuf/timestamp.proto";
|
||||||
import "google/protobuf/empty.proto";
|
import "google/protobuf/empty.proto";
|
||||||
|
|
||||||
|
message RaftStatus {
|
||||||
|
bool IsVoter = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum LogLevel {
|
||||||
|
NO_LEVEL = 0;
|
||||||
|
TRACE = 1;
|
||||||
|
DEBUG = 2;
|
||||||
|
INFO = 3;
|
||||||
|
WARN = 4;
|
||||||
|
ERROR = 5;
|
||||||
|
}
|
||||||
|
|
||||||
message LinkedClusterNodeStatusResponse {
|
message LinkedClusterNodeStatusResponse {
|
||||||
string Type = 1;
|
string Type = 1;
|
||||||
bool Initialized = 2;
|
bool Initialized = 2;
|
||||||
@@ -23,4 +36,11 @@ message LinkedClusterNodeStatusResponse {
|
|||||||
bool RecoverySeal = 13;
|
bool RecoverySeal = 13;
|
||||||
string StorageType = 14;
|
string StorageType = 14;
|
||||||
repeated string ReplicationState = 15;
|
repeated string ReplicationState = 15;
|
||||||
|
string Hostname = 16;
|
||||||
|
repeated string ListenerAddresses = 17;
|
||||||
|
string OperatingSystem = 18;
|
||||||
|
string OperatingSystemVersion = 19;
|
||||||
|
LogLevel LogLevel = 20;
|
||||||
|
google.protobuf.Timestamp ActiveTime = 21;
|
||||||
|
RaftStatus RaftStatus = 22;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user