Skip to content

Admin Go-API

import "givc/modules/api/admin"

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)
)

const (
AdminService_RegisterService_FullMethodName = "/admin.AdminService/RegisterService"
AdminService_StartApplication_FullMethodName = "/admin.AdminService/StartApplication"
AdminService_StartVM_FullMethodName = "/admin.AdminService/StartVM"
AdminService_StartService_FullMethodName = "/admin.AdminService/StartService"
AdminService_PauseApplication_FullMethodName = "/admin.AdminService/PauseApplication"
AdminService_ResumeApplication_FullMethodName = "/admin.AdminService/ResumeApplication"
AdminService_StopApplication_FullMethodName = "/admin.AdminService/StopApplication"
AdminService_GetUnitStatus_FullMethodName = "/admin.AdminService/GetUnitStatus"
AdminService_SetLocale_FullMethodName = "/admin.AdminService/SetLocale"
AdminService_SetTimezone_FullMethodName = "/admin.AdminService/SetTimezone"
AdminService_GetStats_FullMethodName = "/admin.AdminService/GetStats"
AdminService_Poweroff_FullMethodName = "/admin.AdminService/Poweroff"
AdminService_Reboot_FullMethodName = "/admin.AdminService/Reboot"
AdminService_Suspend_FullMethodName = "/admin.AdminService/Suspend"
AdminService_Wakeup_FullMethodName = "/admin.AdminService/Wakeup"
AdminService_QueryList_FullMethodName = "/admin.AdminService/QueryList"
AdminService_Watch_FullMethodName = "/admin.AdminService/Watch"
)

This is a compile-time assertion to ensure that this generated file is compatible with the grpc package it is being compiled against. Requires gRPC-Go v1.64.0 or later.

const _ = grpc.SupportPackageIsVersion9

