Monitor update
Deploy / deploy (push) Successful in 8s

This commit is contained in:
2026-08-31 22:42:40 +05:00
parent 47ea18d020
commit 28702bd029
13 changed files with 434 additions and 217 deletions
+230 -123
View File
@@ -120,8 +120,6 @@ func (ServiceOp) EnumDescriptor() ([]byte, []int) {
type Item struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // monitor: text | percentage
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // monitor: last output
Args int32 `protobuf:"varint,4,opt,name=args,proto3" json:"args,omitempty"` // exec: arg count
ArgTypes []string `protobuf:"bytes,5,rep,name=arg_types,json=argTypes,proto3" json:"arg_types,omitempty"` // exec: text | number per arg
unknownFields protoimpl.UnknownFields
@@ -165,20 +163,6 @@ func (x *Item) GetName() string {
return ""
}
func (x *Item) GetData() string {
if x != nil {
return x.Data
}
return ""
}
func (x *Item) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
func (x *Item) GetArgs() int32 {
if x != nil {
return x.Args
@@ -193,6 +177,119 @@ func (x *Item) GetArgTypes() []string {
return nil
}
type Stat struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Stat) Reset() {
*x = Stat{}
mi := &file_homelab_v1_homelab_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Stat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Stat) ProtoMessage() {}
func (x *Stat) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Stat.ProtoReflect.Descriptor instead.
func (*Stat) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{1}
}
func (x *Stat) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Stat) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
// Карточка монитора: процент (-1 = скрипт не дал процент) + строки для подписей.
type Monitor struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Percentage int32 `protobuf:"varint,2,opt,name=percentage,proto3" json:"percentage,omitempty"`
Stats []*Stat `protobuf:"bytes,3,rep,name=stats,proto3" json:"stats,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Monitor) Reset() {
*x = Monitor{}
mi := &file_homelab_v1_homelab_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Monitor) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Monitor) ProtoMessage() {}
func (x *Monitor) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Monitor.ProtoReflect.Descriptor instead.
func (*Monitor) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{2}
}
func (x *Monitor) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Monitor) GetPercentage() int32 {
if x != nil {
return x.Percentage
}
return 0
}
func (x *Monitor) GetStats() []*Stat {
if x != nil {
return x.Stats
}
return nil
}
type Link struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
@@ -203,7 +300,7 @@ type Link struct {
func (x *Link) Reset() {
*x = Link{}
mi := &file_homelab_v1_homelab_proto_msgTypes[1]
mi := &file_homelab_v1_homelab_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -215,7 +312,7 @@ func (x *Link) String() string {
func (*Link) ProtoMessage() {}
func (x *Link) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[1]
mi := &file_homelab_v1_homelab_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -228,7 +325,7 @@ func (x *Link) ProtoReflect() protoreflect.Message {
// Deprecated: Use Link.ProtoReflect.Descriptor instead.
func (*Link) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{1}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{3}
}
func (x *Link) GetName() string {
@@ -253,7 +350,7 @@ type ListContentRequest struct {
func (x *ListContentRequest) Reset() {
*x = ListContentRequest{}
mi := &file_homelab_v1_homelab_proto_msgTypes[2]
mi := &file_homelab_v1_homelab_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -265,7 +362,7 @@ func (x *ListContentRequest) String() string {
func (*ListContentRequest) ProtoMessage() {}
func (x *ListContentRequest) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[2]
mi := &file_homelab_v1_homelab_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -278,13 +375,13 @@ func (x *ListContentRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListContentRequest.ProtoReflect.Descriptor instead.
func (*ListContentRequest) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{2}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{4}
}
type ListContentResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Links []*Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
Monitors []*Item `protobuf:"bytes,2,rep,name=monitors,proto3" json:"monitors,omitempty"`
Monitors []*Monitor `protobuf:"bytes,2,rep,name=monitors,proto3" json:"monitors,omitempty"`
Exec []*Item `protobuf:"bytes,3,rep,name=exec,proto3" json:"exec,omitempty"`
Services []*Service `protobuf:"bytes,4,rep,name=services,proto3" json:"services,omitempty"`
unknownFields protoimpl.UnknownFields
@@ -293,7 +390,7 @@ type ListContentResponse struct {
func (x *ListContentResponse) Reset() {
*x = ListContentResponse{}
mi := &file_homelab_v1_homelab_proto_msgTypes[3]
mi := &file_homelab_v1_homelab_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -305,7 +402,7 @@ func (x *ListContentResponse) String() string {
func (*ListContentResponse) ProtoMessage() {}
func (x *ListContentResponse) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[3]
mi := &file_homelab_v1_homelab_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -318,7 +415,7 @@ func (x *ListContentResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListContentResponse.ProtoReflect.Descriptor instead.
func (*ListContentResponse) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{3}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{5}
}
func (x *ListContentResponse) GetLinks() []*Link {
@@ -328,7 +425,7 @@ func (x *ListContentResponse) GetLinks() []*Link {
return nil
}
func (x *ListContentResponse) GetMonitors() []*Item {
func (x *ListContentResponse) GetMonitors() []*Monitor {
if x != nil {
return x.Monitors
}
@@ -359,7 +456,7 @@ type DocMeta struct {
func (x *DocMeta) Reset() {
*x = DocMeta{}
mi := &file_homelab_v1_homelab_proto_msgTypes[4]
mi := &file_homelab_v1_homelab_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -371,7 +468,7 @@ func (x *DocMeta) String() string {
func (*DocMeta) ProtoMessage() {}
func (x *DocMeta) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[4]
mi := &file_homelab_v1_homelab_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -384,7 +481,7 @@ func (x *DocMeta) ProtoReflect() protoreflect.Message {
// Deprecated: Use DocMeta.ProtoReflect.Descriptor instead.
func (*DocMeta) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{4}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{6}
}
func (x *DocMeta) GetName() string {
@@ -409,7 +506,7 @@ type ListDocsRequest struct {
func (x *ListDocsRequest) Reset() {
*x = ListDocsRequest{}
mi := &file_homelab_v1_homelab_proto_msgTypes[5]
mi := &file_homelab_v1_homelab_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -421,7 +518,7 @@ func (x *ListDocsRequest) String() string {
func (*ListDocsRequest) ProtoMessage() {}
func (x *ListDocsRequest) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[5]
mi := &file_homelab_v1_homelab_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -434,7 +531,7 @@ func (x *ListDocsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListDocsRequest.ProtoReflect.Descriptor instead.
func (*ListDocsRequest) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{5}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{7}
}
type ListDocsResponse struct {
@@ -446,7 +543,7 @@ type ListDocsResponse struct {
func (x *ListDocsResponse) Reset() {
*x = ListDocsResponse{}
mi := &file_homelab_v1_homelab_proto_msgTypes[6]
mi := &file_homelab_v1_homelab_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -458,7 +555,7 @@ func (x *ListDocsResponse) String() string {
func (*ListDocsResponse) ProtoMessage() {}
func (x *ListDocsResponse) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[6]
mi := &file_homelab_v1_homelab_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -471,7 +568,7 @@ func (x *ListDocsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListDocsResponse.ProtoReflect.Descriptor instead.
func (*ListDocsResponse) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{6}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{8}
}
func (x *ListDocsResponse) GetDocs() []*DocMeta {
@@ -490,7 +587,7 @@ type GetDocRequest struct {
func (x *GetDocRequest) Reset() {
*x = GetDocRequest{}
mi := &file_homelab_v1_homelab_proto_msgTypes[7]
mi := &file_homelab_v1_homelab_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -502,7 +599,7 @@ func (x *GetDocRequest) String() string {
func (*GetDocRequest) ProtoMessage() {}
func (x *GetDocRequest) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[7]
mi := &file_homelab_v1_homelab_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -515,7 +612,7 @@ func (x *GetDocRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetDocRequest.ProtoReflect.Descriptor instead.
func (*GetDocRequest) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{7}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{9}
}
func (x *GetDocRequest) GetName() string {
@@ -534,7 +631,7 @@ type GetDocResponse struct {
func (x *GetDocResponse) Reset() {
*x = GetDocResponse{}
mi := &file_homelab_v1_homelab_proto_msgTypes[8]
mi := &file_homelab_v1_homelab_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -546,7 +643,7 @@ func (x *GetDocResponse) String() string {
func (*GetDocResponse) ProtoMessage() {}
func (x *GetDocResponse) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[8]
mi := &file_homelab_v1_homelab_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -559,7 +656,7 @@ func (x *GetDocResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetDocResponse.ProtoReflect.Descriptor instead.
func (*GetDocResponse) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{8}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{10}
}
func (x *GetDocResponse) GetContent() string {
@@ -579,7 +676,7 @@ type SaveDocRequest struct {
func (x *SaveDocRequest) Reset() {
*x = SaveDocRequest{}
mi := &file_homelab_v1_homelab_proto_msgTypes[9]
mi := &file_homelab_v1_homelab_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -591,7 +688,7 @@ func (x *SaveDocRequest) String() string {
func (*SaveDocRequest) ProtoMessage() {}
func (x *SaveDocRequest) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[9]
mi := &file_homelab_v1_homelab_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -604,7 +701,7 @@ func (x *SaveDocRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SaveDocRequest.ProtoReflect.Descriptor instead.
func (*SaveDocRequest) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{9}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{11}
}
func (x *SaveDocRequest) GetName() string {
@@ -630,7 +727,7 @@ type SaveDocResponse struct {
func (x *SaveDocResponse) Reset() {
*x = SaveDocResponse{}
mi := &file_homelab_v1_homelab_proto_msgTypes[10]
mi := &file_homelab_v1_homelab_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -642,7 +739,7 @@ func (x *SaveDocResponse) String() string {
func (*SaveDocResponse) ProtoMessage() {}
func (x *SaveDocResponse) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[10]
mi := &file_homelab_v1_homelab_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -655,7 +752,7 @@ func (x *SaveDocResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SaveDocResponse.ProtoReflect.Descriptor instead.
func (*SaveDocResponse) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{10}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{12}
}
func (x *SaveDocResponse) GetHash() string {
@@ -681,7 +778,7 @@ type Service struct {
func (x *Service) Reset() {
*x = Service{}
mi := &file_homelab_v1_homelab_proto_msgTypes[11]
mi := &file_homelab_v1_homelab_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -693,7 +790,7 @@ func (x *Service) String() string {
func (*Service) ProtoMessage() {}
func (x *Service) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[11]
mi := &file_homelab_v1_homelab_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -706,7 +803,7 @@ func (x *Service) ProtoReflect() protoreflect.Message {
// Deprecated: Use Service.ProtoReflect.Descriptor instead.
func (*Service) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{11}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{13}
}
func (x *Service) GetKind() ServiceKind {
@@ -776,7 +873,7 @@ type ServiceActionRequest struct {
func (x *ServiceActionRequest) Reset() {
*x = ServiceActionRequest{}
mi := &file_homelab_v1_homelab_proto_msgTypes[12]
mi := &file_homelab_v1_homelab_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -788,7 +885,7 @@ func (x *ServiceActionRequest) String() string {
func (*ServiceActionRequest) ProtoMessage() {}
func (x *ServiceActionRequest) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[12]
mi := &file_homelab_v1_homelab_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -801,7 +898,7 @@ func (x *ServiceActionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ServiceActionRequest.ProtoReflect.Descriptor instead.
func (*ServiceActionRequest) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{12}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{14}
}
func (x *ServiceActionRequest) GetName() string {
@@ -834,7 +931,7 @@ type ServiceActionResponse struct {
func (x *ServiceActionResponse) Reset() {
*x = ServiceActionResponse{}
mi := &file_homelab_v1_homelab_proto_msgTypes[13]
mi := &file_homelab_v1_homelab_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -846,7 +943,7 @@ func (x *ServiceActionResponse) String() string {
func (*ServiceActionResponse) ProtoMessage() {}
func (x *ServiceActionResponse) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[13]
mi := &file_homelab_v1_homelab_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -859,7 +956,7 @@ func (x *ServiceActionResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ServiceActionResponse.ProtoReflect.Descriptor instead.
func (*ServiceActionResponse) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{13}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{15}
}
func (x *ServiceActionResponse) GetOutput() string {
@@ -879,7 +976,7 @@ type ServiceInfoRequest struct {
func (x *ServiceInfoRequest) Reset() {
*x = ServiceInfoRequest{}
mi := &file_homelab_v1_homelab_proto_msgTypes[14]
mi := &file_homelab_v1_homelab_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -891,7 +988,7 @@ func (x *ServiceInfoRequest) String() string {
func (*ServiceInfoRequest) ProtoMessage() {}
func (x *ServiceInfoRequest) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[14]
mi := &file_homelab_v1_homelab_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -904,7 +1001,7 @@ func (x *ServiceInfoRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ServiceInfoRequest.ProtoReflect.Descriptor instead.
func (*ServiceInfoRequest) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{14}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{16}
}
func (x *ServiceInfoRequest) GetName() string {
@@ -930,7 +1027,7 @@ type ServiceInfoResponse struct {
func (x *ServiceInfoResponse) Reset() {
*x = ServiceInfoResponse{}
mi := &file_homelab_v1_homelab_proto_msgTypes[15]
mi := &file_homelab_v1_homelab_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -942,7 +1039,7 @@ func (x *ServiceInfoResponse) String() string {
func (*ServiceInfoResponse) ProtoMessage() {}
func (x *ServiceInfoResponse) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[15]
mi := &file_homelab_v1_homelab_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -955,7 +1052,7 @@ func (x *ServiceInfoResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ServiceInfoResponse.ProtoReflect.Descriptor instead.
func (*ServiceInfoResponse) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{15}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{17}
}
func (x *ServiceInfoResponse) GetOutput() string {
@@ -975,7 +1072,7 @@ type RunScriptRequest struct {
func (x *RunScriptRequest) Reset() {
*x = RunScriptRequest{}
mi := &file_homelab_v1_homelab_proto_msgTypes[16]
mi := &file_homelab_v1_homelab_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -987,7 +1084,7 @@ func (x *RunScriptRequest) String() string {
func (*RunScriptRequest) ProtoMessage() {}
func (x *RunScriptRequest) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[16]
mi := &file_homelab_v1_homelab_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1000,7 +1097,7 @@ func (x *RunScriptRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RunScriptRequest.ProtoReflect.Descriptor instead.
func (*RunScriptRequest) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{16}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{18}
}
func (x *RunScriptRequest) GetName() string {
@@ -1026,7 +1123,7 @@ type RunScriptResponse struct {
func (x *RunScriptResponse) Reset() {
*x = RunScriptResponse{}
mi := &file_homelab_v1_homelab_proto_msgTypes[17]
mi := &file_homelab_v1_homelab_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1038,7 +1135,7 @@ func (x *RunScriptResponse) String() string {
func (*RunScriptResponse) ProtoMessage() {}
func (x *RunScriptResponse) ProtoReflect() protoreflect.Message {
mi := &file_homelab_v1_homelab_proto_msgTypes[17]
mi := &file_homelab_v1_homelab_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1051,7 +1148,7 @@ func (x *RunScriptResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use RunScriptResponse.ProtoReflect.Descriptor instead.
func (*RunScriptResponse) Descriptor() ([]byte, []int) {
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{17}
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{19}
}
func (x *RunScriptResponse) GetOutput() string {
@@ -1066,20 +1163,27 @@ var File_homelab_v1_homelab_proto protoreflect.FileDescriptor
const file_homelab_v1_homelab_proto_rawDesc = "" +
"\n" +
"\x18homelab/v1/homelab.proto\x12\n" +
"homelab.v1\"u\n" +
"homelab.v1\"K\n" +
"\x04Item\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
"\x04data\x18\x02 \x01(\tR\x04data\x12\x14\n" +
"\x05value\x18\x03 \x01(\tR\x05value\x12\x12\n" +
"\x04args\x18\x04 \x01(\x05R\x04args\x12\x1b\n" +
"\targ_types\x18\x05 \x03(\tR\bargTypes\",\n" +
"\targ_types\x18\x05 \x03(\tR\bargTypes\"0\n" +
"\x04Stat\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value\"e\n" +
"\aMonitor\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
"\n" +
"percentage\x18\x02 \x01(\x05R\n" +
"percentage\x12&\n" +
"\x05stats\x18\x03 \x03(\v2\x10.homelab.v1.StatR\x05stats\",\n" +
"\x04Link\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" +
"\x03url\x18\x02 \x01(\tR\x03url\"\x14\n" +
"\x12ListContentRequest\"\xc2\x01\n" +
"\x12ListContentRequest\"\xc5\x01\n" +
"\x13ListContentResponse\x12&\n" +
"\x05links\x18\x01 \x03(\v2\x10.homelab.v1.LinkR\x05links\x12,\n" +
"\bmonitors\x18\x02 \x03(\v2\x10.homelab.v1.ItemR\bmonitors\x12$\n" +
"\x05links\x18\x01 \x03(\v2\x10.homelab.v1.LinkR\x05links\x12/\n" +
"\bmonitors\x18\x02 \x03(\v2\x13.homelab.v1.MonitorR\bmonitors\x12$\n" +
"\x04exec\x18\x03 \x03(\v2\x10.homelab.v1.ItemR\x04exec\x12/\n" +
"\bservices\x18\x04 \x03(\v2\x13.homelab.v1.ServiceR\bservices\"1\n" +
"\aDocMeta\x12\x12\n" +
@@ -1155,58 +1259,61 @@ func file_homelab_v1_homelab_proto_rawDescGZIP() []byte {
}
var file_homelab_v1_homelab_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_homelab_v1_homelab_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_homelab_v1_homelab_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
var file_homelab_v1_homelab_proto_goTypes = []any{
(ServiceKind)(0), // 0: homelab.v1.ServiceKind
(ServiceOp)(0), // 1: homelab.v1.ServiceOp
(*Item)(nil), // 2: homelab.v1.Item
(*Link)(nil), // 3: homelab.v1.Link
(*ListContentRequest)(nil), // 4: homelab.v1.ListContentRequest
(*ListContentResponse)(nil), // 5: homelab.v1.ListContentResponse
(*DocMeta)(nil), // 6: homelab.v1.DocMeta
(*ListDocsRequest)(nil), // 7: homelab.v1.ListDocsRequest
(*ListDocsResponse)(nil), // 8: homelab.v1.ListDocsResponse
(*GetDocRequest)(nil), // 9: homelab.v1.GetDocRequest
(*GetDocResponse)(nil), // 10: homelab.v1.GetDocResponse
(*SaveDocRequest)(nil), // 11: homelab.v1.SaveDocRequest
(*SaveDocResponse)(nil), // 12: homelab.v1.SaveDocResponse
(*Service)(nil), // 13: homelab.v1.Service
(*ServiceActionRequest)(nil), // 14: homelab.v1.ServiceActionRequest
(*ServiceActionResponse)(nil), // 15: homelab.v1.ServiceActionResponse
(*ServiceInfoRequest)(nil), // 16: homelab.v1.ServiceInfoRequest
(*ServiceInfoResponse)(nil), // 17: homelab.v1.ServiceInfoResponse
(*RunScriptRequest)(nil), // 18: homelab.v1.RunScriptRequest
(*RunScriptResponse)(nil), // 19: homelab.v1.RunScriptResponse
(*Stat)(nil), // 3: homelab.v1.Stat
(*Monitor)(nil), // 4: homelab.v1.Monitor
(*Link)(nil), // 5: homelab.v1.Link
(*ListContentRequest)(nil), // 6: homelab.v1.ListContentRequest
(*ListContentResponse)(nil), // 7: homelab.v1.ListContentResponse
(*DocMeta)(nil), // 8: homelab.v1.DocMeta
(*ListDocsRequest)(nil), // 9: homelab.v1.ListDocsRequest
(*ListDocsResponse)(nil), // 10: homelab.v1.ListDocsResponse
(*GetDocRequest)(nil), // 11: homelab.v1.GetDocRequest
(*GetDocResponse)(nil), // 12: homelab.v1.GetDocResponse
(*SaveDocRequest)(nil), // 13: homelab.v1.SaveDocRequest
(*SaveDocResponse)(nil), // 14: homelab.v1.SaveDocResponse
(*Service)(nil), // 15: homelab.v1.Service
(*ServiceActionRequest)(nil), // 16: homelab.v1.ServiceActionRequest
(*ServiceActionResponse)(nil), // 17: homelab.v1.ServiceActionResponse
(*ServiceInfoRequest)(nil), // 18: homelab.v1.ServiceInfoRequest
(*ServiceInfoResponse)(nil), // 19: homelab.v1.ServiceInfoResponse
(*RunScriptRequest)(nil), // 20: homelab.v1.RunScriptRequest
(*RunScriptResponse)(nil), // 21: homelab.v1.RunScriptResponse
}
var file_homelab_v1_homelab_proto_depIdxs = []int32{
3, // 0: homelab.v1.ListContentResponse.links:type_name -> homelab.v1.Link
2, // 1: homelab.v1.ListContentResponse.monitors:type_name -> homelab.v1.Item
2, // 2: homelab.v1.ListContentResponse.exec:type_name -> homelab.v1.Item
13, // 3: homelab.v1.ListContentResponse.services:type_name -> homelab.v1.Service
6, // 4: homelab.v1.ListDocsResponse.docs:type_name -> homelab.v1.DocMeta
0, // 5: homelab.v1.Service.kind:type_name -> homelab.v1.ServiceKind
0, // 6: homelab.v1.ServiceActionRequest.kind:type_name -> homelab.v1.ServiceKind
1, // 7: homelab.v1.ServiceActionRequest.op:type_name -> homelab.v1.ServiceOp
0, // 8: homelab.v1.ServiceInfoRequest.kind:type_name -> homelab.v1.ServiceKind
4, // 9: homelab.v1.HomelabService.ListContent:input_type -> homelab.v1.ListContentRequest
7, // 10: homelab.v1.HomelabService.ListDocs:input_type -> homelab.v1.ListDocsRequest
9, // 11: homelab.v1.HomelabService.GetDoc:input_type -> homelab.v1.GetDocRequest
11, // 12: homelab.v1.HomelabService.SaveDoc:input_type -> homelab.v1.SaveDocRequest
14, // 13: homelab.v1.HomelabService.ServiceAction:input_type -> homelab.v1.ServiceActionRequest
16, // 14: homelab.v1.HomelabService.ServiceInfo:input_type -> homelab.v1.ServiceInfoRequest
18, // 15: homelab.v1.HomelabService.RunScript:input_type -> homelab.v1.RunScriptRequest
5, // 16: homelab.v1.HomelabService.ListContent:output_type -> homelab.v1.ListContentResponse
8, // 17: homelab.v1.HomelabService.ListDocs:output_type -> homelab.v1.ListDocsResponse
10, // 18: homelab.v1.HomelabService.GetDoc:output_type -> homelab.v1.GetDocResponse
12, // 19: homelab.v1.HomelabService.SaveDoc:output_type -> homelab.v1.SaveDocResponse
15, // 20: homelab.v1.HomelabService.ServiceAction:output_type -> homelab.v1.ServiceActionResponse
17, // 21: homelab.v1.HomelabService.ServiceInfo:output_type -> homelab.v1.ServiceInfoResponse
19, // 22: homelab.v1.HomelabService.RunScript:output_type -> homelab.v1.RunScriptResponse
16, // [16:23] is the sub-list for method output_type
9, // [9:16] 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
3, // 0: homelab.v1.Monitor.stats:type_name -> homelab.v1.Stat
5, // 1: homelab.v1.ListContentResponse.links:type_name -> homelab.v1.Link
4, // 2: homelab.v1.ListContentResponse.monitors:type_name -> homelab.v1.Monitor
2, // 3: homelab.v1.ListContentResponse.exec:type_name -> homelab.v1.Item
15, // 4: homelab.v1.ListContentResponse.services:type_name -> homelab.v1.Service
8, // 5: homelab.v1.ListDocsResponse.docs:type_name -> homelab.v1.DocMeta
0, // 6: homelab.v1.Service.kind:type_name -> homelab.v1.ServiceKind
0, // 7: homelab.v1.ServiceActionRequest.kind:type_name -> homelab.v1.ServiceKind
1, // 8: homelab.v1.ServiceActionRequest.op:type_name -> homelab.v1.ServiceOp
0, // 9: homelab.v1.ServiceInfoRequest.kind:type_name -> homelab.v1.ServiceKind
6, // 10: homelab.v1.HomelabService.ListContent:input_type -> homelab.v1.ListContentRequest
9, // 11: homelab.v1.HomelabService.ListDocs:input_type -> homelab.v1.ListDocsRequest
11, // 12: homelab.v1.HomelabService.GetDoc:input_type -> homelab.v1.GetDocRequest
13, // 13: homelab.v1.HomelabService.SaveDoc:input_type -> homelab.v1.SaveDocRequest
16, // 14: homelab.v1.HomelabService.ServiceAction:input_type -> homelab.v1.ServiceActionRequest
18, // 15: homelab.v1.HomelabService.ServiceInfo:input_type -> homelab.v1.ServiceInfoRequest
20, // 16: homelab.v1.HomelabService.RunScript:input_type -> homelab.v1.RunScriptRequest
7, // 17: homelab.v1.HomelabService.ListContent:output_type -> homelab.v1.ListContentResponse
10, // 18: homelab.v1.HomelabService.ListDocs:output_type -> homelab.v1.ListDocsResponse
12, // 19: homelab.v1.HomelabService.GetDoc:output_type -> homelab.v1.GetDocResponse
14, // 20: homelab.v1.HomelabService.SaveDoc:output_type -> homelab.v1.SaveDocResponse
17, // 21: homelab.v1.HomelabService.ServiceAction:output_type -> homelab.v1.ServiceActionResponse
19, // 22: homelab.v1.HomelabService.ServiceInfo:output_type -> homelab.v1.ServiceInfoResponse
21, // 23: homelab.v1.HomelabService.RunScript:output_type -> homelab.v1.RunScriptResponse
17, // [17:24] is the sub-list for method output_type
10, // [10:17] is the sub-list for method input_type
10, // [10:10] is the sub-list for extension type_name
10, // [10:10] is the sub-list for extension extendee
0, // [0:10] is the sub-list for field type_name
}
func init() { file_homelab_v1_homelab_proto_init() }
@@ -1220,7 +1327,7 @@ func file_homelab_v1_homelab_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_homelab_v1_homelab_proto_rawDesc), len(file_homelab_v1_homelab_proto_rawDesc)),
NumEnums: 2,
NumMessages: 18,
NumMessages: 20,
NumExtensions: 0,
NumServices: 1,
},