+395
-46
@@ -21,6 +21,102 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// One card in the Services view: a systemd user unit or a docker compose project.
|
||||
type ServiceKind int32
|
||||
|
||||
const (
|
||||
ServiceKind_SYSTEMD ServiceKind = 0
|
||||
ServiceKind_DOCKER ServiceKind = 1
|
||||
)
|
||||
|
||||
// Enum value maps for ServiceKind.
|
||||
var (
|
||||
ServiceKind_name = map[int32]string{
|
||||
0: "SYSTEMD",
|
||||
1: "DOCKER",
|
||||
}
|
||||
ServiceKind_value = map[string]int32{
|
||||
"SYSTEMD": 0,
|
||||
"DOCKER": 1,
|
||||
}
|
||||
)
|
||||
|
||||
func (x ServiceKind) Enum() *ServiceKind {
|
||||
p := new(ServiceKind)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x ServiceKind) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (ServiceKind) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_homelab_v1_homelab_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (ServiceKind) Type() protoreflect.EnumType {
|
||||
return &file_homelab_v1_homelab_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x ServiceKind) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ServiceKind.Descriptor instead.
|
||||
func (ServiceKind) EnumDescriptor() ([]byte, []int) {
|
||||
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type ServiceOp int32
|
||||
|
||||
const (
|
||||
ServiceOp_START ServiceOp = 0
|
||||
ServiceOp_STOP ServiceOp = 1
|
||||
ServiceOp_RESTART ServiceOp = 2
|
||||
)
|
||||
|
||||
// Enum value maps for ServiceOp.
|
||||
var (
|
||||
ServiceOp_name = map[int32]string{
|
||||
0: "START",
|
||||
1: "STOP",
|
||||
2: "RESTART",
|
||||
}
|
||||
ServiceOp_value = map[string]int32{
|
||||
"START": 0,
|
||||
"STOP": 1,
|
||||
"RESTART": 2,
|
||||
}
|
||||
)
|
||||
|
||||
func (x ServiceOp) Enum() *ServiceOp {
|
||||
p := new(ServiceOp)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x ServiceOp) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (ServiceOp) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_homelab_v1_homelab_proto_enumTypes[1].Descriptor()
|
||||
}
|
||||
|
||||
func (ServiceOp) Type() protoreflect.EnumType {
|
||||
return &file_homelab_v1_homelab_proto_enumTypes[1]
|
||||
}
|
||||
|
||||
func (x ServiceOp) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ServiceOp.Descriptor instead.
|
||||
func (ServiceOp) EnumDescriptor() ([]byte, []int) {
|
||||
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type Item struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
@@ -190,6 +286,7 @@ type ListContentResponse struct {
|
||||
Links []*Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
|
||||
Monitors []*Item `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
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -245,6 +342,13 @@ func (x *ListContentResponse) GetExec() []*Item {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ListContentResponse) GetServices() []*Service {
|
||||
if x != nil {
|
||||
return x.Services
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DocMeta struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
@@ -561,6 +665,210 @@ func (x *SaveDocResponse) GetHash() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Kind ServiceKind `protobuf:"varint,1,opt,name=kind,proto3,enum=homelab.v1.ServiceKind" json:"kind,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // unit name without .service / compose project name (or container name if unlabeled)
|
||||
State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` // systemd: ActiveState. docker: active | partial | inactive
|
||||
Substate string `protobuf:"bytes,4,opt,name=substate,proto3" json:"substate,omitempty"` // systemd: SubState. docker: "up/total"
|
||||
LoadState string `protobuf:"bytes,5,opt,name=load_state,json=loadState,proto3" json:"load_state,omitempty"` // systemd only: loaded | not-found (= disabled by the user, not an error)
|
||||
UnitFileState string `protobuf:"bytes,6,opt,name=unit_file_state,json=unitFileState,proto3" json:"unit_file_state,omitempty"` // systemd only: enabled | disabled | static
|
||||
Containers []string `protobuf:"bytes,7,rep,name=containers,proto3" json:"containers,omitempty"` // docker only: containers the card controls
|
||||
Error string `protobuf:"bytes,8,opt,name=error,proto3" json:"error,omitempty"` // probe failure, empty = ok
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Service) Reset() {
|
||||
*x = Service{}
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Service) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Service) ProtoMessage() {}
|
||||
|
||||
func (x *Service) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[11]
|
||||
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 Service.ProtoReflect.Descriptor instead.
|
||||
func (*Service) Descriptor() ([]byte, []int) {
|
||||
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *Service) GetKind() ServiceKind {
|
||||
if x != nil {
|
||||
return x.Kind
|
||||
}
|
||||
return ServiceKind_SYSTEMD
|
||||
}
|
||||
|
||||
func (x *Service) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Service) GetState() string {
|
||||
if x != nil {
|
||||
return x.State
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Service) GetSubstate() string {
|
||||
if x != nil {
|
||||
return x.Substate
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Service) GetLoadState() string {
|
||||
if x != nil {
|
||||
return x.LoadState
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Service) GetUnitFileState() string {
|
||||
if x != nil {
|
||||
return x.UnitFileState
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Service) GetContainers() []string {
|
||||
if x != nil {
|
||||
return x.Containers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Service) GetError() string {
|
||||
if x != nil {
|
||||
return x.Error
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ServiceActionRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Kind ServiceKind `protobuf:"varint,2,opt,name=kind,proto3,enum=homelab.v1.ServiceKind" json:"kind,omitempty"`
|
||||
Op ServiceOp `protobuf:"varint,3,opt,name=op,proto3,enum=homelab.v1.ServiceOp" json:"op,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ServiceActionRequest) Reset() {
|
||||
*x = ServiceActionRequest{}
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ServiceActionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ServiceActionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ServiceActionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[12]
|
||||
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 ServiceActionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ServiceActionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *ServiceActionRequest) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ServiceActionRequest) GetKind() ServiceKind {
|
||||
if x != nil {
|
||||
return x.Kind
|
||||
}
|
||||
return ServiceKind_SYSTEMD
|
||||
}
|
||||
|
||||
func (x *ServiceActionRequest) GetOp() ServiceOp {
|
||||
if x != nil {
|
||||
return x.Op
|
||||
}
|
||||
return ServiceOp_START
|
||||
}
|
||||
|
||||
type ServiceActionResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Output string `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ServiceActionResponse) Reset() {
|
||||
*x = ServiceActionResponse{}
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ServiceActionResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ServiceActionResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ServiceActionResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[13]
|
||||
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 ServiceActionResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ServiceActionResponse) Descriptor() ([]byte, []int) {
|
||||
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *ServiceActionResponse) GetOutput() string {
|
||||
if x != nil {
|
||||
return x.Output
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type RunScriptRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
@@ -571,7 +879,7 @@ type RunScriptRequest struct {
|
||||
|
||||
func (x *RunScriptRequest) Reset() {
|
||||
*x = RunScriptRequest{}
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[11]
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -583,7 +891,7 @@ func (x *RunScriptRequest) String() string {
|
||||
func (*RunScriptRequest) ProtoMessage() {}
|
||||
|
||||
func (x *RunScriptRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[11]
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[14]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -596,7 +904,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{11}
|
||||
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *RunScriptRequest) GetName() string {
|
||||
@@ -622,7 +930,7 @@ type RunScriptResponse struct {
|
||||
|
||||
func (x *RunScriptResponse) Reset() {
|
||||
*x = RunScriptResponse{}
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[12]
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -634,7 +942,7 @@ func (x *RunScriptResponse) String() string {
|
||||
func (*RunScriptResponse) ProtoMessage() {}
|
||||
|
||||
func (x *RunScriptResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[12]
|
||||
mi := &file_homelab_v1_homelab_proto_msgTypes[15]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -647,7 +955,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{12}
|
||||
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *RunScriptResponse) GetOutput() string {
|
||||
@@ -672,11 +980,12 @@ const file_homelab_v1_homelab_proto_rawDesc = "" +
|
||||
"\x04Link\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" +
|
||||
"\x03url\x18\x02 \x01(\tR\x03url\"\x14\n" +
|
||||
"\x12ListContentRequest\"\x91\x01\n" +
|
||||
"\x12ListContentRequest\"\xc2\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" +
|
||||
"\x04exec\x18\x03 \x03(\v2\x10.homelab.v1.ItemR\x04exec\"1\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" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||
"\x04hash\x18\x02 \x01(\tR\x04hash\"\x11\n" +
|
||||
@@ -691,17 +1000,44 @@ const file_homelab_v1_homelab_proto_rawDesc = "" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\"%\n" +
|
||||
"\x0fSaveDocResponse\x12\x12\n" +
|
||||
"\x04hash\x18\x01 \x01(\tR\x04hash\":\n" +
|
||||
"\x04hash\x18\x01 \x01(\tR\x04hash\"\xf9\x01\n" +
|
||||
"\aService\x12+\n" +
|
||||
"\x04kind\x18\x01 \x01(\x0e2\x17.homelab.v1.ServiceKindR\x04kind\x12\x12\n" +
|
||||
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" +
|
||||
"\x05state\x18\x03 \x01(\tR\x05state\x12\x1a\n" +
|
||||
"\bsubstate\x18\x04 \x01(\tR\bsubstate\x12\x1d\n" +
|
||||
"\n" +
|
||||
"load_state\x18\x05 \x01(\tR\tloadState\x12&\n" +
|
||||
"\x0funit_file_state\x18\x06 \x01(\tR\runitFileState\x12\x1e\n" +
|
||||
"\n" +
|
||||
"containers\x18\a \x03(\tR\n" +
|
||||
"containers\x12\x14\n" +
|
||||
"\x05error\x18\b \x01(\tR\x05error\"~\n" +
|
||||
"\x14ServiceActionRequest\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12+\n" +
|
||||
"\x04kind\x18\x02 \x01(\x0e2\x17.homelab.v1.ServiceKindR\x04kind\x12%\n" +
|
||||
"\x02op\x18\x03 \x01(\x0e2\x15.homelab.v1.ServiceOpR\x02op\"/\n" +
|
||||
"\x15ServiceActionResponse\x12\x16\n" +
|
||||
"\x06output\x18\x01 \x01(\tR\x06output\":\n" +
|
||||
"\x10RunScriptRequest\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||
"\x04args\x18\x02 \x03(\tR\x04args\"+\n" +
|
||||
"\x11RunScriptResponse\x12\x16\n" +
|
||||
"\x06output\x18\x01 \x01(\tR\x06output2\xf6\x02\n" +
|
||||
"\x06output\x18\x01 \x01(\tR\x06output*&\n" +
|
||||
"\vServiceKind\x12\v\n" +
|
||||
"\aSYSTEMD\x10\x00\x12\n" +
|
||||
"\n" +
|
||||
"\x06DOCKER\x10\x01*-\n" +
|
||||
"\tServiceOp\x12\t\n" +
|
||||
"\x05START\x10\x00\x12\b\n" +
|
||||
"\x04STOP\x10\x01\x12\v\n" +
|
||||
"\aRESTART\x10\x022\xcc\x03\n" +
|
||||
"\x0eHomelabService\x12N\n" +
|
||||
"\vListContent\x12\x1e.homelab.v1.ListContentRequest\x1a\x1f.homelab.v1.ListContentResponse\x12E\n" +
|
||||
"\bListDocs\x12\x1b.homelab.v1.ListDocsRequest\x1a\x1c.homelab.v1.ListDocsResponse\x12?\n" +
|
||||
"\x06GetDoc\x12\x19.homelab.v1.GetDocRequest\x1a\x1a.homelab.v1.GetDocResponse\x12B\n" +
|
||||
"\aSaveDoc\x12\x1a.homelab.v1.SaveDocRequest\x1a\x1b.homelab.v1.SaveDocResponse\x12H\n" +
|
||||
"\aSaveDoc\x12\x1a.homelab.v1.SaveDocRequest\x1a\x1b.homelab.v1.SaveDocResponse\x12T\n" +
|
||||
"\rServiceAction\x12 .homelab.v1.ServiceActionRequest\x1a!.homelab.v1.ServiceActionResponse\x12H\n" +
|
||||
"\tRunScript\x12\x1c.homelab.v1.RunScriptRequest\x1a\x1d.homelab.v1.RunScriptResponseB*Z(pwa-homelab-mon/gen/homelab/v1;homelabv1b\x06proto3"
|
||||
|
||||
var (
|
||||
@@ -716,42 +1052,54 @@ func file_homelab_v1_homelab_proto_rawDescGZIP() []byte {
|
||||
return file_homelab_v1_homelab_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_homelab_v1_homelab_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||
var file_homelab_v1_homelab_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_homelab_v1_homelab_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
||||
var file_homelab_v1_homelab_proto_goTypes = []any{
|
||||
(*Item)(nil), // 0: homelab.v1.Item
|
||||
(*Link)(nil), // 1: homelab.v1.Link
|
||||
(*ListContentRequest)(nil), // 2: homelab.v1.ListContentRequest
|
||||
(*ListContentResponse)(nil), // 3: homelab.v1.ListContentResponse
|
||||
(*DocMeta)(nil), // 4: homelab.v1.DocMeta
|
||||
(*ListDocsRequest)(nil), // 5: homelab.v1.ListDocsRequest
|
||||
(*ListDocsResponse)(nil), // 6: homelab.v1.ListDocsResponse
|
||||
(*GetDocRequest)(nil), // 7: homelab.v1.GetDocRequest
|
||||
(*GetDocResponse)(nil), // 8: homelab.v1.GetDocResponse
|
||||
(*SaveDocRequest)(nil), // 9: homelab.v1.SaveDocRequest
|
||||
(*SaveDocResponse)(nil), // 10: homelab.v1.SaveDocResponse
|
||||
(*RunScriptRequest)(nil), // 11: homelab.v1.RunScriptRequest
|
||||
(*RunScriptResponse)(nil), // 12: homelab.v1.RunScriptResponse
|
||||
(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
|
||||
(*RunScriptRequest)(nil), // 16: homelab.v1.RunScriptRequest
|
||||
(*RunScriptResponse)(nil), // 17: homelab.v1.RunScriptResponse
|
||||
}
|
||||
var file_homelab_v1_homelab_proto_depIdxs = []int32{
|
||||
1, // 0: homelab.v1.ListContentResponse.links:type_name -> homelab.v1.Link
|
||||
0, // 1: homelab.v1.ListContentResponse.monitors:type_name -> homelab.v1.Item
|
||||
0, // 2: homelab.v1.ListContentResponse.exec:type_name -> homelab.v1.Item
|
||||
4, // 3: homelab.v1.ListDocsResponse.docs:type_name -> homelab.v1.DocMeta
|
||||
2, // 4: homelab.v1.HomelabService.ListContent:input_type -> homelab.v1.ListContentRequest
|
||||
5, // 5: homelab.v1.HomelabService.ListDocs:input_type -> homelab.v1.ListDocsRequest
|
||||
7, // 6: homelab.v1.HomelabService.GetDoc:input_type -> homelab.v1.GetDocRequest
|
||||
9, // 7: homelab.v1.HomelabService.SaveDoc:input_type -> homelab.v1.SaveDocRequest
|
||||
11, // 8: homelab.v1.HomelabService.RunScript:input_type -> homelab.v1.RunScriptRequest
|
||||
3, // 9: homelab.v1.HomelabService.ListContent:output_type -> homelab.v1.ListContentResponse
|
||||
6, // 10: homelab.v1.HomelabService.ListDocs:output_type -> homelab.v1.ListDocsResponse
|
||||
8, // 11: homelab.v1.HomelabService.GetDoc:output_type -> homelab.v1.GetDocResponse
|
||||
10, // 12: homelab.v1.HomelabService.SaveDoc:output_type -> homelab.v1.SaveDocResponse
|
||||
12, // 13: homelab.v1.HomelabService.RunScript:output_type -> homelab.v1.RunScriptResponse
|
||||
9, // [9:14] is the sub-list for method output_type
|
||||
4, // [4:9] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
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
|
||||
4, // 8: homelab.v1.HomelabService.ListContent:input_type -> homelab.v1.ListContentRequest
|
||||
7, // 9: homelab.v1.HomelabService.ListDocs:input_type -> homelab.v1.ListDocsRequest
|
||||
9, // 10: homelab.v1.HomelabService.GetDoc:input_type -> homelab.v1.GetDocRequest
|
||||
11, // 11: homelab.v1.HomelabService.SaveDoc:input_type -> homelab.v1.SaveDocRequest
|
||||
14, // 12: homelab.v1.HomelabService.ServiceAction:input_type -> homelab.v1.ServiceActionRequest
|
||||
16, // 13: homelab.v1.HomelabService.RunScript:input_type -> homelab.v1.RunScriptRequest
|
||||
5, // 14: homelab.v1.HomelabService.ListContent:output_type -> homelab.v1.ListContentResponse
|
||||
8, // 15: homelab.v1.HomelabService.ListDocs:output_type -> homelab.v1.ListDocsResponse
|
||||
10, // 16: homelab.v1.HomelabService.GetDoc:output_type -> homelab.v1.GetDocResponse
|
||||
12, // 17: homelab.v1.HomelabService.SaveDoc:output_type -> homelab.v1.SaveDocResponse
|
||||
15, // 18: homelab.v1.HomelabService.ServiceAction:output_type -> homelab.v1.ServiceActionResponse
|
||||
17, // 19: homelab.v1.HomelabService.RunScript:output_type -> homelab.v1.RunScriptResponse
|
||||
14, // [14:20] is the sub-list for method output_type
|
||||
8, // [8:14] is the sub-list for method input_type
|
||||
8, // [8:8] is the sub-list for extension type_name
|
||||
8, // [8:8] is the sub-list for extension extendee
|
||||
0, // [0:8] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_homelab_v1_homelab_proto_init() }
|
||||
@@ -764,13 +1112,14 @@ func file_homelab_v1_homelab_proto_init() {
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_homelab_v1_homelab_proto_rawDesc), len(file_homelab_v1_homelab_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 13,
|
||||
NumEnums: 2,
|
||||
NumMessages: 16,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_homelab_v1_homelab_proto_goTypes,
|
||||
DependencyIndexes: file_homelab_v1_homelab_proto_depIdxs,
|
||||
EnumInfos: file_homelab_v1_homelab_proto_enumTypes,
|
||||
MessageInfos: file_homelab_v1_homelab_proto_msgTypes,
|
||||
}.Build()
|
||||
File_homelab_v1_homelab_proto = out.File
|
||||
|
||||
Reference in New Issue
Block a user