const file_admin_admin_proto_rawDesc = "" +
"\n" +
"\x11admin/admin.proto\x12\x05admin\x1a\x11stats/stats.proto\x1a\x15systemd/systemd.proto\"o\n" +
"\x0fTransportConfig\x12\x1a\n" +
"\bProtocol\x18\x01 \x01(\tR\bProtocol\x12\x18\n" +
"\aAddress\x18\x02 \x01(\tR\aAddress\x12\x12\n" +
"\x04Port\x18\x03 \x01(\tR\x04Port\x12\x12\n" +
"\x04Name\x18\x04 \x01(\tR\x04Name\"\xb2\x01\n" +
"\x0fRegistryRequest\x12\x12\n" +
"\x04Name\x18\x01 \x01(\tR\x04Name\x12\x16\n" +
"\x06Parent\x18\x02 \x01(\tR\x06Parent\x12\x12\n" +
"\x04Type\x18\x03 \x01(\rR\x04Type\x124\n" +
"\tTransport\x18\x04 \x01(\v2\x16.admin.TransportConfigR\tTransport\x12)\n" +
"\x05State\x18\x05 \x01(\v2\x13.systemd.UnitStatusR\x05State\"7\n" +
"\x10RegistryResponse\x12\x19\n" +
"\x05Error\x18\x01 \x01(\tH\x00R\x05Error\x88\x01\x01B\b\n" +
"\x06_Error\"j\n" +
"\x12ApplicationRequest\x12\x18\n" +
"\aAppName\x18\x01 \x01(\tR\aAppName\x12\x1b\n" +
"\x06VmName\x18\x02 \x01(\tH\x00R\x06VmName\x88\x01\x01\x12\x12\n" +
"\x04Args\x18\x03 \x03(\tR\x04ArgsB\t\n" +
"\a_VmName\"&\n" +
"\fStatsRequest\x12\x16\n" +
"\x06VmName\x18\x01 \x01(\tR\x06VmName\"(\n" +
"\x0eStartVMRequest\x12\x16\n" +
"\x06VmName\x18\x01 \x01(\tR\x06VmName\"O\n" +
"\x13StartServiceRequest\x12 \n" +
"\vServiceName\x18\x01 \x01(\tR\vServiceName\x12\x16\n" +
"\x06VmName\x18\x02 \x01(\tR\x06VmName\"/\n" +
"\rStartResponse\x12\x1e\n" +
"\n" +
"registryId\x18\x01 \x01(\tR\n" +
"registryId\"Q\n" +
"\x13ApplicationResponse\x12\x1c\n" +
"\tCmdStatus\x18\x01 \x01(\tR\tCmdStatus\x12\x1c\n" +
"\tAppStatus\x18\x02 \x01(\tR\tAppStatus\"G\n" +
"\x11UnitStatusRequest\x12\x16\n" +
"\x06VmName\x18\x01 \x01(\tR\x06VmName\x12\x1a\n" +
"\bUnitName\x18\x02 \x01(\tR\bUnitName\"\a\n" +
"\x05Empty\"\x94\x02\n" +
"\rQueryListItem\x12\x12\n" +
"\x04Name\x18\x01 \x01(\tR\x04Name\x12 \n" +
"\vDescription\x18\x02 \x01(\tR\vDescription\x12\x1a\n" +
"\bVmStatus\x18\x03 \x01(\tR\bVmStatus\x12\x1e\n" +
"\n" +
"TrustLevel\x18\x04 \x01(\tR\n" +
"TrustLevel\x12\x16\n" +
"\x06VmType\x18\x05 \x01(\tR\x06VmType\x12 \n" +
"\vServiceType\x18\x06 \x01(\tR\vServiceType\x12\x1b\n" +
"\x06VmName\x18\a \x01(\tH\x00R\x06VmName\x88\x01\x01\x12!\n" +
"\tAgentName\x18\b \x01(\tH\x01R\tAgentName\x88\x01\x01B\t\n" +
"\a_VmNameB\f\n" +
"\n" +
"_AgentName\"=\n" +
"\x11QueryListResponse\x12(\n" +
"\x04List\x18\x01 \x03(\v2\x14.admin.QueryListItemR\x04List\"\xdd\x01\n" +
"\tWatchItem\x124\n" +
"\aInitial\x18\x01 \x01(\v2\x18.admin.QueryListResponseH\x00R\aInitial\x12,\n" +
"\x05Added\x18\x02 \x01(\v2\x14.admin.QueryListItemH\x00R\x05Added\x120\n" +
"\aUpdated\x18\x03 \x01(\v2\x14.admin.QueryListItemH\x00R\aUpdated\x120\n" +
"\aRemoved\x18\x04 \x01(\v2\x14.admin.QueryListItemH\x00R\aRemovedB\b\n" +
"\x06Status\"'\n" +
"\rLocaleRequest\x12\x16\n" +
"\x06Locale\x18\x01 \x01(\tR\x06Locale\"-\n" +
"\x0fTimezoneRequest\x12\x1a\n" +
"\bTimezone\x18\x01 \x01(\tR\bTimezone2\xec\a\n" +
"\fAdminService\x12D\n" +
"\x0fRegisterService\x12\x16.admin.RegistryRequest\x1a\x17.admin.RegistryResponse\"\x00\x12E\n" +
"\x10StartApplication\x12\x19.admin.ApplicationRequest\x1a\x14.admin.StartResponse\"\x00\x128\n" +
"\aStartVM\x12\x15.admin.StartVMRequest\x1a\x14.admin.StartResponse\"\x00\x12B\n" +
"\fStartService\x12\x1a.admin.StartServiceRequest\x1a\x14.admin.StartResponse\"\x00\x12K\n" +
"\x10PauseApplication\x12\x19.admin.ApplicationRequest\x1a\x1a.admin.ApplicationResponse\"\x00\x12L\n" +
"\x11ResumeApplication\x12\x19.admin.ApplicationRequest\x1a\x1a.admin.ApplicationResponse\"\x00\x12J\n" +
"\x0fStopApplication\x12\x19.admin.ApplicationRequest\x1a\x1a.admin.ApplicationResponse\"\x00\x12@\n" +
"\rGetUnitStatus\x12\x18.admin.UnitStatusRequest\x1a\x13.systemd.UnitStatus\"\x00\x121\n" +
"\tSetLocale\x12\x14.admin.LocaleRequest\x1a\f.admin.Empty\"\x00\x125\n" +
"\vSetTimezone\x12\x16.admin.TimezoneRequest\x1a\f.admin.Empty\"\x00\x127\n" +
"\bGetStats\x12\x13.admin.StatsRequest\x1a\x14.stats.StatsResponse\"\x00\x12(\n" +
"\bPoweroff\x12\f.admin.Empty\x1a\f.admin.Empty\"\x00\x12&\n" +
"\x06Reboot\x12\f.admin.Empty\x1a\f.admin.Empty\"\x00\x12'\n" +
"\aSuspend\x12\f.admin.Empty\x1a\f.admin.Empty\"\x00\x12&\n" +
"\x06Wakeup\x12\f.admin.Empty\x1a\f.admin.Empty\"\x00\x125\n" +
"\tQueryList\x12\f.admin.Empty\x1a\x18.admin.QueryListResponse\"\x00\x12+\n" +
"\x05Watch\x12\f.admin.Empty\x1a\x10.admin.WatchItem\"\x000\x01B\x18Z\x16givc/modules/api/adminb\x06proto3"

