添加执行任务列表接口
Former-commit-id: dadb7daf832b93a35312830d261b659385eb7004
This commit is contained in:
parent
cde22cad93
commit
34c4a5813f
|
@ -14,6 +14,7 @@ import (
|
||||||
|
|
||||||
type (
|
type (
|
||||||
AiInfo = pcmCore.AiInfo
|
AiInfo = pcmCore.AiInfo
|
||||||
|
ApplyInfo = pcmCore.ApplyInfo
|
||||||
ApplyListReq = pcmCore.ApplyListReq
|
ApplyListReq = pcmCore.ApplyListReq
|
||||||
ApplyListResp = pcmCore.ApplyListResp
|
ApplyListResp = pcmCore.ApplyListResp
|
||||||
ClientInfo = pcmCore.ClientInfo
|
ClientInfo = pcmCore.ClientInfo
|
||||||
|
|
|
@ -14,6 +14,7 @@ import (
|
||||||
|
|
||||||
type (
|
type (
|
||||||
AiInfo = pcmCore.AiInfo
|
AiInfo = pcmCore.AiInfo
|
||||||
|
ApplyInfo = pcmCore.ApplyInfo
|
||||||
ApplyListReq = pcmCore.ApplyListReq
|
ApplyListReq = pcmCore.ApplyListReq
|
||||||
ApplyListResp = pcmCore.ApplyListResp
|
ApplyListResp = pcmCore.ApplyListResp
|
||||||
ClientInfo = pcmCore.ClientInfo
|
ClientInfo = pcmCore.ClientInfo
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
package participantservicelogic
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/constants"
|
||||||
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models"
|
||||||
|
tool "gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/utils"
|
||||||
|
|
||||||
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/internal/svc"
|
||||||
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/pcmCore"
|
||||||
|
|
||||||
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ApplyListLogic struct {
|
||||||
|
ctx context.Context
|
||||||
|
svcCtx *svc.ServiceContext
|
||||||
|
logx.Logger
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewApplyListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ApplyListLogic {
|
||||||
|
return &ApplyListLogic{
|
||||||
|
ctx: ctx,
|
||||||
|
svcCtx: svcCtx,
|
||||||
|
Logger: logx.WithContext(ctx),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// applyList 执行任务列表
|
||||||
|
func (l *ApplyListLogic) ApplyList(in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) {
|
||||||
|
result := pcmCore.ApplyListResp{}
|
||||||
|
var clouds []models.Cloud
|
||||||
|
l.svcCtx.DbEngin.Where("status = ?", constants.Saved).Scan(&clouds)
|
||||||
|
if len(clouds) != 0 {
|
||||||
|
l.svcCtx.DbEngin.Exec("update cloud set status = ? where status = ?", "Issued", "Saved")
|
||||||
|
}
|
||||||
|
tool.Convert(clouds, &result)
|
||||||
|
return &result, nil
|
||||||
|
}
|
|
@ -289,6 +289,10 @@ message ApplyListReq{
|
||||||
}
|
}
|
||||||
|
|
||||||
message ApplyListResp{
|
message ApplyListResp{
|
||||||
|
repeated ApplyInfo infoList = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ApplyInfo{
|
||||||
int64 participantId = 1;
|
int64 participantId = 1;
|
||||||
string yamlString = 2;
|
string yamlString = 2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2552,8 +2552,7 @@ type ApplyListResp struct {
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
ParticipantId int64 `protobuf:"varint,1,opt,name=participantId,proto3" json:"participantId,omitempty"`
|
InfoList []*ApplyInfo `protobuf:"bytes,1,rep,name=infoList,proto3" json:"infoList,omitempty"`
|
||||||
YamlString string `protobuf:"bytes,2,opt,name=yamlString,proto3" json:"yamlString,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ApplyListResp) Reset() {
|
func (x *ApplyListResp) Reset() {
|
||||||
|
@ -2588,14 +2587,62 @@ func (*ApplyListResp) Descriptor() ([]byte, []int) {
|
||||||
return file_pcmCore_proto_rawDescGZIP(), []int{27}
|
return file_pcmCore_proto_rawDescGZIP(), []int{27}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ApplyListResp) GetParticipantId() int64 {
|
func (x *ApplyListResp) GetInfoList() []*ApplyInfo {
|
||||||
|
if x != nil {
|
||||||
|
return x.InfoList
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type ApplyInfo struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ParticipantId int64 `protobuf:"varint,1,opt,name=participantId,proto3" json:"participantId,omitempty"`
|
||||||
|
YamlString string `protobuf:"bytes,2,opt,name=yamlString,proto3" json:"yamlString,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ApplyInfo) Reset() {
|
||||||
|
*x = ApplyInfo{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_pcmCore_proto_msgTypes[28]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ApplyInfo) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ApplyInfo) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ApplyInfo) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_pcmCore_proto_msgTypes[28]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ApplyInfo.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ApplyInfo) Descriptor() ([]byte, []int) {
|
||||||
|
return file_pcmCore_proto_rawDescGZIP(), []int{28}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ApplyInfo) GetParticipantId() int64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.ParticipantId
|
return x.ParticipantId
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ApplyListResp) GetYamlString() string {
|
func (x *ApplyInfo) GetYamlString() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.YamlString
|
return x.YamlString
|
||||||
}
|
}
|
||||||
|
@ -2977,69 +3024,72 @@ var file_pcmCore_proto_rawDesc = []byte{
|
||||||
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72,
|
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72,
|
||||||
0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x74, 0x65,
|
0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x74, 0x65,
|
||||||
0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x41, 0x70, 0x70,
|
0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x41, 0x70, 0x70,
|
||||||
0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x55, 0x0a, 0x0d, 0x41, 0x70, 0x70,
|
0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x3f, 0x0a, 0x0d, 0x41, 0x70, 0x70,
|
||||||
0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61,
|
0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2e, 0x0a, 0x08, 0x69, 0x6e,
|
||||||
0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70,
|
||||||
0x03, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64,
|
0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x49, 0x6e, 0x66, 0x6f,
|
||||||
0x12, 0x1e, 0x0a, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02,
|
0x52, 0x08, 0x69, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x09, 0x41, 0x70,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
|
0x70, 0x6c, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69,
|
||||||
0x2a, 0x33, 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75,
|
0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d,
|
||||||
0x73, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53,
|
0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a,
|
||||||
0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e,
|
0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
0x4f, 0x57, 0x4e, 0x10, 0x02, 0x32, 0x7b, 0x0a, 0x07, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65,
|
0x09, 0x52, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2a, 0x33, 0x0a,
|
||||||
0x12, 0x37, 0x0a, 0x08, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x2e, 0x70,
|
0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x08,
|
||||||
0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
0x0a, 0x04, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43,
|
||||||
0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x79, 0x6e,
|
0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
|
||||||
0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37, 0x0a, 0x08, 0x49, 0x6e, 0x66,
|
0x10, 0x02, 0x32, 0x7b, 0x0a, 0x07, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x12, 0x37, 0x0a,
|
||||||
0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e,
|
0x08, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x2e, 0x70, 0x63, 0x6d, 0x43,
|
||||||
0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x63,
|
0x6f, 0x72, 0x65, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a,
|
||||||
0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e,
|
||||||
0x73, 0x70, 0x32, 0xba, 0x05, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61,
|
0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37, 0x0a, 0x08, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69,
|
||||||
0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x13, 0x72, 0x65, 0x67,
|
0x73, 0x74, 0x12, 0x14, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x66,
|
||||||
0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74,
|
0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f,
|
||||||
0x12, 0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69,
|
0x72, 0x65, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x32,
|
||||||
0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x70,
|
0xba, 0x05, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x53,
|
||||||
0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61,
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x13, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
|
||||||
0x6e, 0x74, 0x50, 0x68, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0f, 0x72,
|
0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x12, 0x1a, 0x2e,
|
||||||
0x65, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x20,
|
|
||||||
0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69,
|
|
||||||
0x70, 0x61, 0x6e, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71,
|
|
||||||
0x1a, 0x18, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74,
|
|
||||||
0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0f,
|
|
||||||
0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12,
|
|
||||||
0x1c, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63,
|
|
||||||
0x69, 0x70, 0x61, 0x6e, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e,
|
|
||||||
0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70,
|
0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70,
|
||||||
0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0f, 0x6c, 0x69, 0x73,
|
0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x70, 0x63, 0x6d, 0x43,
|
||||||
0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x12, 0x1a, 0x2e, 0x70,
|
0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50,
|
||||||
|
0x68, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f,
|
||||||
|
0x72, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x20, 0x2e, 0x70, 0x63,
|
||||||
|
0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e,
|
||||||
|
0x74, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e,
|
||||||
|
0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68,
|
||||||
|
0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0f, 0x72, 0x65, 0x70,
|
||||||
|
0x6f, 0x72, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x70,
|
||||||
0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61,
|
0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61,
|
||||||
0x6e, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f,
|
0x6e, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x70, 0x63, 0x6d,
|
||||||
0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x53, 0x65,
|
0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74,
|
||||||
0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x10, 0x6c,
|
0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0f, 0x6c, 0x69, 0x73, 0x74, 0x50, 0x61,
|
||||||
0x69, 0x73, 0x74, 0x50, 0x68, 0x79, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12,
|
0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43,
|
||||||
0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63,
|
0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x54,
|
||||||
0x69, 0x70, 0x61, 0x6e, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x63,
|
0x65, 0x6e, 0x61, 0x6e, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e,
|
||||||
0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63,
|
0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
|
||||||
0x69, 0x70, 0x61, 0x6e, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00,
|
0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x10, 0x6c, 0x69, 0x73, 0x74,
|
||||||
0x12, 0x53, 0x0a, 0x12, 0x6c, 0x69, 0x73, 0x74, 0x50, 0x68, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x72,
|
0x50, 0x68, 0x79, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x2e, 0x70,
|
||||||
0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65,
|
0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61,
|
||||||
0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x54, 0x65, 0x6e, 0x61,
|
0x6e, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f,
|
||||||
0x6e, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73,
|
0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61,
|
||||||
0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x52,
|
0x6e, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x53, 0x0a,
|
||||||
0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65,
|
0x12, 0x6c, 0x69, 0x73, 0x74, 0x50, 0x68, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
|
||||||
0x72, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72,
|
0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61,
|
||||||
0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x13, 0x2e, 0x70,
|
0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x1a,
|
||||||
0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73,
|
0x1f, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61,
|
||||||
0x70, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e,
|
0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x50, 0x68, 0x79, 0x52, 0x65, 0x73, 0x70,
|
||||||
0x74, 0x12, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61,
|
0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x54, 0x65,
|
||||||
0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x17, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65,
|
0x6e, 0x61, 0x6e, 0x74, 0x12, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54,
|
||||||
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22,
|
0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x13, 0x2e, 0x70, 0x63, 0x6d, 0x43,
|
||||||
0x00, 0x12, 0x3c, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15,
|
0x6f, 0x72, 0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00,
|
||||||
0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69,
|
0x12, 0x3c, 0x0a, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x13,
|
||||||
0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e,
|
0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49,
|
||||||
0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42,
|
0x6e, 0x66, 0x6f, 0x1a, 0x17, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69,
|
||||||
0x0a, 0x5a, 0x08, 0x2f, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x73, 0x74, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3c,
|
||||||
0x74, 0x6f, 0x33,
|
0x0a, 0x09, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x63,
|
||||||
|
0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52,
|
||||||
|
0x65, 0x71, 0x1a, 0x16, 0x2e, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70,
|
||||||
|
0x6c, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08,
|
||||||
|
0x2f, 0x70, 0x63, 0x6d, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -3055,7 +3105,7 @@ func file_pcmCore_proto_rawDescGZIP() []byte {
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_pcmCore_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
var file_pcmCore_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
var file_pcmCore_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
|
var file_pcmCore_proto_msgTypes = make([]protoimpl.MessageInfo, 29)
|
||||||
var file_pcmCore_proto_goTypes = []interface{}{
|
var file_pcmCore_proto_goTypes = []interface{}{
|
||||||
(MessageStatus)(0), // 0: pcmCore.MessageStatus
|
(MessageStatus)(0), // 0: pcmCore.MessageStatus
|
||||||
(*SyncInfoReq)(nil), // 1: pcmCore.SyncInfoReq
|
(*SyncInfoReq)(nil), // 1: pcmCore.SyncInfoReq
|
||||||
|
@ -3086,6 +3136,7 @@ var file_pcmCore_proto_goTypes = []interface{}{
|
||||||
(*ListTenantResp)(nil), // 26: pcmCore.ListTenantResp
|
(*ListTenantResp)(nil), // 26: pcmCore.ListTenantResp
|
||||||
(*ApplyListReq)(nil), // 27: pcmCore.ApplyListReq
|
(*ApplyListReq)(nil), // 27: pcmCore.ApplyListReq
|
||||||
(*ApplyListResp)(nil), // 28: pcmCore.ApplyListResp
|
(*ApplyListResp)(nil), // 28: pcmCore.ApplyListResp
|
||||||
|
(*ApplyInfo)(nil), // 29: pcmCore.ApplyInfo
|
||||||
}
|
}
|
||||||
var file_pcmCore_proto_depIdxs = []int32{
|
var file_pcmCore_proto_depIdxs = []int32{
|
||||||
5, // 0: pcmCore.SyncInfoReq.HpcInfoList:type_name -> pcmCore.HpcInfo
|
5, // 0: pcmCore.SyncInfoReq.HpcInfoList:type_name -> pcmCore.HpcInfo
|
||||||
|
@ -3104,33 +3155,34 @@ var file_pcmCore_proto_depIdxs = []int32{
|
||||||
18, // 13: pcmCore.ListParticipantAvailResp.ParticipantAvails:type_name -> pcmCore.ParticipantAvailReq
|
18, // 13: pcmCore.ListParticipantAvailResp.ParticipantAvails:type_name -> pcmCore.ParticipantAvailReq
|
||||||
23, // 14: pcmCore.ParticipantServiceResp.data:type_name -> pcmCore.ClientInfo
|
23, // 14: pcmCore.ParticipantServiceResp.data:type_name -> pcmCore.ClientInfo
|
||||||
24, // 15: pcmCore.ListTenantResp.tenantInfos:type_name -> pcmCore.TenantInfo
|
24, // 15: pcmCore.ListTenantResp.tenantInfos:type_name -> pcmCore.TenantInfo
|
||||||
1, // 16: pcmCore.pcmCore.SyncInfo:input_type -> pcmCore.SyncInfoReq
|
29, // 16: pcmCore.ApplyListResp.infoList:type_name -> pcmCore.ApplyInfo
|
||||||
7, // 17: pcmCore.pcmCore.InfoList:input_type -> pcmCore.InfoListReq
|
1, // 17: pcmCore.pcmCore.SyncInfo:input_type -> pcmCore.SyncInfoReq
|
||||||
14, // 18: pcmCore.participantService.registerParticipant:input_type -> pcmCore.ParticipantPhyReq
|
7, // 18: pcmCore.pcmCore.InfoList:input_type -> pcmCore.InfoListReq
|
||||||
17, // 19: pcmCore.participantService.reportHeartbeat:input_type -> pcmCore.ParticipantHeartbeatReq
|
14, // 19: pcmCore.participantService.registerParticipant:input_type -> pcmCore.ParticipantPhyReq
|
||||||
18, // 20: pcmCore.participantService.reportAvailable:input_type -> pcmCore.ParticipantAvailReq
|
17, // 20: pcmCore.participantService.reportHeartbeat:input_type -> pcmCore.ParticipantHeartbeatReq
|
||||||
9, // 21: pcmCore.participantService.listParticipant:input_type -> pcmCore.ParticipantTenant
|
18, // 21: pcmCore.participantService.reportAvailable:input_type -> pcmCore.ParticipantAvailReq
|
||||||
9, // 22: pcmCore.participantService.listPhyAvailable:input_type -> pcmCore.ParticipantTenant
|
9, // 22: pcmCore.participantService.listParticipant:input_type -> pcmCore.ParticipantTenant
|
||||||
9, // 23: pcmCore.participantService.listPhyInformation:input_type -> pcmCore.ParticipantTenant
|
9, // 23: pcmCore.participantService.listPhyAvailable:input_type -> pcmCore.ParticipantTenant
|
||||||
24, // 24: pcmCore.participantService.registerTenant:input_type -> pcmCore.TenantInfo
|
9, // 24: pcmCore.participantService.listPhyInformation:input_type -> pcmCore.ParticipantTenant
|
||||||
24, // 25: pcmCore.participantService.listTenant:input_type -> pcmCore.TenantInfo
|
24, // 25: pcmCore.participantService.registerTenant:input_type -> pcmCore.TenantInfo
|
||||||
27, // 26: pcmCore.participantService.applyList:input_type -> pcmCore.ApplyListReq
|
24, // 26: pcmCore.participantService.listTenant:input_type -> pcmCore.TenantInfo
|
||||||
6, // 27: pcmCore.pcmCore.SyncInfo:output_type -> pcmCore.SyncInfoResp
|
27, // 27: pcmCore.participantService.applyList:input_type -> pcmCore.ApplyListReq
|
||||||
8, // 28: pcmCore.pcmCore.InfoList:output_type -> pcmCore.InfoListResp
|
6, // 28: pcmCore.pcmCore.SyncInfo:output_type -> pcmCore.SyncInfoResp
|
||||||
12, // 29: pcmCore.participantService.registerParticipant:output_type -> pcmCore.ParticipantPhyResp
|
8, // 29: pcmCore.pcmCore.InfoList:output_type -> pcmCore.InfoListResp
|
||||||
11, // 30: pcmCore.participantService.reportHeartbeat:output_type -> pcmCore.HealthCheckResp
|
12, // 30: pcmCore.participantService.registerParticipant:output_type -> pcmCore.ParticipantPhyResp
|
||||||
21, // 31: pcmCore.participantService.reportAvailable:output_type -> pcmCore.ParticipantResp
|
11, // 31: pcmCore.participantService.reportHeartbeat:output_type -> pcmCore.HealthCheckResp
|
||||||
22, // 32: pcmCore.participantService.listParticipant:output_type -> pcmCore.ParticipantServiceResp
|
21, // 32: pcmCore.participantService.reportAvailable:output_type -> pcmCore.ParticipantResp
|
||||||
20, // 33: pcmCore.participantService.listPhyAvailable:output_type -> pcmCore.ListParticipantAvailResp
|
22, // 33: pcmCore.participantService.listParticipant:output_type -> pcmCore.ParticipantServiceResp
|
||||||
13, // 34: pcmCore.participantService.listPhyInformation:output_type -> pcmCore.ListParticipantPhyResp
|
20, // 34: pcmCore.participantService.listPhyAvailable:output_type -> pcmCore.ListParticipantAvailResp
|
||||||
25, // 35: pcmCore.participantService.registerTenant:output_type -> pcmCore.TenantResp
|
13, // 35: pcmCore.participantService.listPhyInformation:output_type -> pcmCore.ListParticipantPhyResp
|
||||||
26, // 36: pcmCore.participantService.listTenant:output_type -> pcmCore.ListTenantResp
|
25, // 36: pcmCore.participantService.registerTenant:output_type -> pcmCore.TenantResp
|
||||||
28, // 37: pcmCore.participantService.applyList:output_type -> pcmCore.ApplyListResp
|
26, // 37: pcmCore.participantService.listTenant:output_type -> pcmCore.ListTenantResp
|
||||||
27, // [27:38] is the sub-list for method output_type
|
28, // 38: pcmCore.participantService.applyList:output_type -> pcmCore.ApplyListResp
|
||||||
16, // [16:27] is the sub-list for method input_type
|
28, // [28:39] is the sub-list for method output_type
|
||||||
16, // [16:16] is the sub-list for extension type_name
|
17, // [17:28] is the sub-list for method input_type
|
||||||
16, // [16:16] is the sub-list for extension extendee
|
17, // [17:17] is the sub-list for extension type_name
|
||||||
0, // [0:16] is the sub-list for field type_name
|
17, // [17:17] is the sub-list for extension extendee
|
||||||
|
0, // [0:17] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_pcmCore_proto_init() }
|
func init() { file_pcmCore_proto_init() }
|
||||||
|
@ -3475,6 +3527,18 @@ func file_pcmCore_proto_init() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_pcmCore_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*ApplyInfo); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
|
@ -3482,7 +3546,7 @@ func file_pcmCore_proto_init() {
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_pcmCore_proto_rawDesc,
|
RawDescriptor: file_pcmCore_proto_rawDesc,
|
||||||
NumEnums: 1,
|
NumEnums: 1,
|
||||||
NumMessages: 28,
|
NumMessages: 29,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 2,
|
NumServices: 2,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue