Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAgentRpcServerServer(s grpc.ServiceRegistrar, srv AgentRpcServerServer)
- type AgentRpcServerClient
- type AgentRpcServerServer
- type UESSClusterDetailRequest
- type UESSClusterDetailResponse
- func (*UESSClusterDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UESSClusterDetailResponse) GetCode() int32
- func (x *UESSClusterDetailResponse) GetHostList() []*UESSClusterDetailResponse_HostItem
- func (x *UESSClusterDetailResponse) GetMsg() string
- func (*UESSClusterDetailResponse) ProtoMessage()
- func (x *UESSClusterDetailResponse) ProtoReflect() protoreflect.Message
- func (x *UESSClusterDetailResponse) Reset()
- func (x *UESSClusterDetailResponse) String() string
- type UESSClusterDetailResponse_HostItem
- func (*UESSClusterDetailResponse_HostItem) Descriptor() ([]byte, []int)deprecated
- func (x *UESSClusterDetailResponse_HostItem) GetCpuPercent() float32
- func (x *UESSClusterDetailResponse_HostItem) GetFreeMemory() float32
- func (x *UESSClusterDetailResponse_HostItem) GetGrade() uint32
- func (x *UESSClusterDetailResponse_HostItem) GetHttpPort() uint32
- func (x *UESSClusterDetailResponse_HostItem) GetIp() string
- func (x *UESSClusterDetailResponse_HostItem) GetJoinTime() string
- func (x *UESSClusterDetailResponse_HostItem) GetRole() string
- func (x *UESSClusterDetailResponse_HostItem) GetRpcPort() uint32
- func (*UESSClusterDetailResponse_HostItem) ProtoMessage()
- func (x *UESSClusterDetailResponse_HostItem) ProtoReflect() protoreflect.Message
- func (x *UESSClusterDetailResponse_HostItem) Reset()
- func (x *UESSClusterDetailResponse_HostItem) String() string
- type UESSCreateInstanceRequest
- func (*UESSCreateInstanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UESSCreateInstanceRequest) GetAppName() string
- func (*UESSCreateInstanceRequest) ProtoMessage()
- func (x *UESSCreateInstanceRequest) ProtoReflect() protoreflect.Message
- func (x *UESSCreateInstanceRequest) Reset()
- func (x *UESSCreateInstanceRequest) String() string
- type UESSCreateInstanceResponse
- func (*UESSCreateInstanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UESSCreateInstanceResponse) GetCode() int32
- func (x *UESSCreateInstanceResponse) GetInstanceId() string
- func (x *UESSCreateInstanceResponse) GetMsg() string
- func (x *UESSCreateInstanceResponse) GetWsUrl() string
- func (*UESSCreateInstanceResponse) ProtoMessage()
- func (x *UESSCreateInstanceResponse) ProtoReflect() protoreflect.Message
- func (x *UESSCreateInstanceResponse) Reset()
- func (x *UESSCreateInstanceResponse) String() string
- type UESSHostDetailRequest
- func (*UESSHostDetailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UESSHostDetailRequest) GetHostIp() string
- func (*UESSHostDetailRequest) ProtoMessage()
- func (x *UESSHostDetailRequest) ProtoReflect() protoreflect.Message
- func (x *UESSHostDetailRequest) Reset()
- func (x *UESSHostDetailRequest) String() string
- type UESSHostDetailResponse
- func (*UESSHostDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UESSHostDetailResponse) GetCode() int32
- func (x *UESSHostDetailResponse) GetCpuPercent() float32
- func (x *UESSHostDetailResponse) GetFreeMemory() float32
- func (x *UESSHostDetailResponse) GetGrade() uint32
- func (x *UESSHostDetailResponse) GetHttpPort() string
- func (x *UESSHostDetailResponse) GetIp() string
- func (x *UESSHostDetailResponse) GetJoinTime() string
- func (x *UESSHostDetailResponse) GetMsg() string
- func (x *UESSHostDetailResponse) GetRole() string
- func (x *UESSHostDetailResponse) GetRpcPort() string
- func (*UESSHostDetailResponse) ProtoMessage()
- func (x *UESSHostDetailResponse) ProtoReflect() protoreflect.Message
- func (x *UESSHostDetailResponse) Reset()
- func (x *UESSHostDetailResponse) String() string
- type UESSHostRegisterRequest
- func (*UESSHostRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UESSHostRegisterRequest) GetHostIp() string
- func (x *UESSHostRegisterRequest) GetPort() uint32
- func (*UESSHostRegisterRequest) ProtoMessage()
- func (x *UESSHostRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *UESSHostRegisterRequest) Reset()
- func (x *UESSHostRegisterRequest) String() string
- type UESSHostRegisterResponse
- func (*UESSHostRegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UESSHostRegisterResponse) GetCode() int32
- func (x *UESSHostRegisterResponse) GetMsg() string
- func (*UESSHostRegisterResponse) ProtoMessage()
- func (x *UESSHostRegisterResponse) ProtoReflect() protoreflect.Message
- func (x *UESSHostRegisterResponse) Reset()
- func (x *UESSHostRegisterResponse) String() string
- type UESSInstanceListRequest
- func (*UESSInstanceListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UESSInstanceListRequest) GetStatus() UESSInstanceStatus
- func (*UESSInstanceListRequest) ProtoMessage()
- func (x *UESSInstanceListRequest) ProtoReflect() protoreflect.Message
- func (x *UESSInstanceListRequest) Reset()
- func (x *UESSInstanceListRequest) String() string
- type UESSInstanceListResponse
- func (*UESSInstanceListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UESSInstanceListResponse) GetCode() int32
- func (x *UESSInstanceListResponse) GetInstanceId() string
- func (x *UESSInstanceListResponse) GetMsg() string
- func (x *UESSInstanceListResponse) GetWsUrl() string
- func (*UESSInstanceListResponse) ProtoMessage()
- func (x *UESSInstanceListResponse) ProtoReflect() protoreflect.Message
- func (x *UESSInstanceListResponse) Reset()
- func (x *UESSInstanceListResponse) String() string
- type UESSInstanceStatus
- func (UESSInstanceStatus) Descriptor() protoreflect.EnumDescriptor
- func (x UESSInstanceStatus) Enum() *UESSInstanceStatus
- func (UESSInstanceStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x UESSInstanceStatus) Number() protoreflect.EnumNumber
- func (x UESSInstanceStatus) String() string
- func (UESSInstanceStatus) Type() protoreflect.EnumType
- type UESSRemoveInstanceRequest
- func (*UESSRemoveInstanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UESSRemoveInstanceRequest) GetInstanceId() string
- func (*UESSRemoveInstanceRequest) ProtoMessage()
- func (x *UESSRemoveInstanceRequest) ProtoReflect() protoreflect.Message
- func (x *UESSRemoveInstanceRequest) Reset()
- func (x *UESSRemoveInstanceRequest) String() string
- type UESSRemoveInstanceResponse
- func (*UESSRemoveInstanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UESSRemoveInstanceResponse) GetCode() int32
- func (x *UESSRemoveInstanceResponse) GetMsg() string
- func (*UESSRemoveInstanceResponse) ProtoMessage()
- func (x *UESSRemoveInstanceResponse) ProtoReflect() protoreflect.Message
- func (x *UESSRemoveInstanceResponse) Reset()
- func (x *UESSRemoveInstanceResponse) String() string
- type UESSRpcPingRequest
- type UESSRpcPingResponse
- func (*UESSRpcPingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UESSRpcPingResponse) GetCode() int32
- func (x *UESSRpcPingResponse) GetFreeCpu() int32
- func (x *UESSRpcPingResponse) GetFreeGpu() int32
- func (x *UESSRpcPingResponse) GetFreeMemory() int32
- func (x *UESSRpcPingResponse) GetMsg() string
- func (*UESSRpcPingResponse) ProtoMessage()
- func (x *UESSRpcPingResponse) ProtoReflect() protoreflect.Message
- func (x *UESSRpcPingResponse) Reset()
- func (x *UESSRpcPingResponse) String() string
- type UESSStartAppRequest
- func (*UESSStartAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UESSStartAppRequest) GetAppName() string
- func (x *UESSStartAppRequest) GetPort() uint32
- func (x *UESSStartAppRequest) GetSlsHost() string
- func (*UESSStartAppRequest) ProtoMessage()
- func (x *UESSStartAppRequest) ProtoReflect() protoreflect.Message
- func (x *UESSStartAppRequest) Reset()
- func (x *UESSStartAppRequest) String() string
- type UESSStartAppResponse
- func (*UESSStartAppResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UESSStartAppResponse) GetCode() int32
- func (x *UESSStartAppResponse) GetMsg() string
- func (x *UESSStartAppResponse) GetPid() uint32
- func (*UESSStartAppResponse) ProtoMessage()
- func (x *UESSStartAppResponse) ProtoReflect() protoreflect.Message
- func (x *UESSStartAppResponse) Reset()
- func (x *UESSStartAppResponse) String() string
- type UESSStopAppRequest
- type UESSStopAppResponse
- func (*UESSStopAppResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UESSStopAppResponse) GetCode() int32
- func (x *UESSStopAppResponse) GetMsg() string
- func (*UESSStopAppResponse) ProtoMessage()
- func (x *UESSStopAppResponse) ProtoReflect() protoreflect.Message
- func (x *UESSStopAppResponse) Reset()
- func (x *UESSStopAppResponse) String() string
- type UnimplementedAgentRpcServerServer
- func (UnimplementedAgentRpcServerServer) Ping(context.Context, *UESSRpcPingRequest) (*UESSRpcPingResponse, error)
- func (UnimplementedAgentRpcServerServer) StartApp(context.Context, *UESSStartAppRequest) (*UESSStartAppResponse, error)
- func (UnimplementedAgentRpcServerServer) StopApp(context.Context, *UESSStopAppRequest) (*UESSStopAppResponse, error)
- type UnsafeAgentRpcServerServer
Constants ¶
const ( AgentRpcServer_Ping_FullMethodName = "/pb.AgentRpcServer/Ping" AgentRpcServer_StartApp_FullMethodName = "/pb.AgentRpcServer/StartApp" AgentRpcServer_StopApp_FullMethodName = "/pb.AgentRpcServer/StopApp" )
Variables ¶
var ( UESSInstanceStatus_name = map[int32]string{ 0: "All", 1: "Active", 2: "Dead", } UESSInstanceStatus_value = map[string]int32{ "All": 0, "Active": 1, "Dead": 2, } )
Enum value maps for UESSInstanceStatus.
var AgentRpcServer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.AgentRpcServer", HandlerType: (*AgentRpcServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _AgentRpcServer_Ping_Handler, }, { MethodName: "StartApp", Handler: _AgentRpcServer_StartApp_Handler, }, { MethodName: "StopApp", Handler: _AgentRpcServer_StopApp_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "uess-agent.proto", }
AgentRpcServer_ServiceDesc is the grpc.ServiceDesc for AgentRpcServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_uess_agent_proto protoreflect.FileDescriptor
var File_uess_cluster_proto protoreflect.FileDescriptor
var File_uess_enum_proto protoreflect.FileDescriptor
var File_uess_host_proto protoreflect.FileDescriptor
var File_uess_instance_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentRpcServerServer ¶
func RegisterAgentRpcServerServer(s grpc.ServiceRegistrar, srv AgentRpcServerServer)
Types ¶
type AgentRpcServerClient ¶
type AgentRpcServerClient interface { // 心跳 Ping(ctx context.Context, in *UESSRpcPingRequest, opts ...grpc.CallOption) (*UESSRpcPingResponse, error) // 启动应用 StartApp(ctx context.Context, in *UESSStartAppRequest, opts ...grpc.CallOption) (*UESSStartAppResponse, error) // 停止应用 StopApp(ctx context.Context, in *UESSStopAppRequest, opts ...grpc.CallOption) (*UESSStopAppResponse, error) }
AgentRpcServerClient is the client API for AgentRpcServer 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.
func NewAgentRpcServerClient ¶
func NewAgentRpcServerClient(cc grpc.ClientConnInterface) AgentRpcServerClient
type AgentRpcServerServer ¶
type AgentRpcServerServer interface { // 心跳 Ping(context.Context, *UESSRpcPingRequest) (*UESSRpcPingResponse, error) // 启动应用 StartApp(context.Context, *UESSStartAppRequest) (*UESSStartAppResponse, error) // 停止应用 StopApp(context.Context, *UESSStopAppRequest) (*UESSStopAppResponse, error) // contains filtered or unexported methods }
AgentRpcServerServer is the server API for AgentRpcServer service. All implementations must embed UnimplementedAgentRpcServerServer for forward compatibility
type UESSClusterDetailRequest ¶ added in v0.1.5
type UESSClusterDetailRequest struct {
// contains filtered or unexported fields
}
主机注册 GET token_option /api/v1/cluster/detail
func (*UESSClusterDetailRequest) Descriptor
deprecated
added in
v0.1.5
func (*UESSClusterDetailRequest) Descriptor() ([]byte, []int)
Deprecated: Use UESSClusterDetailRequest.ProtoReflect.Descriptor instead.
func (*UESSClusterDetailRequest) ProtoMessage ¶ added in v0.1.5
func (*UESSClusterDetailRequest) ProtoMessage()
func (*UESSClusterDetailRequest) ProtoReflect ¶ added in v0.1.5
func (x *UESSClusterDetailRequest) ProtoReflect() protoreflect.Message
func (*UESSClusterDetailRequest) Reset ¶ added in v0.1.5
func (x *UESSClusterDetailRequest) Reset()
func (*UESSClusterDetailRequest) String ¶ added in v0.1.5
func (x *UESSClusterDetailRequest) String() string
type UESSClusterDetailResponse ¶ added in v0.1.5
type UESSClusterDetailResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` HostList []*UESSClusterDetailResponse_HostItem `protobuf:"bytes,3,rep,name=host_list,json=hostList,proto3" json:"host_list,omitempty"` // contains filtered or unexported fields }
func (*UESSClusterDetailResponse) Descriptor
deprecated
added in
v0.1.5
func (*UESSClusterDetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use UESSClusterDetailResponse.ProtoReflect.Descriptor instead.
func (*UESSClusterDetailResponse) GetCode ¶ added in v0.1.5
func (x *UESSClusterDetailResponse) GetCode() int32
func (*UESSClusterDetailResponse) GetHostList ¶ added in v0.1.5
func (x *UESSClusterDetailResponse) GetHostList() []*UESSClusterDetailResponse_HostItem
func (*UESSClusterDetailResponse) GetMsg ¶ added in v0.1.5
func (x *UESSClusterDetailResponse) GetMsg() string
func (*UESSClusterDetailResponse) ProtoMessage ¶ added in v0.1.5
func (*UESSClusterDetailResponse) ProtoMessage()
func (*UESSClusterDetailResponse) ProtoReflect ¶ added in v0.1.5
func (x *UESSClusterDetailResponse) ProtoReflect() protoreflect.Message
func (*UESSClusterDetailResponse) Reset ¶ added in v0.1.5
func (x *UESSClusterDetailResponse) Reset()
func (*UESSClusterDetailResponse) String ¶ added in v0.1.5
func (x *UESSClusterDetailResponse) String() string
type UESSClusterDetailResponse_HostItem ¶ added in v0.1.5
type UESSClusterDetailResponse_HostItem struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` CpuPercent float32 `protobuf:"fixed32,2,opt,name=cpu_percent,json=cpuPercent,proto3" json:"cpu_percent,omitempty"` FreeMemory float32 `protobuf:"fixed32,3,opt,name=free_memory,json=freeMemory,proto3" json:"free_memory,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // 角色 JoinTime string `protobuf:"bytes,5,opt,name=join_time,json=joinTime,proto3" json:"join_time,omitempty"` // 加入时间 HttpPort uint32 `protobuf:"varint,6,opt,name=http_port,json=httpPort,proto3" json:"http_port,omitempty"` RpcPort uint32 `protobuf:"varint,7,opt,name=rpc_port,json=rpcPort,proto3" json:"rpc_port,omitempty"` Grade uint32 `protobuf:"varint,8,opt,name=grade,proto3" json:"grade,omitempty"` // contains filtered or unexported fields }
func (*UESSClusterDetailResponse_HostItem) Descriptor
deprecated
added in
v0.1.5
func (*UESSClusterDetailResponse_HostItem) Descriptor() ([]byte, []int)
Deprecated: Use UESSClusterDetailResponse_HostItem.ProtoReflect.Descriptor instead.
func (*UESSClusterDetailResponse_HostItem) GetCpuPercent ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) GetCpuPercent() float32
func (*UESSClusterDetailResponse_HostItem) GetFreeMemory ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) GetFreeMemory() float32
func (*UESSClusterDetailResponse_HostItem) GetGrade ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) GetGrade() uint32
func (*UESSClusterDetailResponse_HostItem) GetHttpPort ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) GetHttpPort() uint32
func (*UESSClusterDetailResponse_HostItem) GetIp ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) GetIp() string
func (*UESSClusterDetailResponse_HostItem) GetJoinTime ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) GetJoinTime() string
func (*UESSClusterDetailResponse_HostItem) GetRole ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) GetRole() string
func (*UESSClusterDetailResponse_HostItem) GetRpcPort ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) GetRpcPort() uint32
func (*UESSClusterDetailResponse_HostItem) ProtoMessage ¶ added in v0.1.5
func (*UESSClusterDetailResponse_HostItem) ProtoMessage()
func (*UESSClusterDetailResponse_HostItem) ProtoReflect ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) ProtoReflect() protoreflect.Message
func (*UESSClusterDetailResponse_HostItem) Reset ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) Reset()
func (*UESSClusterDetailResponse_HostItem) String ¶ added in v0.1.5
func (x *UESSClusterDetailResponse_HostItem) String() string
type UESSCreateInstanceRequest ¶
type UESSCreateInstanceRequest struct { AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` // 应用名称 // contains filtered or unexported fields }
创建实例 POST token_option /api/v1/instance/create
func (*UESSCreateInstanceRequest) Descriptor
deprecated
func (*UESSCreateInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UESSCreateInstanceRequest.ProtoReflect.Descriptor instead.
func (*UESSCreateInstanceRequest) GetAppName ¶
func (x *UESSCreateInstanceRequest) GetAppName() string
func (*UESSCreateInstanceRequest) ProtoMessage ¶
func (*UESSCreateInstanceRequest) ProtoMessage()
func (*UESSCreateInstanceRequest) ProtoReflect ¶
func (x *UESSCreateInstanceRequest) ProtoReflect() protoreflect.Message
func (*UESSCreateInstanceRequest) Reset ¶
func (x *UESSCreateInstanceRequest) Reset()
func (*UESSCreateInstanceRequest) String ¶
func (x *UESSCreateInstanceRequest) String() string
type UESSCreateInstanceResponse ¶
type UESSCreateInstanceResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // 实例ID WsUrl string `protobuf:"bytes,4,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"` // contains filtered or unexported fields }
func (*UESSCreateInstanceResponse) Descriptor
deprecated
func (*UESSCreateInstanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UESSCreateInstanceResponse.ProtoReflect.Descriptor instead.
func (*UESSCreateInstanceResponse) GetCode ¶
func (x *UESSCreateInstanceResponse) GetCode() int32
func (*UESSCreateInstanceResponse) GetInstanceId ¶
func (x *UESSCreateInstanceResponse) GetInstanceId() string
func (*UESSCreateInstanceResponse) GetMsg ¶
func (x *UESSCreateInstanceResponse) GetMsg() string
func (*UESSCreateInstanceResponse) GetWsUrl ¶
func (x *UESSCreateInstanceResponse) GetWsUrl() string
func (*UESSCreateInstanceResponse) ProtoMessage ¶
func (*UESSCreateInstanceResponse) ProtoMessage()
func (*UESSCreateInstanceResponse) ProtoReflect ¶
func (x *UESSCreateInstanceResponse) ProtoReflect() protoreflect.Message
func (*UESSCreateInstanceResponse) Reset ¶
func (x *UESSCreateInstanceResponse) Reset()
func (*UESSCreateInstanceResponse) String ¶
func (x *UESSCreateInstanceResponse) String() string
type UESSHostDetailRequest ¶ added in v0.1.5
type UESSHostDetailRequest struct { HostIp string `protobuf:"bytes,1,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"` // contains filtered or unexported fields }
主机注册 POST token_option /api/v1/host/detail
func (*UESSHostDetailRequest) Descriptor
deprecated
added in
v0.1.5
func (*UESSHostDetailRequest) Descriptor() ([]byte, []int)
Deprecated: Use UESSHostDetailRequest.ProtoReflect.Descriptor instead.
func (*UESSHostDetailRequest) GetHostIp ¶ added in v0.1.5
func (x *UESSHostDetailRequest) GetHostIp() string
func (*UESSHostDetailRequest) ProtoMessage ¶ added in v0.1.5
func (*UESSHostDetailRequest) ProtoMessage()
func (*UESSHostDetailRequest) ProtoReflect ¶ added in v0.1.5
func (x *UESSHostDetailRequest) ProtoReflect() protoreflect.Message
func (*UESSHostDetailRequest) Reset ¶ added in v0.1.5
func (x *UESSHostDetailRequest) Reset()
func (*UESSHostDetailRequest) String ¶ added in v0.1.5
func (x *UESSHostDetailRequest) String() string
type UESSHostDetailResponse ¶ added in v0.1.5
type UESSHostDetailResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` FreeMemory float32 `protobuf:"fixed32,3,opt,name=free_memory,json=freeMemory,proto3" json:"free_memory,omitempty"` Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // 角色 JoinTime string `protobuf:"bytes,5,opt,name=join_time,json=joinTime,proto3" json:"join_time,omitempty"` // 加入时间 HttpPort string `protobuf:"bytes,6,opt,name=http_port,json=httpPort,proto3" json:"http_port,omitempty"` RpcPort string `protobuf:"bytes,7,opt,name=rpc_port,json=rpcPort,proto3" json:"rpc_port,omitempty"` Grade uint32 `protobuf:"varint,8,opt,name=grade,proto3" json:"grade,omitempty"` Ip string `protobuf:"bytes,9,opt,name=ip,proto3" json:"ip,omitempty"` CpuPercent float32 `protobuf:"fixed32,10,opt,name=cpu_percent,json=cpuPercent,proto3" json:"cpu_percent,omitempty"` // contains filtered or unexported fields }
func (*UESSHostDetailResponse) Descriptor
deprecated
added in
v0.1.5
func (*UESSHostDetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use UESSHostDetailResponse.ProtoReflect.Descriptor instead.
func (*UESSHostDetailResponse) GetCode ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetCode() int32
func (*UESSHostDetailResponse) GetCpuPercent ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetCpuPercent() float32
func (*UESSHostDetailResponse) GetFreeMemory ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetFreeMemory() float32
func (*UESSHostDetailResponse) GetGrade ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetGrade() uint32
func (*UESSHostDetailResponse) GetHttpPort ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetHttpPort() string
func (*UESSHostDetailResponse) GetIp ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetIp() string
func (*UESSHostDetailResponse) GetJoinTime ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetJoinTime() string
func (*UESSHostDetailResponse) GetMsg ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetMsg() string
func (*UESSHostDetailResponse) GetRole ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetRole() string
func (*UESSHostDetailResponse) GetRpcPort ¶ added in v0.1.5
func (x *UESSHostDetailResponse) GetRpcPort() string
func (*UESSHostDetailResponse) ProtoMessage ¶ added in v0.1.5
func (*UESSHostDetailResponse) ProtoMessage()
func (*UESSHostDetailResponse) ProtoReflect ¶ added in v0.1.5
func (x *UESSHostDetailResponse) ProtoReflect() protoreflect.Message
func (*UESSHostDetailResponse) Reset ¶ added in v0.1.5
func (x *UESSHostDetailResponse) Reset()
func (*UESSHostDetailResponse) String ¶ added in v0.1.5
func (x *UESSHostDetailResponse) String() string
type UESSHostRegisterRequest ¶
type UESSHostRegisterRequest struct { HostIp string `protobuf:"bytes,1,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
主机注册 POST token_option /api/v1/cluster/on_register
func (*UESSHostRegisterRequest) Descriptor
deprecated
func (*UESSHostRegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use UESSHostRegisterRequest.ProtoReflect.Descriptor instead.
func (*UESSHostRegisterRequest) GetHostIp ¶
func (x *UESSHostRegisterRequest) GetHostIp() string
func (*UESSHostRegisterRequest) GetPort ¶
func (x *UESSHostRegisterRequest) GetPort() uint32
func (*UESSHostRegisterRequest) ProtoMessage ¶
func (*UESSHostRegisterRequest) ProtoMessage()
func (*UESSHostRegisterRequest) ProtoReflect ¶
func (x *UESSHostRegisterRequest) ProtoReflect() protoreflect.Message
func (*UESSHostRegisterRequest) Reset ¶
func (x *UESSHostRegisterRequest) Reset()
func (*UESSHostRegisterRequest) String ¶
func (x *UESSHostRegisterRequest) String() string
type UESSHostRegisterResponse ¶
type UESSHostRegisterResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*UESSHostRegisterResponse) Descriptor
deprecated
func (*UESSHostRegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use UESSHostRegisterResponse.ProtoReflect.Descriptor instead.
func (*UESSHostRegisterResponse) GetCode ¶
func (x *UESSHostRegisterResponse) GetCode() int32
func (*UESSHostRegisterResponse) GetMsg ¶
func (x *UESSHostRegisterResponse) GetMsg() string
func (*UESSHostRegisterResponse) ProtoMessage ¶
func (*UESSHostRegisterResponse) ProtoMessage()
func (*UESSHostRegisterResponse) ProtoReflect ¶
func (x *UESSHostRegisterResponse) ProtoReflect() protoreflect.Message
func (*UESSHostRegisterResponse) Reset ¶
func (x *UESSHostRegisterResponse) Reset()
func (*UESSHostRegisterResponse) String ¶
func (x *UESSHostRegisterResponse) String() string
type UESSInstanceListRequest ¶
type UESSInstanceListRequest struct { Status UESSInstanceStatus `protobuf:"varint,1,opt,name=status,proto3,enum=pb.UESSInstanceStatus" json:"status,omitempty"` // contains filtered or unexported fields }
创建实例 POST token_option /api/v1/instance/list
func (*UESSInstanceListRequest) Descriptor
deprecated
func (*UESSInstanceListRequest) Descriptor() ([]byte, []int)
Deprecated: Use UESSInstanceListRequest.ProtoReflect.Descriptor instead.
func (*UESSInstanceListRequest) GetStatus ¶
func (x *UESSInstanceListRequest) GetStatus() UESSInstanceStatus
func (*UESSInstanceListRequest) ProtoMessage ¶
func (*UESSInstanceListRequest) ProtoMessage()
func (*UESSInstanceListRequest) ProtoReflect ¶
func (x *UESSInstanceListRequest) ProtoReflect() protoreflect.Message
func (*UESSInstanceListRequest) Reset ¶
func (x *UESSInstanceListRequest) Reset()
func (*UESSInstanceListRequest) String ¶
func (x *UESSInstanceListRequest) String() string
type UESSInstanceListResponse ¶
type UESSInstanceListResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // 实例ID WsUrl string `protobuf:"bytes,4,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"` // contains filtered or unexported fields }
func (*UESSInstanceListResponse) Descriptor
deprecated
func (*UESSInstanceListResponse) Descriptor() ([]byte, []int)
Deprecated: Use UESSInstanceListResponse.ProtoReflect.Descriptor instead.
func (*UESSInstanceListResponse) GetCode ¶
func (x *UESSInstanceListResponse) GetCode() int32
func (*UESSInstanceListResponse) GetInstanceId ¶
func (x *UESSInstanceListResponse) GetInstanceId() string
func (*UESSInstanceListResponse) GetMsg ¶
func (x *UESSInstanceListResponse) GetMsg() string
func (*UESSInstanceListResponse) GetWsUrl ¶
func (x *UESSInstanceListResponse) GetWsUrl() string
func (*UESSInstanceListResponse) ProtoMessage ¶
func (*UESSInstanceListResponse) ProtoMessage()
func (*UESSInstanceListResponse) ProtoReflect ¶
func (x *UESSInstanceListResponse) ProtoReflect() protoreflect.Message
func (*UESSInstanceListResponse) Reset ¶
func (x *UESSInstanceListResponse) Reset()
func (*UESSInstanceListResponse) String ¶
func (x *UESSInstanceListResponse) String() string
type UESSInstanceStatus ¶
type UESSInstanceStatus int32
实例状态
const ( UESSInstanceStatus_All UESSInstanceStatus = 0 UESSInstanceStatus_Active UESSInstanceStatus = 1 UESSInstanceStatus_Dead UESSInstanceStatus = 2 )
func (UESSInstanceStatus) Descriptor ¶
func (UESSInstanceStatus) Descriptor() protoreflect.EnumDescriptor
func (UESSInstanceStatus) Enum ¶
func (x UESSInstanceStatus) Enum() *UESSInstanceStatus
func (UESSInstanceStatus) EnumDescriptor
deprecated
func (UESSInstanceStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use UESSInstanceStatus.Descriptor instead.
func (UESSInstanceStatus) Number ¶
func (x UESSInstanceStatus) Number() protoreflect.EnumNumber
func (UESSInstanceStatus) String ¶
func (x UESSInstanceStatus) String() string
func (UESSInstanceStatus) Type ¶
func (UESSInstanceStatus) Type() protoreflect.EnumType
type UESSRemoveInstanceRequest ¶
type UESSRemoveInstanceRequest struct { InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // 实例ID // contains filtered or unexported fields }
移除实例 POST token_option /api/v1/instance/remove
func (*UESSRemoveInstanceRequest) Descriptor
deprecated
func (*UESSRemoveInstanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UESSRemoveInstanceRequest.ProtoReflect.Descriptor instead.
func (*UESSRemoveInstanceRequest) GetInstanceId ¶
func (x *UESSRemoveInstanceRequest) GetInstanceId() string
func (*UESSRemoveInstanceRequest) ProtoMessage ¶
func (*UESSRemoveInstanceRequest) ProtoMessage()
func (*UESSRemoveInstanceRequest) ProtoReflect ¶
func (x *UESSRemoveInstanceRequest) ProtoReflect() protoreflect.Message
func (*UESSRemoveInstanceRequest) Reset ¶
func (x *UESSRemoveInstanceRequest) Reset()
func (*UESSRemoveInstanceRequest) String ¶
func (x *UESSRemoveInstanceRequest) String() string
type UESSRemoveInstanceResponse ¶
type UESSRemoveInstanceResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*UESSRemoveInstanceResponse) Descriptor
deprecated
func (*UESSRemoveInstanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UESSRemoveInstanceResponse.ProtoReflect.Descriptor instead.
func (*UESSRemoveInstanceResponse) GetCode ¶
func (x *UESSRemoveInstanceResponse) GetCode() int32
func (*UESSRemoveInstanceResponse) GetMsg ¶
func (x *UESSRemoveInstanceResponse) GetMsg() string
func (*UESSRemoveInstanceResponse) ProtoMessage ¶
func (*UESSRemoveInstanceResponse) ProtoMessage()
func (*UESSRemoveInstanceResponse) ProtoReflect ¶
func (x *UESSRemoveInstanceResponse) ProtoReflect() protoreflect.Message
func (*UESSRemoveInstanceResponse) Reset ¶
func (x *UESSRemoveInstanceResponse) Reset()
func (*UESSRemoveInstanceResponse) String ¶
func (x *UESSRemoveInstanceResponse) String() string
type UESSRpcPingRequest ¶
type UESSRpcPingRequest struct {
// contains filtered or unexported fields
}
func (*UESSRpcPingRequest) Descriptor
deprecated
func (*UESSRpcPingRequest) Descriptor() ([]byte, []int)
Deprecated: Use UESSRpcPingRequest.ProtoReflect.Descriptor instead.
func (*UESSRpcPingRequest) ProtoMessage ¶
func (*UESSRpcPingRequest) ProtoMessage()
func (*UESSRpcPingRequest) ProtoReflect ¶
func (x *UESSRpcPingRequest) ProtoReflect() protoreflect.Message
func (*UESSRpcPingRequest) Reset ¶
func (x *UESSRpcPingRequest) Reset()
func (*UESSRpcPingRequest) String ¶
func (x *UESSRpcPingRequest) String() string
type UESSRpcPingResponse ¶
type UESSRpcPingResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` FreeCpu int32 `protobuf:"varint,3,opt,name=free_cpu,json=freeCpu,proto3" json:"free_cpu,omitempty"` FreeGpu int32 `protobuf:"varint,4,opt,name=free_gpu,json=freeGpu,proto3" json:"free_gpu,omitempty"` FreeMemory int32 `protobuf:"varint,5,opt,name=free_memory,json=freeMemory,proto3" json:"free_memory,omitempty"` // contains filtered or unexported fields }
func (*UESSRpcPingResponse) Descriptor
deprecated
func (*UESSRpcPingResponse) Descriptor() ([]byte, []int)
Deprecated: Use UESSRpcPingResponse.ProtoReflect.Descriptor instead.
func (*UESSRpcPingResponse) GetCode ¶ added in v0.1.1
func (x *UESSRpcPingResponse) GetCode() int32
func (*UESSRpcPingResponse) GetFreeCpu ¶
func (x *UESSRpcPingResponse) GetFreeCpu() int32
func (*UESSRpcPingResponse) GetFreeGpu ¶
func (x *UESSRpcPingResponse) GetFreeGpu() int32
func (*UESSRpcPingResponse) GetFreeMemory ¶
func (x *UESSRpcPingResponse) GetFreeMemory() int32
func (*UESSRpcPingResponse) GetMsg ¶ added in v0.1.1
func (x *UESSRpcPingResponse) GetMsg() string
func (*UESSRpcPingResponse) ProtoMessage ¶
func (*UESSRpcPingResponse) ProtoMessage()
func (*UESSRpcPingResponse) ProtoReflect ¶
func (x *UESSRpcPingResponse) ProtoReflect() protoreflect.Message
func (*UESSRpcPingResponse) Reset ¶
func (x *UESSRpcPingResponse) Reset()
func (*UESSRpcPingResponse) String ¶
func (x *UESSRpcPingResponse) String() string
type UESSStartAppRequest ¶
type UESSStartAppRequest struct { AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` SlsHost string `protobuf:"bytes,2,opt,name=sls_host,json=slsHost,proto3" json:"sls_host,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
启动应用
func (*UESSStartAppRequest) Descriptor
deprecated
func (*UESSStartAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use UESSStartAppRequest.ProtoReflect.Descriptor instead.
func (*UESSStartAppRequest) GetAppName ¶
func (x *UESSStartAppRequest) GetAppName() string
func (*UESSStartAppRequest) GetPort ¶ added in v0.1.2
func (x *UESSStartAppRequest) GetPort() uint32
func (*UESSStartAppRequest) GetSlsHost ¶ added in v0.1.2
func (x *UESSStartAppRequest) GetSlsHost() string
func (*UESSStartAppRequest) ProtoMessage ¶
func (*UESSStartAppRequest) ProtoMessage()
func (*UESSStartAppRequest) ProtoReflect ¶
func (x *UESSStartAppRequest) ProtoReflect() protoreflect.Message
func (*UESSStartAppRequest) Reset ¶
func (x *UESSStartAppRequest) Reset()
func (*UESSStartAppRequest) String ¶
func (x *UESSStartAppRequest) String() string
type UESSStartAppResponse ¶
type UESSStartAppResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*UESSStartAppResponse) Descriptor
deprecated
func (*UESSStartAppResponse) Descriptor() ([]byte, []int)
Deprecated: Use UESSStartAppResponse.ProtoReflect.Descriptor instead.
func (*UESSStartAppResponse) GetCode ¶
func (x *UESSStartAppResponse) GetCode() int32
func (*UESSStartAppResponse) GetMsg ¶
func (x *UESSStartAppResponse) GetMsg() string
func (*UESSStartAppResponse) GetPid ¶ added in v0.1.3
func (x *UESSStartAppResponse) GetPid() uint32
func (*UESSStartAppResponse) ProtoMessage ¶
func (*UESSStartAppResponse) ProtoMessage()
func (*UESSStartAppResponse) ProtoReflect ¶
func (x *UESSStartAppResponse) ProtoReflect() protoreflect.Message
func (*UESSStartAppResponse) Reset ¶
func (x *UESSStartAppResponse) Reset()
func (*UESSStartAppResponse) String ¶
func (x *UESSStartAppResponse) String() string
type UESSStopAppRequest ¶
type UESSStopAppRequest struct { Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
停止应用
func (*UESSStopAppRequest) Descriptor
deprecated
func (*UESSStopAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use UESSStopAppRequest.ProtoReflect.Descriptor instead.
func (*UESSStopAppRequest) GetPid ¶
func (x *UESSStopAppRequest) GetPid() uint32
func (*UESSStopAppRequest) ProtoMessage ¶
func (*UESSStopAppRequest) ProtoMessage()
func (*UESSStopAppRequest) ProtoReflect ¶
func (x *UESSStopAppRequest) ProtoReflect() protoreflect.Message
func (*UESSStopAppRequest) Reset ¶
func (x *UESSStopAppRequest) Reset()
func (*UESSStopAppRequest) String ¶
func (x *UESSStopAppRequest) String() string
type UESSStopAppResponse ¶
type UESSStopAppResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*UESSStopAppResponse) Descriptor
deprecated
func (*UESSStopAppResponse) Descriptor() ([]byte, []int)
Deprecated: Use UESSStopAppResponse.ProtoReflect.Descriptor instead.
func (*UESSStopAppResponse) GetCode ¶
func (x *UESSStopAppResponse) GetCode() int32
func (*UESSStopAppResponse) GetMsg ¶
func (x *UESSStopAppResponse) GetMsg() string
func (*UESSStopAppResponse) ProtoMessage ¶
func (*UESSStopAppResponse) ProtoMessage()
func (*UESSStopAppResponse) ProtoReflect ¶
func (x *UESSStopAppResponse) ProtoReflect() protoreflect.Message
func (*UESSStopAppResponse) Reset ¶
func (x *UESSStopAppResponse) Reset()
func (*UESSStopAppResponse) String ¶
func (x *UESSStopAppResponse) String() string
type UnimplementedAgentRpcServerServer ¶
type UnimplementedAgentRpcServerServer struct { }
UnimplementedAgentRpcServerServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentRpcServerServer) Ping ¶
func (UnimplementedAgentRpcServerServer) Ping(context.Context, *UESSRpcPingRequest) (*UESSRpcPingResponse, error)
func (UnimplementedAgentRpcServerServer) StartApp ¶
func (UnimplementedAgentRpcServerServer) StartApp(context.Context, *UESSStartAppRequest) (*UESSStartAppResponse, error)
func (UnimplementedAgentRpcServerServer) StopApp ¶
func (UnimplementedAgentRpcServerServer) StopApp(context.Context, *UESSStopAppRequest) (*UESSStopAppResponse, error)
type UnsafeAgentRpcServerServer ¶
type UnsafeAgentRpcServerServer interface {
// contains filtered or unexported methods
}
UnsafeAgentRpcServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentRpcServerServer will result in compilation errors.