var (
file_admin_admin_proto_rawDescOnce sync.Once
file_admin_admin_proto_rawDescData []byte
)

AdminService_ServiceDesc is the grpc.ServiceDesc for AdminService service. It’s only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

var AdminService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "admin.AdminService",
HandlerType: (*AdminServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "RegisterService",
Handler: _AdminService_RegisterService_Handler,
},
{
MethodName: "StartApplication",
Handler: _AdminService_StartApplication_Handler,
},
{
MethodName: "StartVM",
Handler: _AdminService_StartVM_Handler,
},
{
MethodName: "StartService",
Handler: _AdminService_StartService_Handler,
},
{
MethodName: "PauseApplication",
Handler: _AdminService_PauseApplication_Handler,
},
{
MethodName: "ResumeApplication",
Handler: _AdminService_ResumeApplication_Handler,
},
{
MethodName: "StopApplication",
Handler: _AdminService_StopApplication_Handler,
},
{
MethodName: "GetUnitStatus",
Handler: _AdminService_GetUnitStatus_Handler,
},
{
MethodName: "SetLocale",
Handler: _AdminService_SetLocale_Handler,
},
{
MethodName: "SetTimezone",
Handler: _AdminService_SetTimezone_Handler,
},
{
MethodName: "GetStats",
Handler: _AdminService_GetStats_Handler,
},
{
MethodName: "Poweroff",
Handler: _AdminService_Poweroff_Handler,
},
{
MethodName: "Reboot",
Handler: _AdminService_Reboot_Handler,
},
{
MethodName: "Suspend",
Handler: _AdminService_Suspend_Handler,
},
{
MethodName: "Wakeup",
Handler: _AdminService_Wakeup_Handler,
},
{
MethodName: "QueryList",
Handler: _AdminService_QueryList_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "Watch",
Handler: _AdminService_Watch_Handler,
ServerStreams: true,
},
},
Metadata: "admin/admin.proto",
}

var File_admin_admin_proto protoreflect.FileDescriptor

var file_admin_admin_proto_depIdxs = []int32{
0,
16,
11,
12,
11,
11,
11,
1,
3,
5,
6,
3,
3,
3,
9,
14,
15,
4,
10,
10,
10,
10,
10,
10,
2,
7,
7,
7,
8,
8,
8,
16,
10,
10,
17,
10,
10,
10,
10,
12,
13,
24,
7,
7,
7,
0,
}

var file_admin_admin_proto_goTypes = []any{
(*TransportConfig)(nil),
(*RegistryRequest)(nil),
(*RegistryResponse)(nil),
(*ApplicationRequest)(nil),
(*StatsRequest)(nil),
(*StartVMRequest)(nil),
(*StartServiceRequest)(nil),
(*StartResponse)(nil),
(*ApplicationResponse)(nil),
(*UnitStatusRequest)(nil),
(*Empty)(nil),
(*QueryListItem)(nil),
(*QueryListResponse)(nil),
(*WatchItem)(nil),
(*LocaleRequest)(nil),
(*TimezoneRequest)(nil),
(*systemd.UnitStatus)(nil),
(*stats.StatsResponse)(nil),
}

var file_admin_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 16)

func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)

func _AdminService_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_GetUnitStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_PauseApplication_Handler

Section titled “func _AdminService_PauseApplication_Handler”
func _AdminService_PauseApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_Poweroff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_QueryList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_Reboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_RegisterService_Handler

Section titled “func _AdminService_RegisterService_Handler”
func _AdminService_RegisterService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_ResumeApplication_Handler

Section titled “func _AdminService_ResumeApplication_Handler”
func _AdminService_ResumeApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_SetLocale_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_SetTimezone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_StartApplication_Handler

Section titled “func _AdminService_StartApplication_Handler”
func _AdminService_StartApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_StartService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_StartVM_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_StopApplication_Handler

Section titled “func _AdminService_StopApplication_Handler”
func _AdminService_StopApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_Suspend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_Wakeup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _AdminService_Watch_Handler(srv interface{}, stream grpc.ServerStream) error

func file_admin_admin_proto_init()

