Documentation ¶
Index ¶
- Variables
- func DRPCRegisterPortal(mux drpc.Mux, impl DRPCPortalServer) error
- type CPUusageRequest
- type CPUusageResponse
- func (*CPUusageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CPUusageResponse) GetLoadavg1() int32
- func (x *CPUusageResponse) GetLoadavg15() int32
- func (x *CPUusageResponse) GetLoadavg5() int32
- func (*CPUusageResponse) ProtoMessage()
- func (x *CPUusageResponse) ProtoReflect() protoreflect.Message
- func (x *CPUusageResponse) Reset()
- func (x *CPUusageResponse) String() string
- type CommandRequest
- func (*CommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommandRequest) GetArgs() []string
- func (x *CommandRequest) GetName() string
- func (*CommandRequest) ProtoMessage()
- func (x *CommandRequest) ProtoReflect() protoreflect.Message
- func (x *CommandRequest) Reset()
- func (x *CommandRequest) String() string
- type CommandResponse
- func (*CommandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommandResponse) GetMessage() string
- func (x *CommandResponse) GetState() State
- func (*CommandResponse) ProtoMessage()
- func (x *CommandResponse) ProtoReflect() protoreflect.Message
- func (x *CommandResponse) Reset()
- func (x *CommandResponse) String() string
- type DRPCPortalClient
- type DRPCPortalDescription
- type DRPCPortalServer
- type DRPCPortalUnimplementedServer
- func (s *DRPCPortalUnimplementedServer) CPUusage(context.Context, *CPUusageRequest) (*CPUusageResponse, error)
- func (s *DRPCPortalUnimplementedServer) RunCommand(context.Context, *CommandRequest) (*CommandResponse, error)
- func (s *DRPCPortalUnimplementedServer) ServiceRestart(context.Context, *ServiceRequest) (*ServiceResponse, error)
- func (s *DRPCPortalUnimplementedServer) ServiceStart(context.Context, *ServiceRequest) (*ServiceResponse, error)
- func (s *DRPCPortalUnimplementedServer) ServiceStatus(context.Context, *ServiceRequest) (*ServiceStatusResponse, error)
- func (s *DRPCPortalUnimplementedServer) ServiceStop(context.Context, *ServiceRequest) (*ServiceResponse, error)
- type DRPCPortal_CPUusageStream
- type DRPCPortal_RunCommandStream
- type DRPCPortal_ServiceRestartStream
- type DRPCPortal_ServiceStartStream
- type DRPCPortal_ServiceStatusStream
- type DRPCPortal_ServiceStopStream
- type ServiceRequest
- type ServiceResponse
- func (*ServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceResponse) GetMessage() string
- func (x *ServiceResponse) GetState() State
- func (*ServiceResponse) ProtoMessage()
- func (x *ServiceResponse) ProtoReflect() protoreflect.Message
- func (x *ServiceResponse) Reset()
- func (x *ServiceResponse) String() string
- type ServiceStatusResponse
- func (*ServiceStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceStatusResponse) GetActivestate() string
- func (x *ServiceStatusResponse) GetLoadstate() string
- func (x *ServiceStatusResponse) GetState() State
- func (x *ServiceStatusResponse) GetSubstate() string
- func (*ServiceStatusResponse) ProtoMessage()
- func (x *ServiceStatusResponse) ProtoReflect() protoreflect.Message
- func (x *ServiceStatusResponse) Reset()
- func (x *ServiceStatusResponse) String() string
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ( State_name = map[int32]string{ 0: "UNKNOWN", 1: "CHANGED", 2: "UNCHANGED", } State_value = map[string]int32{ "UNKNOWN": 0, "CHANGED": 1, "UNCHANGED": 2, } )
Enum value maps for State.
View Source
var File_portal_portal_proto protoreflect.FileDescriptor
Functions ¶
func DRPCRegisterPortal ¶
func DRPCRegisterPortal(mux drpc.Mux, impl DRPCPortalServer) error
Types ¶
type CPUusageRequest ¶
type CPUusageRequest struct {
// contains filtered or unexported fields
}
func (*CPUusageRequest) Descriptor
deprecated
func (*CPUusageRequest) Descriptor() ([]byte, []int)
Deprecated: Use CPUusageRequest.ProtoReflect.Descriptor instead.
func (*CPUusageRequest) ProtoMessage ¶
func (*CPUusageRequest) ProtoMessage()
func (*CPUusageRequest) ProtoReflect ¶
func (x *CPUusageRequest) ProtoReflect() protoreflect.Message
func (*CPUusageRequest) Reset ¶
func (x *CPUusageRequest) Reset()
func (*CPUusageRequest) String ¶
func (x *CPUusageRequest) String() string
type CPUusageResponse ¶
type CPUusageResponse struct { Loadavg1 int32 `protobuf:"varint,1,opt,name=loadavg1,proto3" json:"loadavg1,omitempty"` Loadavg5 int32 `protobuf:"varint,2,opt,name=loadavg5,proto3" json:"loadavg5,omitempty"` Loadavg15 int32 `protobuf:"varint,3,opt,name=loadavg15,proto3" json:"loadavg15,omitempty"` // contains filtered or unexported fields }
func (*CPUusageResponse) Descriptor
deprecated
func (*CPUusageResponse) Descriptor() ([]byte, []int)
Deprecated: Use CPUusageResponse.ProtoReflect.Descriptor instead.
func (*CPUusageResponse) GetLoadavg1 ¶
func (x *CPUusageResponse) GetLoadavg1() int32
func (*CPUusageResponse) GetLoadavg15 ¶
func (x *CPUusageResponse) GetLoadavg15() int32
func (*CPUusageResponse) GetLoadavg5 ¶
func (x *CPUusageResponse) GetLoadavg5() int32
func (*CPUusageResponse) ProtoMessage ¶
func (*CPUusageResponse) ProtoMessage()
func (*CPUusageResponse) ProtoReflect ¶
func (x *CPUusageResponse) ProtoReflect() protoreflect.Message
func (*CPUusageResponse) Reset ¶
func (x *CPUusageResponse) Reset()
func (*CPUusageResponse) String ¶
func (x *CPUusageResponse) String() string
type CommandRequest ¶
type CommandRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*CommandRequest) Descriptor
deprecated
func (*CommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommandRequest.ProtoReflect.Descriptor instead.
func (*CommandRequest) GetArgs ¶
func (x *CommandRequest) GetArgs() []string
func (*CommandRequest) GetName ¶
func (x *CommandRequest) GetName() string
func (*CommandRequest) ProtoMessage ¶
func (*CommandRequest) ProtoMessage()
func (*CommandRequest) ProtoReflect ¶
func (x *CommandRequest) ProtoReflect() protoreflect.Message
func (*CommandRequest) Reset ¶
func (x *CommandRequest) Reset()
func (*CommandRequest) String ¶
func (x *CommandRequest) String() string
type CommandResponse ¶
type CommandResponse struct { State State `protobuf:"varint,1,opt,name=state,proto3,enum=portal.State" json:"state,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*CommandResponse) Descriptor
deprecated
func (*CommandResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommandResponse.ProtoReflect.Descriptor instead.
func (*CommandResponse) GetMessage ¶
func (x *CommandResponse) GetMessage() string
func (*CommandResponse) GetState ¶
func (x *CommandResponse) GetState() State
func (*CommandResponse) ProtoMessage ¶
func (*CommandResponse) ProtoMessage()
func (*CommandResponse) ProtoReflect ¶
func (x *CommandResponse) ProtoReflect() protoreflect.Message
func (*CommandResponse) Reset ¶
func (x *CommandResponse) Reset()
func (*CommandResponse) String ¶
func (x *CommandResponse) String() string
type DRPCPortalClient ¶
type DRPCPortalClient interface { DRPCConn() drpc.Conn ServiceRestart(ctx context.Context, in *ServiceRequest) (*ServiceResponse, error) ServiceStart(ctx context.Context, in *ServiceRequest) (*ServiceResponse, error) ServiceStop(ctx context.Context, in *ServiceRequest) (*ServiceResponse, error) ServiceStatus(ctx context.Context, in *ServiceRequest) (*ServiceStatusResponse, error) RunCommand(ctx context.Context, in *CommandRequest) (*CommandResponse, error) CPUusage(ctx context.Context, in *CPUusageRequest) (*CPUusageResponse, error) }
func NewDRPCPortalClient ¶
func NewDRPCPortalClient(cc drpc.Conn) DRPCPortalClient
type DRPCPortalDescription ¶
type DRPCPortalDescription struct{}
func (DRPCPortalDescription) NumMethods ¶
func (DRPCPortalDescription) NumMethods() int
type DRPCPortalServer ¶
type DRPCPortalServer interface { ServiceRestart(context.Context, *ServiceRequest) (*ServiceResponse, error) ServiceStart(context.Context, *ServiceRequest) (*ServiceResponse, error) ServiceStop(context.Context, *ServiceRequest) (*ServiceResponse, error) ServiceStatus(context.Context, *ServiceRequest) (*ServiceStatusResponse, error) RunCommand(context.Context, *CommandRequest) (*CommandResponse, error) CPUusage(context.Context, *CPUusageRequest) (*CPUusageResponse, error) }
type DRPCPortalUnimplementedServer ¶
type DRPCPortalUnimplementedServer struct{}
func (*DRPCPortalUnimplementedServer) CPUusage ¶
func (s *DRPCPortalUnimplementedServer) CPUusage(context.Context, *CPUusageRequest) (*CPUusageResponse, error)
func (*DRPCPortalUnimplementedServer) RunCommand ¶
func (s *DRPCPortalUnimplementedServer) RunCommand(context.Context, *CommandRequest) (*CommandResponse, error)
func (*DRPCPortalUnimplementedServer) ServiceRestart ¶
func (s *DRPCPortalUnimplementedServer) ServiceRestart(context.Context, *ServiceRequest) (*ServiceResponse, error)
func (*DRPCPortalUnimplementedServer) ServiceStart ¶
func (s *DRPCPortalUnimplementedServer) ServiceStart(context.Context, *ServiceRequest) (*ServiceResponse, error)
func (*DRPCPortalUnimplementedServer) ServiceStatus ¶
func (s *DRPCPortalUnimplementedServer) ServiceStatus(context.Context, *ServiceRequest) (*ServiceStatusResponse, error)
func (*DRPCPortalUnimplementedServer) ServiceStop ¶
func (s *DRPCPortalUnimplementedServer) ServiceStop(context.Context, *ServiceRequest) (*ServiceResponse, error)
type DRPCPortal_CPUusageStream ¶
type DRPCPortal_CPUusageStream interface { drpc.Stream SendAndClose(*CPUusageResponse) error }
type DRPCPortal_RunCommandStream ¶
type DRPCPortal_RunCommandStream interface { drpc.Stream SendAndClose(*CommandResponse) error }
type DRPCPortal_ServiceRestartStream ¶
type DRPCPortal_ServiceRestartStream interface { drpc.Stream SendAndClose(*ServiceResponse) error }
type DRPCPortal_ServiceStartStream ¶
type DRPCPortal_ServiceStartStream interface { drpc.Stream SendAndClose(*ServiceResponse) error }
type DRPCPortal_ServiceStatusStream ¶
type DRPCPortal_ServiceStatusStream interface { drpc.Stream SendAndClose(*ServiceStatusResponse) error }
type DRPCPortal_ServiceStopStream ¶
type DRPCPortal_ServiceStopStream interface { drpc.Stream SendAndClose(*ServiceResponse) error }
type ServiceRequest ¶
type ServiceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ServiceRequest) Descriptor
deprecated
func (*ServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServiceRequest.ProtoReflect.Descriptor instead.
func (*ServiceRequest) GetName ¶
func (x *ServiceRequest) GetName() string
func (*ServiceRequest) ProtoMessage ¶
func (*ServiceRequest) ProtoMessage()
func (*ServiceRequest) ProtoReflect ¶
func (x *ServiceRequest) ProtoReflect() protoreflect.Message
func (*ServiceRequest) Reset ¶
func (x *ServiceRequest) Reset()
func (*ServiceRequest) String ¶
func (x *ServiceRequest) String() string
type ServiceResponse ¶
type ServiceResponse struct { State State `protobuf:"varint,1,opt,name=state,proto3,enum=portal.State" json:"state,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ServiceResponse) Descriptor
deprecated
func (*ServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServiceResponse.ProtoReflect.Descriptor instead.
func (*ServiceResponse) GetMessage ¶
func (x *ServiceResponse) GetMessage() string
func (*ServiceResponse) GetState ¶
func (x *ServiceResponse) GetState() State
func (*ServiceResponse) ProtoMessage ¶
func (*ServiceResponse) ProtoMessage()
func (*ServiceResponse) ProtoReflect ¶
func (x *ServiceResponse) ProtoReflect() protoreflect.Message
func (*ServiceResponse) Reset ¶
func (x *ServiceResponse) Reset()
func (*ServiceResponse) String ¶
func (x *ServiceResponse) String() string
type ServiceStatusResponse ¶
type ServiceStatusResponse struct { State State `protobuf:"varint,1,opt,name=state,proto3,enum=portal.State" json:"state,omitempty"` Loadstate string `protobuf:"bytes,2,opt,name=loadstate,proto3" json:"loadstate,omitempty"` Activestate string `protobuf:"bytes,3,opt,name=activestate,proto3" json:"activestate,omitempty"` Substate string `protobuf:"bytes,4,opt,name=substate,proto3" json:"substate,omitempty"` // contains filtered or unexported fields }
func (*ServiceStatusResponse) Descriptor
deprecated
func (*ServiceStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServiceStatusResponse.ProtoReflect.Descriptor instead.
func (*ServiceStatusResponse) GetActivestate ¶
func (x *ServiceStatusResponse) GetActivestate() string
func (*ServiceStatusResponse) GetLoadstate ¶
func (x *ServiceStatusResponse) GetLoadstate() string
func (*ServiceStatusResponse) GetState ¶
func (x *ServiceStatusResponse) GetState() State
func (*ServiceStatusResponse) GetSubstate ¶
func (x *ServiceStatusResponse) GetSubstate() string
func (*ServiceStatusResponse) ProtoMessage ¶
func (*ServiceStatusResponse) ProtoMessage()
func (*ServiceStatusResponse) ProtoReflect ¶
func (x *ServiceStatusResponse) ProtoReflect() protoreflect.Message
func (*ServiceStatusResponse) Reset ¶
func (x *ServiceStatusResponse) Reset()
func (*ServiceStatusResponse) String ¶
func (x *ServiceStatusResponse) String() string
type State ¶
type State int32
func (State) Descriptor ¶
func (State) Descriptor() protoreflect.EnumDescriptor
func (State) EnumDescriptor
deprecated
func (State) Number ¶
func (x State) Number() protoreflect.EnumNumber
func (State) Type ¶
func (State) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.