431 lines
13 KiB
Go
431 lines
13 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)
|
|
)
|
|
|
|
type Item struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // monitor | response
|
|
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // monitor: text | percentage
|
|
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // monitor: last output
|
|
Args int32 `protobuf:"varint,5,opt,name=args,proto3" json:"args,omitempty"` // response: arg count
|
|
ArgTypes []string `protobuf:"bytes,6,rep,name=arg_types,json=argTypes,proto3" json:"arg_types,omitempty"` // response: 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) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
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
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Item) GetArgTypes() []string {
|
|
if x != nil {
|
|
return x.ArgTypes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Section struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"`
|
|
Items []*Item `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Section) Reset() {
|
|
*x = Section{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Section) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Section) ProtoMessage() {}
|
|
|
|
func (x *Section) 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 Section.ProtoReflect.Descriptor instead.
|
|
func (*Section) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Section) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Section) GetIcon() string {
|
|
if x != nil {
|
|
return x.Icon
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Section) GetItems() []*Item {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListSectionsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSectionsRequest) Reset() {
|
|
*x = ListSectionsRequest{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSectionsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSectionsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListSectionsRequest) 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 ListSectionsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListSectionsRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type ListSectionsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Sections []*Section `protobuf:"bytes,1,rep,name=sections,proto3" json:"sections,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSectionsResponse) Reset() {
|
|
*x = ListSectionsResponse{}
|
|
mi := &file_homelab_v1_homelab_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSectionsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSectionsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListSectionsResponse) 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 ListSectionsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListSectionsResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ListSectionsResponse) GetSections() []*Section {
|
|
if x != nil {
|
|
return x.Sections
|
|
}
|
|
return nil
|
|
}
|
|
|
|
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[4]
|
|
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[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 RunScriptRequest.ProtoReflect.Descriptor instead.
|
|
func (*RunScriptRequest) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
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[5]
|
|
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[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 RunScriptResponse.ProtoReflect.Descriptor instead.
|
|
func (*RunScriptResponse) Descriptor() ([]byte, []int) {
|
|
return file_homelab_v1_homelab_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
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\"\x89\x01\n" +
|
|
"\x04Item\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04data\x18\x03 \x01(\tR\x04data\x12\x14\n" +
|
|
"\x05value\x18\x04 \x01(\tR\x05value\x12\x12\n" +
|
|
"\x04args\x18\x05 \x01(\x05R\x04args\x12\x1b\n" +
|
|
"\targ_types\x18\x06 \x03(\tR\bargTypes\"Y\n" +
|
|
"\aSection\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04icon\x18\x02 \x01(\tR\x04icon\x12&\n" +
|
|
"\x05items\x18\x03 \x03(\v2\x10.homelab.v1.ItemR\x05items\"\x15\n" +
|
|
"\x13ListSectionsRequest\"G\n" +
|
|
"\x14ListSectionsResponse\x12/\n" +
|
|
"\bsections\x18\x01 \x03(\v2\x13.homelab.v1.SectionR\bsections\":\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\xad\x01\n" +
|
|
"\x0eHomelabService\x12Q\n" +
|
|
"\fListSections\x12\x1f.homelab.v1.ListSectionsRequest\x1a .homelab.v1.ListSectionsResponse\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_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_homelab_v1_homelab_proto_goTypes = []any{
|
|
(*Item)(nil), // 0: homelab.v1.Item
|
|
(*Section)(nil), // 1: homelab.v1.Section
|
|
(*ListSectionsRequest)(nil), // 2: homelab.v1.ListSectionsRequest
|
|
(*ListSectionsResponse)(nil), // 3: homelab.v1.ListSectionsResponse
|
|
(*RunScriptRequest)(nil), // 4: homelab.v1.RunScriptRequest
|
|
(*RunScriptResponse)(nil), // 5: homelab.v1.RunScriptResponse
|
|
}
|
|
var file_homelab_v1_homelab_proto_depIdxs = []int32{
|
|
0, // 0: homelab.v1.Section.items:type_name -> homelab.v1.Item
|
|
1, // 1: homelab.v1.ListSectionsResponse.sections:type_name -> homelab.v1.Section
|
|
2, // 2: homelab.v1.HomelabService.ListSections:input_type -> homelab.v1.ListSectionsRequest
|
|
4, // 3: homelab.v1.HomelabService.RunScript:input_type -> homelab.v1.RunScriptRequest
|
|
3, // 4: homelab.v1.HomelabService.ListSections:output_type -> homelab.v1.ListSectionsResponse
|
|
5, // 5: homelab.v1.HomelabService.RunScript:output_type -> homelab.v1.RunScriptResponse
|
|
4, // [4:6] is the sub-list for method output_type
|
|
2, // [2:4] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
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: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_homelab_v1_homelab_proto_goTypes,
|
|
DependencyIndexes: file_homelab_v1_homelab_proto_depIdxs,
|
|
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
|
|
}
|