func file_admin_admin_proto_rawDescGZIP() []byte

func init()

AdminServiceClient is the client API for AdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AdminServiceClient interface {
RegisterService(ctx context.Context, in *RegistryRequest, opts ...grpc.CallOption) (*RegistryResponse, error)
// Start things
StartApplication(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*StartResponse, error)
StartVM(ctx context.Context, in *StartVMRequest, opts ...grpc.CallOption) (*StartResponse, error)
StartService(ctx context.Context, in *StartServiceRequest, opts ...grpc.CallOption) (*StartResponse, error)
// Manage things
PauseApplication(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*ApplicationResponse, error)
ResumeApplication(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*ApplicationResponse, error)
StopApplication(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*ApplicationResponse, error)
// Misc
GetUnitStatus(ctx context.Context, in *UnitStatusRequest, opts ...grpc.CallOption) (*systemd.UnitStatus, error)
SetLocale(ctx context.Context, in *LocaleRequest, opts ...grpc.CallOption) (*Empty, error)
SetTimezone(ctx context.Context, in *TimezoneRequest, opts ...grpc.CallOption) (*Empty, error)
GetStats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*stats.StatsResponse, error)
Poweroff(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
Reboot(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
Suspend(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
Wakeup(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
// Query
QueryList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*QueryListResponse, error)
Watch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[WatchItem], error)
}

func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient

AdminServiceServer is the server API for AdminService service. All implementations must embed UnimplementedAdminServiceServer for forward compatibility.

type AdminServiceServer interface {
RegisterService(context.Context, *RegistryRequest) (*RegistryResponse, error)
// Start things
StartApplication(context.Context, *ApplicationRequest) (*StartResponse, error)
StartVM(context.Context, *StartVMRequest) (*StartResponse, error)
StartService(context.Context, *StartServiceRequest) (*StartResponse, error)
// Manage things
PauseApplication(context.Context, *ApplicationRequest) (*ApplicationResponse, error)
ResumeApplication(context.Context, *ApplicationRequest) (*ApplicationResponse, error)
StopApplication(context.Context, *ApplicationRequest) (*ApplicationResponse, error)
// Misc
GetUnitStatus(context.Context, *UnitStatusRequest) (*systemd.UnitStatus, error)
SetLocale(context.Context, *LocaleRequest) (*Empty, error)
SetTimezone(context.Context, *TimezoneRequest) (*Empty, error)
GetStats(context.Context, *StatsRequest) (*stats.StatsResponse, error)
Poweroff(context.Context, *Empty) (*Empty, error)
Reboot(context.Context, *Empty) (*Empty, error)
Suspend(context.Context, *Empty) (*Empty, error)
Wakeup(context.Context, *Empty) (*Empty, error)
// Query
QueryList(context.Context, *Empty) (*QueryListResponse, error)
Watch(*Empty, grpc.ServerStreamingServer[WatchItem]) error
mustEmbedUnimplementedAdminServiceServer()
}

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AdminService_WatchClient = grpc.ServerStreamingClient[WatchItem]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AdminService_WatchServer = grpc.ServerStreamingServer[WatchItem]

type ApplicationRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
AppName string `protobuf:"bytes,1,opt,name=AppName,proto3" json:"AppName,omitempty"`
VmName *string `protobuf:"bytes,2,opt,name=VmName,proto3,oneof" json:"VmName,omitempty"`
Args []string `protobuf:"bytes,3,rep,name=Args,proto3" json:"Args,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*ApplicationRequest) Descriptor() ([]byte, []int)

Deprecated: Use ApplicationRequest.ProtoReflect.Descriptor instead.

func (x *ApplicationRequest) GetAppName() string

func (x *ApplicationRequest) GetArgs() []string

func (x *ApplicationRequest) GetVmName() string

func (*ApplicationRequest) ProtoMessage()

func (x *ApplicationRequest) ProtoReflect() protoreflect.Message

func (x *ApplicationRequest) Reset()

func (x *ApplicationRequest) String() string

type ApplicationResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
CmdStatus string `protobuf:"bytes,1,opt,name=CmdStatus,proto3" json:"CmdStatus,omitempty"`
AppStatus string `protobuf:"bytes,2,opt,name=AppStatus,proto3" json:"AppStatus,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*ApplicationResponse) Descriptor() ([]byte, []int)

Deprecated: Use ApplicationResponse.ProtoReflect.Descriptor instead.

func (x *ApplicationResponse) GetAppStatus() string

func (x *ApplicationResponse) GetCmdStatus() string

func (*ApplicationResponse) ProtoMessage()

func (x *ApplicationResponse) ProtoReflect() protoreflect.Message

func (x *ApplicationResponse) Reset()

func (x *ApplicationResponse) String() string

type Empty struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage()

func (x *Empty) ProtoReflect() protoreflect.Message

func (x *Empty) Reset()

func (x *Empty) String() string

type LocaleRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Locale string `protobuf:"bytes,1,opt,name=Locale,proto3" json:"Locale,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*LocaleRequest) Descriptor() ([]byte, []int)

Deprecated: Use LocaleRequest.ProtoReflect.Descriptor instead.

func (x *LocaleRequest) GetLocale() string

func (*LocaleRequest) ProtoMessage()

func (x *LocaleRequest) ProtoReflect() protoreflect.Message

func (x *LocaleRequest) Reset()

func (x *LocaleRequest) String() string

type QueryListItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
VmStatus string `protobuf:"bytes,3,opt,name=VmStatus,proto3" json:"VmStatus,omitempty"`
TrustLevel string `protobuf:"bytes,4,opt,name=TrustLevel,proto3" json:"TrustLevel,omitempty"`
VmType string `protobuf:"bytes,5,opt,name=VmType,proto3" json:"VmType,omitempty"`
ServiceType string `protobuf:"bytes,6,opt,name=ServiceType,proto3" json:"ServiceType,omitempty"`
VmName *string `protobuf:"bytes,7,opt,name=VmName,proto3,oneof" json:"VmName,omitempty"` // None for host running services
AgentName *string `protobuf:"bytes,8,opt,name=AgentName,proto3,oneof" json:"AgentName,omitempty"` // None for agents
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*QueryListItem) Descriptor() ([]byte, []int)

Deprecated: Use QueryListItem.ProtoReflect.Descriptor instead.

func (x *QueryListItem) GetAgentName() string

func (x *QueryListItem) GetDescription() string

func (x *QueryListItem) GetName() string

func (x *QueryListItem) GetServiceType() string

func (x *QueryListItem) GetTrustLevel() string

func (x *QueryListItem) GetVmName() string

func (x *QueryListItem) GetVmStatus() string

func (x *QueryListItem) GetVmType() string

func (*QueryListItem) ProtoMessage()

func (x *QueryListItem) ProtoReflect() protoreflect.Message

func (x *QueryListItem) Reset()

func (x *QueryListItem) String() string

type QueryListResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
List []*QueryListItem `protobuf:"bytes,1,rep,name=List,proto3" json:"List,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*QueryListResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryListResponse.ProtoReflect.Descriptor instead.

func (x *QueryListResponse) GetList() []*QueryListItem

func (*QueryListResponse) ProtoMessage()

func (x *QueryListResponse) ProtoReflect() protoreflect.Message

func (x *QueryListResponse) Reset()

func (x *QueryListResponse) String() string

type RegistryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
Parent string `protobuf:"bytes,2,opt,name=Parent,proto3" json:"Parent,omitempty"`
Type uint32 `protobuf:"varint,3,opt,name=Type,proto3" json:"Type,omitempty"`
Transport *TransportConfig `protobuf:"bytes,4,opt,name=Transport,proto3" json:"Transport,omitempty"`
State *systemd.UnitStatus `protobuf:"bytes,5,opt,name=State,proto3" json:"State,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*RegistryRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegistryRequest.ProtoReflect.Descriptor instead.

func (x *RegistryRequest) GetName() string

func (x *RegistryRequest) GetParent() string

func (x *RegistryRequest) GetState() *systemd.UnitStatus

func (x *RegistryRequest) GetTransport() *TransportConfig

func (x *RegistryRequest) GetType() uint32

func (*RegistryRequest) ProtoMessage()

func (x *RegistryRequest) ProtoReflect() protoreflect.Message

func (x *RegistryRequest) Reset()

func (x *RegistryRequest) String() string

type RegistryResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Error *string `protobuf:"bytes,1,opt,name=Error,proto3,oneof" json:"Error,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*RegistryResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegistryResponse.ProtoReflect.Descriptor instead.

func (x *RegistryResponse) GetError() string

func (*RegistryResponse) ProtoMessage()

func (x *RegistryResponse) ProtoReflect() protoreflect.Message

func (x *RegistryResponse) Reset()

func (x *RegistryResponse) String() string

type StartResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RegistryId string `protobuf:"bytes,1,opt,name=registryId,proto3" json:"registryId,omitempty"` // Registry ID for newly started app, service or vm
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*StartResponse) Descriptor() ([]byte, []int)

Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.

