1343 lines
39 KiB
Go
1343 lines
39 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc v7.35.1
|
|
// source: homelab/v1/homelab.proto
|
|
|
|
package homelabv1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// 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"`
|
|
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
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Item) Reset() {
|
|
*x = Item{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Item) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Item) ProtoMessage() {}
|
|
|
|
func (x *Item) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[0]
|
|
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 Item.ProtoReflect.Descriptor instead.
|
|
func (*Item) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Item) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Item) GetArgs() int32 {
|
|
if x != nil {
|
|
return x.Args
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Item) GetArgTypes() []string {
|
|
if x != nil {
|
|
return x.ArgTypes
|
|
}
|
|
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"`
|
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Link) Reset() {
|
|
*x = Link{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Link) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Link) ProtoMessage() {}
|
|
|
|
func (x *Link) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[3]
|
|
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 Link.ProtoReflect.Descriptor instead.
|
|
func (*Link) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Link) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Link) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListContentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListContentRequest) Reset() {
|
|
*x = ListContentRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListContentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListContentRequest) ProtoMessage() {}
|
|
|
|
func (x *ListContentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[4]
|
|
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 ListContentRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListContentRequest) Descriptor() ([]byte, []int) {
|
|
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 []*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
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListContentResponse) Reset() {
|
|
*x = ListContentResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListContentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListContentResponse) ProtoMessage() {}
|
|
|
|
func (x *ListContentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[5]
|
|
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 ListContentResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListContentResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListContentResponse) GetLinks() []*Link {
|
|
if x != nil {
|
|
return x.Links
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListContentResponse) GetMonitors() []*Monitor {
|
|
if x != nil {
|
|
return x.Monitors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListContentResponse) GetExec() []*Item {
|
|
if x != nil {
|
|
return x.Exec
|
|
}
|
|
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"`
|
|
Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // sha256 hex of content
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DocMeta) Reset() {
|
|
*x = DocMeta{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DocMeta) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DocMeta) ProtoMessage() {}
|
|
|
|
func (x *DocMeta) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[6]
|
|
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 DocMeta.ProtoReflect.Descriptor instead.
|
|
func (*DocMeta) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *DocMeta) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DocMeta) GetHash() string {
|
|
if x != nil {
|
|
return x.Hash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListDocsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListDocsRequest) Reset() {
|
|
*x = ListDocsRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListDocsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListDocsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListDocsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[7]
|
|
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 ListDocsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListDocsRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type ListDocsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Docs []*DocMeta `protobuf:"bytes,1,rep,name=docs,proto3" json:"docs,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListDocsResponse) Reset() {
|
|
*x = ListDocsResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListDocsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListDocsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListDocsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[8]
|
|
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 ListDocsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListDocsResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *ListDocsResponse) GetDocs() []*DocMeta {
|
|
if x != nil {
|
|
return x.Docs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetDocRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetDocRequest) Reset() {
|
|
*x = GetDocRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetDocRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetDocRequest) ProtoMessage() {}
|
|
|
|
func (x *GetDocRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[9]
|
|
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 GetDocRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetDocRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *GetDocRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetDocResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetDocResponse) Reset() {
|
|
*x = GetDocResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetDocResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetDocResponse) ProtoMessage() {}
|
|
|
|
func (x *GetDocResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[10]
|
|
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 GetDocResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetDocResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *GetDocResponse) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SaveDocRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SaveDocRequest) Reset() {
|
|
*x = SaveDocRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SaveDocRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SaveDocRequest) ProtoMessage() {}
|
|
|
|
func (x *SaveDocRequest) 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 SaveDocRequest.ProtoReflect.Descriptor instead.
|
|
func (*SaveDocRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *SaveDocRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SaveDocRequest) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SaveDocResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SaveDocResponse) Reset() {
|
|
*x = SaveDocResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SaveDocResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SaveDocResponse) ProtoMessage() {}
|
|
|
|
func (x *SaveDocResponse) 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 SaveDocResponse.ProtoReflect.Descriptor instead.
|
|
func (*SaveDocResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *SaveDocResponse) GetHash() string {
|
|
if x != nil {
|
|
return x.Hash
|
|
}
|
|
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[13]
|
|
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[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 Service.ProtoReflect.Descriptor instead.
|
|
func (*Service) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
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[14]
|
|
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[14]
|
|
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{14}
|
|
}
|
|
|
|
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[15]
|
|
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[15]
|
|
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{15}
|
|
}
|
|
|
|
func (x *ServiceActionResponse) GetOutput() string {
|
|
if x != nil {
|
|
return x.Output
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ServiceInfoRequest 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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ServiceInfoRequest) Reset() {
|
|
*x = ServiceInfoRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ServiceInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ServiceInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *ServiceInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[16]
|
|
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 ServiceInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*ServiceInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *ServiceInfoRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ServiceInfoRequest) GetKind() ServiceKind {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ServiceKind_SYSTEMD
|
|
}
|
|
|
|
type ServiceInfoResponse 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 *ServiceInfoResponse) Reset() {
|
|
*x = ServiceInfoResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ServiceInfoResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ServiceInfoResponse) ProtoMessage() {}
|
|
|
|
func (x *ServiceInfoResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[17]
|
|
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 ServiceInfoResponse.ProtoReflect.Descriptor instead.
|
|
func (*ServiceInfoResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *ServiceInfoResponse) 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"`
|
|
Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RunScriptRequest) Reset() {
|
|
*x = RunScriptRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RunScriptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RunScriptRequest) ProtoMessage() {}
|
|
|
|
func (x *RunScriptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[18]
|
|
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 RunScriptRequest.ProtoReflect.Descriptor instead.
|
|
func (*RunScriptRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *RunScriptRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RunScriptRequest) GetArgs() []string {
|
|
if x != nil {
|
|
return x.Args
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RunScriptResponse 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 *RunScriptResponse) Reset() {
|
|
*x = RunScriptResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RunScriptResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RunScriptResponse) ProtoMessage() {}
|
|
|
|
func (x *RunScriptResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[19]
|
|
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 RunScriptResponse.ProtoReflect.Descriptor instead.
|
|
func (*RunScriptResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *RunScriptResponse) GetOutput() string {
|
|
if x != nil {
|
|
return x.Output
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_homelab_v1_homelab_proto protoreflect.FileDescriptor
|
|
|
|
const file_homelab_v1_homelab_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x18homelab/v1/homelab.proto\x12\n" +
|
|
"homelab.v1\"K\n" +
|
|
"\x04Item\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04args\x18\x04 \x01(\x05R\x04args\x12\x1b\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\"\xc5\x01\n" +
|
|
"\x13ListContentResponse\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" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04hash\x18\x02 \x01(\tR\x04hash\"\x11\n" +
|
|
"\x0fListDocsRequest\";\n" +
|
|
"\x10ListDocsResponse\x12'\n" +
|
|
"\x04docs\x18\x01 \x03(\v2\x13.homelab.v1.DocMetaR\x04docs\"#\n" +
|
|
"\rGetDocRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\"*\n" +
|
|
"\x0eGetDocResponse\x12\x18\n" +
|
|
"\acontent\x18\x01 \x01(\tR\acontent\">\n" +
|
|
"\x0eSaveDocRequest\x12\x12\n" +
|
|
"\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\"\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\"U\n" +
|
|
"\x12ServiceInfoRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12+\n" +
|
|
"\x04kind\x18\x02 \x01(\x0e2\x17.homelab.v1.ServiceKindR\x04kind\"-\n" +
|
|
"\x13ServiceInfoResponse\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\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\x9c\x04\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\x12T\n" +
|
|
"\rServiceAction\x12 .homelab.v1.ServiceActionRequest\x1a!.homelab.v1.ServiceActionResponse\x12N\n" +
|
|
"\vServiceInfo\x12\x1e.homelab.v1.ServiceInfoRequest\x1a\x1f.homelab.v1.ServiceInfoResponse\x12H\n" +
|
|
"\tRunScript\x12\x1c.homelab.v1.RunScriptRequest\x1a\x1d.homelab.v1.RunScriptResponseB*Z(pwa-homelab-mon/gen/homelab/v1;homelabv1b\x06proto3"
|
|
|
|
var (
|
|
file_homelab_v1_homelab_proto_rawDescOnce sync.Once
|
|
file_homelab_v1_homelab_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_homelab_v1_homelab_proto_rawDescGZIP() []byte {
|
|
file_homelab_v1_homelab_proto_rawDescOnce.Do(func() {
|
|
file_homelab_v1_homelab_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_homelab_v1_homelab_proto_rawDesc), len(file_homelab_v1_homelab_proto_rawDesc)))
|
|
})
|
|
return file_homelab_v1_homelab_proto_rawDescData
|
|
}
|
|
|
|
var file_homelab_v1_homelab_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
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
|
|
(*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.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() }
|
|
func file_homelab_v1_homelab_proto_init() {
|
|
if File_homelab_v1_homelab_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
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: 2,
|
|
NumMessages: 20,
|
|
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
|
|
file_homelab_v1_homelab_proto_goTypes = nil
|
|
file_homelab_v1_homelab_proto_depIdxs = nil
|
|
}
|