Admin Go-API
import "givc/modules/api/admin"
- Constants
- Variables
- 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(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(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
- 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(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(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()
- type AdminServiceClient
- type AdminServiceServer
- type AdminService_WatchClient
- type AdminService_WatchServer
- type ApplicationRequest
- func (*ApplicationRequest) Descriptor() ([]byte, []int)
- 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
- func (*ApplicationResponse) Descriptor() ([]byte, []int)
- 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
- type LocaleRequest
- type QueryListItem
- func (*QueryListItem) Descriptor() ([]byte, []int)
- 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
- type RegistryRequest
- func (*RegistryRequest) Descriptor() ([]byte, []int)
- 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
- type StartResponse
- type StartServiceRequest
- func (*StartServiceRequest) Descriptor() ([]byte, []int)
- 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
- type StatsRequest
- type TimezoneRequest
- type TransportConfig
- func (*TransportConfig) Descriptor() ([]byte, []int)
- 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
- type UnimplementedAdminServiceServer
- func (UnimplementedAdminServiceServer) GetStats(context.Context, *StatsRequest) (*stats.StatsResponse, error)
- func (UnimplementedAdminServiceServer) GetUnitStatus(context.Context, *UnitStatusRequest) (*systemd.UnitStatus, error)
- func (UnimplementedAdminServiceServer) PauseApplication(context.Context, *ApplicationRequest) (*ApplicationResponse, error)
- func (UnimplementedAdminServiceServer) Poweroff(context.Context, *Empty) (*Empty, error)
- func (UnimplementedAdminServiceServer) QueryList(context.Context, *Empty) (*QueryListResponse, error)
- func (UnimplementedAdminServiceServer) Reboot(context.Context, *Empty) (*Empty, error)
- func (UnimplementedAdminServiceServer) RegisterService(context.Context, *RegistryRequest) (*RegistryResponse, error)
- func (UnimplementedAdminServiceServer) ResumeApplication(context.Context, *ApplicationRequest) (*ApplicationResponse, error)
- func (UnimplementedAdminServiceServer) SetLocale(context.Context, *LocaleRequest) (*Empty, error)
- func (UnimplementedAdminServiceServer) SetTimezone(context.Context, *TimezoneRequest) (*Empty, error)
- func (UnimplementedAdminServiceServer) StartApplication(context.Context, *ApplicationRequest) (*StartResponse, error)
- func (UnimplementedAdminServiceServer) StartService(context.Context, *StartServiceRequest) (*StartResponse, error)
- func (UnimplementedAdminServiceServer) StartVM(context.Context, *StartVMRequest) (*StartResponse, error)
- func (UnimplementedAdminServiceServer) StopApplication(context.Context, *ApplicationRequest) (*ApplicationResponse, error)
- func (UnimplementedAdminServiceServer) Suspend(context.Context, *Empty) (*Empty, error)
- func (UnimplementedAdminServiceServer) Wakeup(context.Context, *Empty) (*Empty, error)
- func (UnimplementedAdminServiceServer) Watch(*Empty, grpc.ServerStreamingServer[WatchItem]) error
- func (UnimplementedAdminServiceServer) mustEmbedUnimplementedAdminServiceServer()
- func (UnimplementedAdminServiceServer) testEmbeddedByValue()
- type UnitStatusRequest
- func (*UnitStatusRequest) Descriptor() ([]byte, []int)
- 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
- type UnsafeAdminServiceServer
- type WatchItem
- func (*WatchItem) Descriptor() ([]byte, []int)
- 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
- type WatchItem_Initial
- type WatchItem_Removed
- type WatchItem_Updated
- type adminServiceClient
- 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 (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 (c *adminServiceClient) RegisterService(ctx context.Context, in *RegistryRequest, opts …grpc.CallOption) (*RegistryResponse, error)
- 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 (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 (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
Constants
Section titled “Constants”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"
Variables
Section titled “Variables”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
Section titled “func RegisterAdminServiceServer”func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)
func _AdminService_GetStats_Handler
Section titled “func _AdminService_GetStats_Handler”func _AdminService_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
func _AdminService_GetUnitStatus_Handler
Section titled “func _AdminService_GetUnitStatus_Handler”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
Section titled “func _AdminService_Poweroff_Handler”func _AdminService_Poweroff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
func _AdminService_QueryList_Handler
Section titled “func _AdminService_QueryList_Handler”func _AdminService_QueryList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
func _AdminService_Reboot_Handler
Section titled “func _AdminService_Reboot_Handler”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
Section titled “func _AdminService_SetLocale_Handler”func _AdminService_SetLocale_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
func _AdminService_SetTimezone_Handler
Section titled “func _AdminService_SetTimezone_Handler”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
Section titled “func _AdminService_StartService_Handler”func _AdminService_StartService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
func _AdminService_StartVM_Handler
Section titled “func _AdminService_StartVM_Handler”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
Section titled “func _AdminService_Suspend_Handler”func _AdminService_Suspend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
func _AdminService_Wakeup_Handler
Section titled “func _AdminService_Wakeup_Handler”func _AdminService_Wakeup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)
func _AdminService_Watch_Handler
Section titled “func _AdminService_Watch_Handler”func _AdminService_Watch_Handler(srv interface{}, stream grpc.ServerStream) error
func file_admin_admin_proto_init
Section titled “func file_admin_admin_proto_init”func file_admin_admin_proto_init()
func file_admin_admin_proto_rawDescGZIP
Section titled “func file_admin_admin_proto_rawDescGZIP”func file_admin_admin_proto_rawDescGZIP() []byte
func init
Section titled “func init”func init()
type AdminServiceClient
Section titled “type AdminServiceClient”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
Section titled “func NewAdminServiceClient”func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient
type AdminServiceServer
Section titled “type AdminServiceServer”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()}
type AdminService_WatchClient
Section titled “type AdminService_WatchClient”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]
type AdminService_WatchServer
Section titled “type AdminService_WatchServer”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
Section titled “type ApplicationRequest”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
Section titled “func (*ApplicationRequest) Descriptor”func (*ApplicationRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationRequest.ProtoReflect.Descriptor instead.
func (*ApplicationRequest) GetAppName
Section titled “func (*ApplicationRequest) GetAppName”func (x *ApplicationRequest) GetAppName() string
func (*ApplicationRequest) GetArgs
Section titled “func (*ApplicationRequest) GetArgs”func (x *ApplicationRequest) GetArgs() []string
func (*ApplicationRequest) GetVmName
Section titled “func (*ApplicationRequest) GetVmName”func (x *ApplicationRequest) GetVmName() string
func (*ApplicationRequest) ProtoMessage
Section titled “func (*ApplicationRequest) ProtoMessage”func (*ApplicationRequest) ProtoMessage()
func (*ApplicationRequest) ProtoReflect
Section titled “func (*ApplicationRequest) ProtoReflect”func (x *ApplicationRequest) ProtoReflect() protoreflect.Message
func (*ApplicationRequest) Reset
Section titled “func (*ApplicationRequest) Reset”func (x *ApplicationRequest) Reset()
func (*ApplicationRequest) String
Section titled “func (*ApplicationRequest) String”func (x *ApplicationRequest) String() string
type ApplicationResponse
Section titled “type ApplicationResponse”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
Section titled “func (*ApplicationResponse) Descriptor”func (*ApplicationResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationResponse.ProtoReflect.Descriptor instead.
func (*ApplicationResponse) GetAppStatus
Section titled “func (*ApplicationResponse) GetAppStatus”func (x *ApplicationResponse) GetAppStatus() string
func (*ApplicationResponse) GetCmdStatus
Section titled “func (*ApplicationResponse) GetCmdStatus”func (x *ApplicationResponse) GetCmdStatus() string
func (*ApplicationResponse) ProtoMessage
Section titled “func (*ApplicationResponse) ProtoMessage”func (*ApplicationResponse) ProtoMessage()
func (*ApplicationResponse) ProtoReflect
Section titled “func (*ApplicationResponse) ProtoReflect”func (x *ApplicationResponse) ProtoReflect() protoreflect.Message
func (*ApplicationResponse) Reset
Section titled “func (*ApplicationResponse) Reset”func (x *ApplicationResponse) Reset()
func (*ApplicationResponse) String
Section titled “func (*ApplicationResponse) String”func (x *ApplicationResponse) String() string
type Empty
Section titled “type Empty”type Empty struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache}
func (*Empty) Descriptor
Section titled “func (*Empty) Descriptor”func (*Empty) Descriptor() ([]byte, []int)
Deprecated: Use Empty.ProtoReflect.Descriptor instead.
func (*Empty) ProtoMessage
Section titled “func (*Empty) ProtoMessage”func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect
Section titled “func (*Empty) ProtoReflect”func (x *Empty) ProtoReflect() protoreflect.Message
func (*Empty) Reset
Section titled “func (*Empty) Reset”func (x *Empty) Reset()
func (*Empty) String
Section titled “func (*Empty) String”func (x *Empty) String() string
type LocaleRequest
Section titled “type LocaleRequest”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
Section titled “func (*LocaleRequest) Descriptor”func (*LocaleRequest) Descriptor() ([]byte, []int)
Deprecated: Use LocaleRequest.ProtoReflect.Descriptor instead.
func (*LocaleRequest) GetLocale
Section titled “func (*LocaleRequest) GetLocale”func (x *LocaleRequest) GetLocale() string
func (*LocaleRequest) ProtoMessage
Section titled “func (*LocaleRequest) ProtoMessage”func (*LocaleRequest) ProtoMessage()
func (*LocaleRequest) ProtoReflect
Section titled “func (*LocaleRequest) ProtoReflect”func (x *LocaleRequest) ProtoReflect() protoreflect.Message
func (*LocaleRequest) Reset
Section titled “func (*LocaleRequest) Reset”func (x *LocaleRequest) Reset()
func (*LocaleRequest) String
Section titled “func (*LocaleRequest) String”func (x *LocaleRequest) String() string
type QueryListItem
Section titled “type QueryListItem”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
Section titled “func (*QueryListItem) Descriptor”func (*QueryListItem) Descriptor() ([]byte, []int)
Deprecated: Use QueryListItem.ProtoReflect.Descriptor instead.
func (*QueryListItem) GetAgentName
Section titled “func (*QueryListItem) GetAgentName”func (x *QueryListItem) GetAgentName() string
func (*QueryListItem) GetDescription
Section titled “func (*QueryListItem) GetDescription”func (x *QueryListItem) GetDescription() string
func (*QueryListItem) GetName
Section titled “func (*QueryListItem) GetName”func (x *QueryListItem) GetName() string
func (*QueryListItem) GetServiceType
Section titled “func (*QueryListItem) GetServiceType”func (x *QueryListItem) GetServiceType() string
func (*QueryListItem) GetTrustLevel
Section titled “func (*QueryListItem) GetTrustLevel”func (x *QueryListItem) GetTrustLevel() string
func (*QueryListItem) GetVmName
Section titled “func (*QueryListItem) GetVmName”func (x *QueryListItem) GetVmName() string
func (*QueryListItem) GetVmStatus
Section titled “func (*QueryListItem) GetVmStatus”func (x *QueryListItem) GetVmStatus() string
func (*QueryListItem) GetVmType
Section titled “func (*QueryListItem) GetVmType”func (x *QueryListItem) GetVmType() string
func (*QueryListItem) ProtoMessage
Section titled “func (*QueryListItem) ProtoMessage”func (*QueryListItem) ProtoMessage()
func (*QueryListItem) ProtoReflect
Section titled “func (*QueryListItem) ProtoReflect”func (x *QueryListItem) ProtoReflect() protoreflect.Message
func (*QueryListItem) Reset
Section titled “func (*QueryListItem) Reset”func (x *QueryListItem) Reset()
func (*QueryListItem) String
Section titled “func (*QueryListItem) String”func (x *QueryListItem) String() string
type QueryListResponse
Section titled “type QueryListResponse”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
Section titled “func (*QueryListResponse) Descriptor”func (*QueryListResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryListResponse.ProtoReflect.Descriptor instead.
func (*QueryListResponse) GetList
Section titled “func (*QueryListResponse) GetList”func (x *QueryListResponse) GetList() []*QueryListItem
func (*QueryListResponse) ProtoMessage
Section titled “func (*QueryListResponse) ProtoMessage”func (*QueryListResponse) ProtoMessage()
func (*QueryListResponse) ProtoReflect
Section titled “func (*QueryListResponse) ProtoReflect”func (x *QueryListResponse) ProtoReflect() protoreflect.Message
func (*QueryListResponse) Reset
Section titled “func (*QueryListResponse) Reset”func (x *QueryListResponse) Reset()
func (*QueryListResponse) String
Section titled “func (*QueryListResponse) String”func (x *QueryListResponse) String() string
type RegistryRequest
Section titled “type RegistryRequest”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
Section titled “func (*RegistryRequest) Descriptor”func (*RegistryRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegistryRequest.ProtoReflect.Descriptor instead.
func (*RegistryRequest) GetName
Section titled “func (*RegistryRequest) GetName”func (x *RegistryRequest) GetName() string
func (*RegistryRequest) GetParent
Section titled “func (*RegistryRequest) GetParent”func (x *RegistryRequest) GetParent() string
func (*RegistryRequest) GetState
Section titled “func (*RegistryRequest) GetState”func (x *RegistryRequest) GetState() *systemd.UnitStatus
func (*RegistryRequest) GetTransport
Section titled “func (*RegistryRequest) GetTransport”func (x *RegistryRequest) GetTransport() *TransportConfig
func (*RegistryRequest) GetType
Section titled “func (*RegistryRequest) GetType”func (x *RegistryRequest) GetType() uint32
func (*RegistryRequest) ProtoMessage
Section titled “func (*RegistryRequest) ProtoMessage”func (*RegistryRequest) ProtoMessage()
func (*RegistryRequest) ProtoReflect
Section titled “func (*RegistryRequest) ProtoReflect”func (x *RegistryRequest) ProtoReflect() protoreflect.Message
func (*RegistryRequest) Reset
Section titled “func (*RegistryRequest) Reset”func (x *RegistryRequest) Reset()
func (*RegistryRequest) String
Section titled “func (*RegistryRequest) String”func (x *RegistryRequest) String() string
type RegistryResponse
Section titled “type RegistryResponse”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
Section titled “func (*RegistryResponse) Descriptor”func (*RegistryResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegistryResponse.ProtoReflect.Descriptor instead.
func (*RegistryResponse) GetError
Section titled “func (*RegistryResponse) GetError”func (x *RegistryResponse) GetError() string
func (*RegistryResponse) ProtoMessage
Section titled “func (*RegistryResponse) ProtoMessage”func (*RegistryResponse) ProtoMessage()
func (*RegistryResponse) ProtoReflect
Section titled “func (*RegistryResponse) ProtoReflect”func (x *RegistryResponse) ProtoReflect() protoreflect.Message
func (*RegistryResponse) Reset
Section titled “func (*RegistryResponse) Reset”func (x *RegistryResponse) Reset()
func (*RegistryResponse) String
Section titled “func (*RegistryResponse) String”func (x *RegistryResponse) String() string
type StartResponse
Section titled “type StartResponse”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
Section titled “func (*StartResponse) Descriptor”func (*StartResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.
func (*StartResponse) GetRegistryId
Section titled “func (*StartResponse) GetRegistryId”func (x *StartResponse) GetRegistryId() string
func (*StartResponse) ProtoMessage
Section titled “func (*StartResponse) ProtoMessage”func (*StartResponse) ProtoMessage()
func (*StartResponse) ProtoReflect
Section titled “func (*StartResponse) ProtoReflect”func (x *StartResponse) ProtoReflect() protoreflect.Message
func (*StartResponse) Reset
Section titled “func (*StartResponse) Reset”func (x *StartResponse) Reset()
func (*StartResponse) String
Section titled “func (*StartResponse) String”func (x *StartResponse) String() string
type StartServiceRequest
Section titled “type StartServiceRequest”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
Section titled “func (*StartServiceRequest) Descriptor”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 (*StartServiceRequest) GetVmName
Section titled “func (*StartServiceRequest) GetVmName”func (x *StartServiceRequest) GetVmName() string
func (*StartServiceRequest) ProtoMessage
Section titled “func (*StartServiceRequest) ProtoMessage”func (*StartServiceRequest) ProtoMessage()
func (*StartServiceRequest) ProtoReflect
Section titled “func (*StartServiceRequest) ProtoReflect”func (x *StartServiceRequest) ProtoReflect() protoreflect.Message
func (*StartServiceRequest) Reset
Section titled “func (*StartServiceRequest) Reset”func (x *StartServiceRequest) Reset()
func (*StartServiceRequest) String
Section titled “func (*StartServiceRequest) String”func (x *StartServiceRequest) String() string
type StartVMRequest
Section titled “type StartVMRequest”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
Section titled “func (*StartVMRequest) Descriptor”func (*StartVMRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartVMRequest.ProtoReflect.Descriptor instead.
func (*StartVMRequest) GetVmName
Section titled “func (*StartVMRequest) GetVmName”func (x *StartVMRequest) GetVmName() string
func (*StartVMRequest) ProtoMessage
Section titled “func (*StartVMRequest) ProtoMessage”func (*StartVMRequest) ProtoMessage()
func (*StartVMRequest) ProtoReflect
Section titled “func (*StartVMRequest) ProtoReflect”func (x *StartVMRequest) ProtoReflect() protoreflect.Message
func (*StartVMRequest) Reset
Section titled “func (*StartVMRequest) Reset”func (x *StartVMRequest) Reset()
func (*StartVMRequest) String
Section titled “func (*StartVMRequest) String”func (x *StartVMRequest) String() string
type StatsRequest
Section titled “type StatsRequest”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
Section titled “func (*StatsRequest) Descriptor”func (*StatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.
func (*StatsRequest) GetVmName
Section titled “func (*StatsRequest) GetVmName”func (x *StatsRequest) GetVmName() string
func (*StatsRequest) ProtoMessage
Section titled “func (*StatsRequest) ProtoMessage”func (*StatsRequest) ProtoMessage()
func (*StatsRequest) ProtoReflect
Section titled “func (*StatsRequest) ProtoReflect”func (x *StatsRequest) ProtoReflect() protoreflect.Message
func (*StatsRequest) Reset
Section titled “func (*StatsRequest) Reset”func (x *StatsRequest) Reset()
func (*StatsRequest) String
Section titled “func (*StatsRequest) String”func (x *StatsRequest) String() string
type TimezoneRequest
Section titled “type TimezoneRequest”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
Section titled “func (*TimezoneRequest) Descriptor”func (*TimezoneRequest) Descriptor() ([]byte, []int)
Deprecated: Use TimezoneRequest.ProtoReflect.Descriptor instead.
func (*TimezoneRequest) GetTimezone
Section titled “func (*TimezoneRequest) GetTimezone”func (x *TimezoneRequest) GetTimezone() string
func (*TimezoneRequest) ProtoMessage
Section titled “func (*TimezoneRequest) ProtoMessage”func (*TimezoneRequest) ProtoMessage()
func (*TimezoneRequest) ProtoReflect
Section titled “func (*TimezoneRequest) ProtoReflect”func (x *TimezoneRequest) ProtoReflect() protoreflect.Message
func (*TimezoneRequest) Reset
Section titled “func (*TimezoneRequest) Reset”func (x *TimezoneRequest) Reset()
func (*TimezoneRequest) String
Section titled “func (*TimezoneRequest) String”func (x *TimezoneRequest) String() string
type TransportConfig
Section titled “type TransportConfig”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
Section titled “func (*TransportConfig) Descriptor”func (*TransportConfig) Descriptor() ([]byte, []int)
Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead.
func (*TransportConfig) GetAddress
Section titled “func (*TransportConfig) GetAddress”func (x *TransportConfig) GetAddress() string
func (*TransportConfig) GetName
Section titled “func (*TransportConfig) GetName”func (x *TransportConfig) GetName() string
func (*TransportConfig) GetPort
Section titled “func (*TransportConfig) GetPort”func (x *TransportConfig) GetPort() string
func (*TransportConfig) GetProtocol
Section titled “func (*TransportConfig) GetProtocol”func (x *TransportConfig) GetProtocol() string
func (*TransportConfig) ProtoMessage
Section titled “func (*TransportConfig) ProtoMessage”func (*TransportConfig) ProtoMessage()
func (*TransportConfig) ProtoReflect
Section titled “func (*TransportConfig) ProtoReflect”func (x *TransportConfig) ProtoReflect() protoreflect.Message
func (*TransportConfig) Reset
Section titled “func (*TransportConfig) Reset”func (x *TransportConfig) Reset()
func (*TransportConfig) String
Section titled “func (*TransportConfig) String”func (x *TransportConfig) String() string
type UnimplementedAdminServiceServer
Section titled “type UnimplementedAdminServiceServer”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
Section titled “type UnitStatusRequest”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
Section titled “func (*UnitStatusRequest) Descriptor”func (*UnitStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnitStatusRequest.ProtoReflect.Descriptor instead.
func (*UnitStatusRequest) GetUnitName
Section titled “func (*UnitStatusRequest) GetUnitName”func (x *UnitStatusRequest) GetUnitName() string
func (*UnitStatusRequest) GetVmName
Section titled “func (*UnitStatusRequest) GetVmName”func (x *UnitStatusRequest) GetVmName() string
func (*UnitStatusRequest) ProtoMessage
Section titled “func (*UnitStatusRequest) ProtoMessage”func (*UnitStatusRequest) ProtoMessage()
func (*UnitStatusRequest) ProtoReflect
Section titled “func (*UnitStatusRequest) ProtoReflect”func (x *UnitStatusRequest) ProtoReflect() protoreflect.Message
func (*UnitStatusRequest) Reset
Section titled “func (*UnitStatusRequest) Reset”func (x *UnitStatusRequest) Reset()
func (*UnitStatusRequest) String
Section titled “func (*UnitStatusRequest) String”func (x *UnitStatusRequest) String() string
type UnsafeAdminServiceServer
Section titled “type UnsafeAdminServiceServer”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
Section titled “type WatchItem”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
Section titled “func (*WatchItem) Descriptor”func (*WatchItem) Descriptor() ([]byte, []int)
Deprecated: Use WatchItem.ProtoReflect.Descriptor instead.
func (*WatchItem) GetAdded
Section titled “func (*WatchItem) GetAdded”func (x *WatchItem) GetAdded() *QueryListItem
func (*WatchItem) GetInitial
Section titled “func (*WatchItem) GetInitial”func (x *WatchItem) GetInitial() *QueryListResponse
func (*WatchItem) GetRemoved
Section titled “func (*WatchItem) GetRemoved”func (x *WatchItem) GetRemoved() *QueryListItem
func (*WatchItem) GetStatus
Section titled “func (*WatchItem) GetStatus”func (x *WatchItem) GetStatus() isWatchItem_Status
func (*WatchItem) GetUpdated
Section titled “func (*WatchItem) GetUpdated”func (x *WatchItem) GetUpdated() *QueryListItem
func (*WatchItem) ProtoMessage
Section titled “func (*WatchItem) ProtoMessage”func (*WatchItem) ProtoMessage()
func (*WatchItem) ProtoReflect
Section titled “func (*WatchItem) ProtoReflect”func (x *WatchItem) ProtoReflect() protoreflect.Message
func (*WatchItem) Reset
Section titled “func (*WatchItem) Reset”func (x *WatchItem) Reset()
func (*WatchItem) String
Section titled “func (*WatchItem) String”func (x *WatchItem) String() string
type WatchItem_Added
Section titled “type WatchItem_Added”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
Section titled “type WatchItem_Initial”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
Section titled “type WatchItem_Removed”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
Section titled “type WatchItem_Updated”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
Section titled “type adminServiceClient”type adminServiceClient struct { cc grpc.ClientConnInterface}
func (*adminServiceClient) GetStats
Section titled “func (*adminServiceClient) GetStats”func (c *adminServiceClient) GetStats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*stats.StatsResponse, error)
func (*adminServiceClient) GetUnitStatus
Section titled “func (*adminServiceClient) GetUnitStatus”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 (*adminServiceClient) Poweroff
Section titled “func (*adminServiceClient) Poweroff”func (c *adminServiceClient) Poweroff(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
func (*adminServiceClient) QueryList
Section titled “func (*adminServiceClient) QueryList”func (c *adminServiceClient) QueryList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*QueryListResponse, error)
func (*adminServiceClient) Reboot
Section titled “func (*adminServiceClient) Reboot”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 (*adminServiceClient) SetLocale
Section titled “func (*adminServiceClient) SetLocale”func (c *adminServiceClient) SetLocale(ctx context.Context, in *LocaleRequest, opts ...grpc.CallOption) (*Empty, error)
func (*adminServiceClient) SetTimezone
Section titled “func (*adminServiceClient) SetTimezone”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 (*adminServiceClient) StartService
Section titled “func (*adminServiceClient) StartService”func (c *adminServiceClient) StartService(ctx context.Context, in *StartServiceRequest, opts ...grpc.CallOption) (*StartResponse, error)
func (*adminServiceClient) StartVM
Section titled “func (*adminServiceClient) StartVM”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 (*adminServiceClient) Suspend
Section titled “func (*adminServiceClient) Suspend”func (c *adminServiceClient) Suspend(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
func (*adminServiceClient) Wakeup
Section titled “func (*adminServiceClient) Wakeup”func (c *adminServiceClient) Wakeup(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
func (*adminServiceClient) Watch
Section titled “func (*adminServiceClient) Watch”func (c *adminServiceClient) Watch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[WatchItem], error)
type isWatchItem_Status
Section titled “type isWatchItem_Status”type isWatchItem_Status interface { isWatchItem_Status()}
Generated by gomarkdoc