func (x *StartResponse) GetRegistryId() string

func (*StartResponse) ProtoMessage()

func (x *StartResponse) ProtoReflect() protoreflect.Message

func (x *StartResponse) Reset()

func (x *StartResponse) String() string

type StartServiceRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ServiceName string `protobuf:"bytes,1,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"`
VmName string `protobuf:"bytes,2,opt,name=VmName,proto3" json:"VmName,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*StartServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartServiceRequest.ProtoReflect.Descriptor instead.

func (*StartServiceRequest) GetServiceName

Section titled “func (*StartServiceRequest) GetServiceName”
func (x *StartServiceRequest) GetServiceName() string

func (x *StartServiceRequest) GetVmName() string

func (*StartServiceRequest) ProtoMessage()

func (x *StartServiceRequest) ProtoReflect() protoreflect.Message

func (x *StartServiceRequest) Reset()

func (x *StartServiceRequest) String() string

type StartVMRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
VmName string `protobuf:"bytes,1,opt,name=VmName,proto3" json:"VmName,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*StartVMRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartVMRequest.ProtoReflect.Descriptor instead.

func (x *StartVMRequest) GetVmName() string

func (*StartVMRequest) ProtoMessage()

func (x *StartVMRequest) ProtoReflect() protoreflect.Message

func (x *StartVMRequest) Reset()

func (x *StartVMRequest) String() string

type StatsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
VmName string `protobuf:"bytes,1,opt,name=VmName,proto3" json:"VmName,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*StatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.

func (x *StatsRequest) GetVmName() string

func (*StatsRequest) ProtoMessage()

func (x *StatsRequest) ProtoReflect() protoreflect.Message

func (x *StatsRequest) Reset()

func (x *StatsRequest) String() string

type TimezoneRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Timezone string `protobuf:"bytes,1,opt,name=Timezone,proto3" json:"Timezone,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*TimezoneRequest) Descriptor() ([]byte, []int)

Deprecated: Use TimezoneRequest.ProtoReflect.Descriptor instead.

func (x *TimezoneRequest) GetTimezone() string

func (*TimezoneRequest) ProtoMessage()

func (x *TimezoneRequest) ProtoReflect() protoreflect.Message

func (x *TimezoneRequest) Reset()

func (x *TimezoneRequest) String() string

type TransportConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
Protocol string `protobuf:"bytes,1,opt,name=Protocol,proto3" json:"Protocol,omitempty"`
Address string `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"`
Port string `protobuf:"bytes,3,opt,name=Port,proto3" json:"Port,omitempty"`
Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*TransportConfig) Descriptor() ([]byte, []int)

Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead.

func (x *TransportConfig) GetAddress() string

func (x *TransportConfig) GetName() string

func (x *TransportConfig) GetPort() string

func (x *TransportConfig) GetProtocol() string

func (*TransportConfig) ProtoMessage()

func (x *TransportConfig) ProtoReflect() protoreflect.Message

func (x *TransportConfig) Reset()

func (x *TransportConfig) String() string

UnimplementedAdminServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnimplementedAdminServiceServer struct{}

func (UnimplementedAdminServiceServer) GetStats

Section titled “func (UnimplementedAdminServiceServer) GetStats”
func (UnimplementedAdminServiceServer) GetStats(context.Context, *StatsRequest) (*stats.StatsResponse, error)

func (UnimplementedAdminServiceServer) GetUnitStatus

Section titled “func (UnimplementedAdminServiceServer) GetUnitStatus”
func (UnimplementedAdminServiceServer) GetUnitStatus(context.Context, *UnitStatusRequest) (*systemd.UnitStatus, error)

func (UnimplementedAdminServiceServer) PauseApplication

Section titled “func (UnimplementedAdminServiceServer) PauseApplication”
func (UnimplementedAdminServiceServer) PauseApplication(context.Context, *ApplicationRequest) (*ApplicationResponse, error)

func (UnimplementedAdminServiceServer) Poweroff

Section titled “func (UnimplementedAdminServiceServer) Poweroff”
func (UnimplementedAdminServiceServer) Poweroff(context.Context, *Empty) (*Empty, error)

func (UnimplementedAdminServiceServer) QueryList

Section titled “func (UnimplementedAdminServiceServer) QueryList”
func (UnimplementedAdminServiceServer) QueryList(context.Context, *Empty) (*QueryListResponse, error)

func (UnimplementedAdminServiceServer) Reboot

Section titled “func (UnimplementedAdminServiceServer) Reboot”
func (UnimplementedAdminServiceServer) Reboot(context.Context, *Empty) (*Empty, error)

func (UnimplementedAdminServiceServer) RegisterService

Section titled “func (UnimplementedAdminServiceServer) RegisterService”
func (UnimplementedAdminServiceServer) RegisterService(context.Context, *RegistryRequest) (*RegistryResponse, error)

func (UnimplementedAdminServiceServer) ResumeApplication

Section titled “func (UnimplementedAdminServiceServer) ResumeApplication”
func (UnimplementedAdminServiceServer) ResumeApplication(context.Context, *ApplicationRequest) (*ApplicationResponse, error)

func (UnimplementedAdminServiceServer) SetLocale

Section titled “func (UnimplementedAdminServiceServer) SetLocale”
func (UnimplementedAdminServiceServer) SetLocale(context.Context, *LocaleRequest) (*Empty, error)

func (UnimplementedAdminServiceServer) SetTimezone

Section titled “func (UnimplementedAdminServiceServer) SetTimezone”
func (UnimplementedAdminServiceServer) SetTimezone(context.Context, *TimezoneRequest) (*Empty, error)

func (UnimplementedAdminServiceServer) StartApplication

Section titled “func (UnimplementedAdminServiceServer) StartApplication”
func (UnimplementedAdminServiceServer) StartApplication(context.Context, *ApplicationRequest) (*StartResponse, error)

func (UnimplementedAdminServiceServer) StartService

Section titled “func (UnimplementedAdminServiceServer) StartService”
func (UnimplementedAdminServiceServer) StartService(context.Context, *StartServiceRequest) (*StartResponse, error)

func (UnimplementedAdminServiceServer) StartVM

Section titled “func (UnimplementedAdminServiceServer) StartVM”
func (UnimplementedAdminServiceServer) StartVM(context.Context, *StartVMRequest) (*StartResponse, error)

func (UnimplementedAdminServiceServer) StopApplication

Section titled “func (UnimplementedAdminServiceServer) StopApplication”
func (UnimplementedAdminServiceServer) StopApplication(context.Context, *ApplicationRequest) (*ApplicationResponse, error)

func (UnimplementedAdminServiceServer) Suspend

Section titled “func (UnimplementedAdminServiceServer) Suspend”
func (UnimplementedAdminServiceServer) Suspend(context.Context, *Empty) (*Empty, error)

func (UnimplementedAdminServiceServer) Wakeup

Section titled “func (UnimplementedAdminServiceServer) Wakeup”
func (UnimplementedAdminServiceServer) Wakeup(context.Context, *Empty) (*Empty, error)

func (UnimplementedAdminServiceServer) Watch

Section titled “func (UnimplementedAdminServiceServer) Watch”
func (UnimplementedAdminServiceServer) Watch(*Empty, grpc.ServerStreamingServer[WatchItem]) error

func (UnimplementedAdminServiceServer) mustEmbedUnimplementedAdminServiceServer

Section titled “func (UnimplementedAdminServiceServer) mustEmbedUnimplementedAdminServiceServer”
func (UnimplementedAdminServiceServer) mustEmbedUnimplementedAdminServiceServer()

func (UnimplementedAdminServiceServer) testEmbeddedByValue

Section titled “func (UnimplementedAdminServiceServer) testEmbeddedByValue”
func (UnimplementedAdminServiceServer) testEmbeddedByValue()

type UnitStatusRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
VmName string `protobuf:"bytes,1,opt,name=VmName,proto3" json:"VmName,omitempty"`
UnitName string `protobuf:"bytes,2,opt,name=UnitName,proto3" json:"UnitName,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*UnitStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnitStatusRequest.ProtoReflect.Descriptor instead.

func (x *UnitStatusRequest) GetUnitName() string

func (x *UnitStatusRequest) GetVmName() string

func (*UnitStatusRequest) ProtoMessage()

func (x *UnitStatusRequest) ProtoReflect() protoreflect.Message

func (x *UnitStatusRequest) Reset()

func (x *UnitStatusRequest) String() string

UnsafeAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServiceServer will result in compilation errors.

type UnsafeAdminServiceServer interface {
mustEmbedUnimplementedAdminServiceServer()
}

type WatchItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Status:
//
// *WatchItem_Initial
// *WatchItem_Added
// *WatchItem_Updated
// *WatchItem_Removed
Status isWatchItem_Status `protobuf_oneof:"Status"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*WatchItem) Descriptor() ([]byte, []int)

Deprecated: Use WatchItem.ProtoReflect.Descriptor instead.

func (x *WatchItem) GetAdded() *QueryListItem

func (x *WatchItem) GetInitial() *QueryListResponse

func (x *WatchItem) GetRemoved() *QueryListItem

func (x *WatchItem) GetStatus() isWatchItem_Status

func (x *WatchItem) GetUpdated() *QueryListItem

func (*WatchItem) ProtoMessage()

func (x *WatchItem) ProtoReflect() protoreflect.Message

func (x *WatchItem) Reset()

func (x *WatchItem) String() string

type WatchItem_Added struct {
Added *QueryListItem `protobuf:"bytes,2,opt,name=Added,proto3,oneof"`
}

func (*WatchItem_Added) isWatchItem_Status

Section titled “func (*WatchItem_Added) isWatchItem_Status”
func (*WatchItem_Added) isWatchItem_Status()

type WatchItem_Initial struct {
Initial *QueryListResponse `protobuf:"bytes,1,opt,name=Initial,proto3,oneof"`
}

func (*WatchItem_Initial) isWatchItem_Status

Section titled “func (*WatchItem_Initial) isWatchItem_Status”
func (*WatchItem_Initial) isWatchItem_Status()

type WatchItem_Removed struct {
Removed *QueryListItem `protobuf:"bytes,4,opt,name=Removed,proto3,oneof"`
}

func (*WatchItem_Removed) isWatchItem_Status

Section titled “func (*WatchItem_Removed) isWatchItem_Status”
func (*WatchItem_Removed) isWatchItem_Status()

type WatchItem_Updated struct {
Updated *QueryListItem `protobuf:"bytes,3,opt,name=Updated,proto3,oneof"`
}

func (*WatchItem_Updated) isWatchItem_Status

Section titled “func (*WatchItem_Updated) isWatchItem_Status”
func (*WatchItem_Updated) isWatchItem_Status()

type adminServiceClient struct {
cc grpc.ClientConnInterface
}

func (c *adminServiceClient) GetStats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*stats.StatsResponse, error)

func (c *adminServiceClient) GetUnitStatus(ctx context.Context, in *UnitStatusRequest, opts ...grpc.CallOption) (*systemd.UnitStatus, error)

func (*adminServiceClient) PauseApplication

Section titled “func (*adminServiceClient) PauseApplication”
func (c *adminServiceClient) PauseApplication(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*ApplicationResponse, error)

func (c *adminServiceClient) Poweroff(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)

func (c *adminServiceClient) QueryList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*QueryListResponse, error)

func (c *adminServiceClient) Reboot(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)

func (*adminServiceClient) RegisterService

Section titled “func (*adminServiceClient) RegisterService”
func (c *adminServiceClient) RegisterService(ctx context.Context, in *RegistryRequest, opts ...grpc.CallOption) (*RegistryResponse, error)

func (*adminServiceClient) ResumeApplication

Section titled “func (*adminServiceClient) ResumeApplication”
func (c *adminServiceClient) ResumeApplication(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*ApplicationResponse, error)

func (c *adminServiceClient) SetLocale(ctx context.Context, in *LocaleRequest, opts ...grpc.CallOption) (*Empty, error)

func (c *adminServiceClient) SetTimezone(ctx context.Context, in *TimezoneRequest, opts ...grpc.CallOption) (*Empty, error)

func (*adminServiceClient) StartApplication

Section titled “func (*adminServiceClient) StartApplication”
func (c *adminServiceClient) StartApplication(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*StartResponse, error)

func (c *adminServiceClient) StartService(ctx context.Context, in *StartServiceRequest, opts ...grpc.CallOption) (*StartResponse, error)

func (c *adminServiceClient) StartVM(ctx context.Context, in *StartVMRequest, opts ...grpc.CallOption) (*StartResponse, error)

func (*adminServiceClient) StopApplication

Section titled “func (*adminServiceClient) StopApplication”
func (c *adminServiceClient) StopApplication(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*ApplicationResponse, error)

func (c *adminServiceClient) Suspend(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)

func (c *adminServiceClient) Wakeup(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)

func (c *adminServiceClient) Watch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[WatchItem], error)

type isWatchItem_Status interface {
isWatchItem_Status()
}

Generated by gomarkdoc