saastool增加docker/daemon模式

This commit is contained in:
algotao
2025-09-24 18:38:03 +08:00
parent a88c5c6e3f
commit d7ab7b5156
14 changed files with 1023 additions and 120 deletions

541
cmd.pb.go
View File

@@ -472,6 +472,8 @@ type SaasReq struct {
// *SaasReq_BindDelete
// *SaasReq_ScriptRun
// *SaasReq_ScriptUpdate
// *SaasReq_ExpList
// *SaasReq_ExpGet
Cmd isSaasReq_Cmd `protobuf_oneof:"cmd"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
@@ -640,6 +642,24 @@ func (x *SaasReq) GetScriptUpdate() *ScriptUpdate {
return nil
}
func (x *SaasReq) GetExpList() *ExpList {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_ExpList); ok {
return x.ExpList
}
}
return nil
}
func (x *SaasReq) GetExpGet() *ExpGet {
if x != nil {
if x, ok := x.Cmd.(*SaasReq_ExpGet); ok {
return x.ExpGet
}
}
return nil
}
type isSaasReq_Cmd interface {
isSaasReq_Cmd()
}
@@ -700,6 +720,14 @@ type SaasReq_ScriptUpdate struct {
ScriptUpdate *ScriptUpdate `protobuf:"bytes,91,opt,name=script_update,json=scriptUpdate,proto3,oneof"` // 脚本升级
}
type SaasReq_ExpList struct {
ExpList *ExpList `protobuf:"bytes,100,opt,name=exp_list,json=expList,proto3,oneof"` // 列出实验
}
type SaasReq_ExpGet struct {
ExpGet *ExpGet `protobuf:"bytes,101,opt,name=exp_get,json=expGet,proto3,oneof"` // 获取实验报表
}
func (*SaasReq_Info) isSaasReq_Cmd() {}
func (*SaasReq_Read) isSaasReq_Cmd() {}
@@ -728,6 +756,10 @@ func (*SaasReq_ScriptRun) isSaasReq_Cmd() {}
func (*SaasReq_ScriptUpdate) isSaasReq_Cmd() {}
func (*SaasReq_ExpList) isSaasReq_Cmd() {}
func (*SaasReq_ExpGet) isSaasReq_Cmd() {}
// Info 获取账号信息
type Info struct {
state protoimpl.MessageState `protogen:"open.v1"`
@@ -2024,6 +2056,80 @@ func (*ScriptUpdate) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{22}
}
// ExpList 列出实验
type ExpList struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExpList) Reset() {
*x = ExpList{}
mi := &file_cmd_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExpList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExpList) ProtoMessage() {}
func (x *ExpList) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[23]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExpList.ProtoReflect.Descriptor instead.
func (*ExpList) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{23}
}
// ExpGet 获取实验报表
type ExpGet struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExpGet) Reset() {
*x = ExpGet{}
mi := &file_cmd_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExpGet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExpGet) ProtoMessage() {}
func (x *ExpGet) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[24]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExpGet.ProtoReflect.Descriptor instead.
func (*ExpGet) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{24}
}
// SaasRes 命令返回
type SaasRes struct {
state protoimpl.MessageState `protogen:"open.v1"`
@@ -2044,6 +2150,8 @@ type SaasRes struct {
// *SaasRes_BindDeleteRes
// *SaasRes_ScriptRunRes
// *SaasRes_ScriptUpdateRes
// *SaasRes_ExpListRes
// *SaasRes_ExpGetRes
Res isSaasRes_Res `protobuf_oneof:"res"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
@@ -2051,7 +2159,7 @@ type SaasRes struct {
func (x *SaasRes) Reset() {
*x = SaasRes{}
mi := &file_cmd_proto_msgTypes[23]
mi := &file_cmd_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2063,7 +2171,7 @@ func (x *SaasRes) String() string {
func (*SaasRes) ProtoMessage() {}
func (x *SaasRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[23]
mi := &file_cmd_proto_msgTypes[25]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2076,7 +2184,7 @@ func (x *SaasRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use SaasRes.ProtoReflect.Descriptor instead.
func (*SaasRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{23}
return file_cmd_proto_rawDescGZIP(), []int{25}
}
func (x *SaasRes) GetCode() ErrorCode {
@@ -2217,6 +2325,24 @@ func (x *SaasRes) GetScriptUpdateRes() *ScriptUpdateRes {
return nil
}
func (x *SaasRes) GetExpListRes() *ExpListRes {
if x != nil {
if x, ok := x.Res.(*SaasRes_ExpListRes); ok {
return x.ExpListRes
}
}
return nil
}
func (x *SaasRes) GetExpGetRes() *ExpGetRes {
if x != nil {
if x, ok := x.Res.(*SaasRes_ExpGetRes); ok {
return x.ExpGetRes
}
}
return nil
}
type isSaasRes_Res interface {
isSaasRes_Res()
}
@@ -2273,6 +2399,14 @@ type SaasRes_ScriptUpdateRes struct {
ScriptUpdateRes *ScriptUpdateRes `protobuf:"bytes,91,opt,name=script_update_res,json=scriptUpdateRes,proto3,oneof"` // 升级脚本返回
}
type SaasRes_ExpListRes struct {
ExpListRes *ExpListRes `protobuf:"bytes,100,opt,name=exp_list_res,json=expListRes,proto3,oneof"` // 实验列表返回
}
type SaasRes_ExpGetRes struct {
ExpGetRes *ExpGetRes `protobuf:"bytes,101,opt,name=exp_get_res,json=expGetRes,proto3,oneof"` // 实验报表返回
}
func (*SaasRes_InfoRes) isSaasRes_Res() {}
func (*SaasRes_ReadRes) isSaasRes_Res() {}
@@ -2299,6 +2433,10 @@ func (*SaasRes_ScriptRunRes) isSaasRes_Res() {}
func (*SaasRes_ScriptUpdateRes) isSaasRes_Res() {}
func (*SaasRes_ExpListRes) isSaasRes_Res() {}
func (*SaasRes_ExpGetRes) isSaasRes_Res() {}
type DataSpace struct {
state protoimpl.MessageState `protogen:"open.v1"`
Did []string `protobuf:"bytes,1,rep,name=did,proto3" json:"did,omitempty"` // 设备ID区
@@ -2309,7 +2447,7 @@ type DataSpace struct {
func (x *DataSpace) Reset() {
*x = DataSpace{}
mi := &file_cmd_proto_msgTypes[24]
mi := &file_cmd_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2321,7 +2459,7 @@ func (x *DataSpace) String() string {
func (*DataSpace) ProtoMessage() {}
func (x *DataSpace) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[24]
mi := &file_cmd_proto_msgTypes[26]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2334,7 +2472,7 @@ func (x *DataSpace) ProtoReflect() protoreflect.Message {
// Deprecated: Use DataSpace.ProtoReflect.Descriptor instead.
func (*DataSpace) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{24}
return file_cmd_proto_rawDescGZIP(), []int{26}
}
func (x *DataSpace) GetDid() []string {
@@ -2362,7 +2500,7 @@ type InfoRes struct {
func (x *InfoRes) Reset() {
*x = InfoRes{}
mi := &file_cmd_proto_msgTypes[25]
mi := &file_cmd_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2374,7 +2512,7 @@ func (x *InfoRes) String() string {
func (*InfoRes) ProtoMessage() {}
func (x *InfoRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[25]
mi := &file_cmd_proto_msgTypes[27]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2387,7 +2525,7 @@ func (x *InfoRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use InfoRes.ProtoReflect.Descriptor instead.
func (*InfoRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{25}
return file_cmd_proto_rawDescGZIP(), []int{27}
}
func (x *InfoRes) GetDataspace() *DataSpace {
@@ -2416,7 +2554,7 @@ type ReadRes struct {
func (x *ReadRes) Reset() {
*x = ReadRes{}
mi := &file_cmd_proto_msgTypes[26]
mi := &file_cmd_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2428,7 +2566,7 @@ func (x *ReadRes) String() string {
func (*ReadRes) ProtoMessage() {}
func (x *ReadRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[26]
mi := &file_cmd_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2441,7 +2579,7 @@ func (x *ReadRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use ReadRes.ProtoReflect.Descriptor instead.
func (*ReadRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{26}
return file_cmd_proto_rawDescGZIP(), []int{28}
}
func (x *ReadRes) GetSuccCmdCount() uint32 {
@@ -2477,7 +2615,7 @@ type WriteRes struct {
func (x *WriteRes) Reset() {
*x = WriteRes{}
mi := &file_cmd_proto_msgTypes[27]
mi := &file_cmd_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2489,7 +2627,7 @@ func (x *WriteRes) String() string {
func (*WriteRes) ProtoMessage() {}
func (x *WriteRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[27]
mi := &file_cmd_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2502,7 +2640,7 @@ func (x *WriteRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use WriteRes.ProtoReflect.Descriptor instead.
func (*WriteRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{27}
return file_cmd_proto_rawDescGZIP(), []int{29}
}
func (x *WriteRes) GetFailedUserid() []string {
@@ -2528,7 +2666,7 @@ type ValueItem struct {
func (x *ValueItem) Reset() {
*x = ValueItem{}
mi := &file_cmd_proto_msgTypes[28]
mi := &file_cmd_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2540,7 +2678,7 @@ func (x *ValueItem) String() string {
func (*ValueItem) ProtoMessage() {}
func (x *ValueItem) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[28]
mi := &file_cmd_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2553,7 +2691,7 @@ func (x *ValueItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use ValueItem.ProtoReflect.Descriptor instead.
func (*ValueItem) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{28}
return file_cmd_proto_rawDescGZIP(), []int{30}
}
func (x *ValueItem) GetCmdIndex() uint32 {
@@ -2615,7 +2753,7 @@ type TaskListRes struct {
func (x *TaskListRes) Reset() {
*x = TaskListRes{}
mi := &file_cmd_proto_msgTypes[29]
mi := &file_cmd_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2627,7 +2765,7 @@ func (x *TaskListRes) String() string {
func (*TaskListRes) ProtoMessage() {}
func (x *TaskListRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[29]
mi := &file_cmd_proto_msgTypes[31]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2640,7 +2778,7 @@ func (x *TaskListRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use TaskListRes.ProtoReflect.Descriptor instead.
func (*TaskListRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{29}
return file_cmd_proto_rawDescGZIP(), []int{31}
}
func (x *TaskListRes) GetTasks() []*Task {
@@ -2660,7 +2798,7 @@ type TargetListRes struct {
func (x *TargetListRes) Reset() {
*x = TargetListRes{}
mi := &file_cmd_proto_msgTypes[30]
mi := &file_cmd_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2672,7 +2810,7 @@ func (x *TargetListRes) String() string {
func (*TargetListRes) ProtoMessage() {}
func (x *TargetListRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[30]
mi := &file_cmd_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2685,7 +2823,7 @@ func (x *TargetListRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use TargetListRes.ProtoReflect.Descriptor instead.
func (*TargetListRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{30}
return file_cmd_proto_rawDescGZIP(), []int{32}
}
func (x *TargetListRes) GetTargetList() map[string]*Binds {
@@ -2704,7 +2842,7 @@ type Binds struct {
func (x *Binds) Reset() {
*x = Binds{}
mi := &file_cmd_proto_msgTypes[31]
mi := &file_cmd_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2716,7 +2854,7 @@ func (x *Binds) String() string {
func (*Binds) ProtoMessage() {}
func (x *Binds) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[31]
mi := &file_cmd_proto_msgTypes[33]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2729,7 +2867,7 @@ func (x *Binds) ProtoReflect() protoreflect.Message {
// Deprecated: Use Binds.ProtoReflect.Descriptor instead.
func (*Binds) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{31}
return file_cmd_proto_rawDescGZIP(), []int{33}
}
func (x *Binds) GetBinds() []*Bind {
@@ -2753,7 +2891,7 @@ type Bind struct {
func (x *Bind) Reset() {
*x = Bind{}
mi := &file_cmd_proto_msgTypes[32]
mi := &file_cmd_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2765,7 +2903,7 @@ func (x *Bind) String() string {
func (*Bind) ProtoMessage() {}
func (x *Bind) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[32]
mi := &file_cmd_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2778,7 +2916,7 @@ func (x *Bind) ProtoReflect() protoreflect.Message {
// Deprecated: Use Bind.ProtoReflect.Descriptor instead.
func (*Bind) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{32}
return file_cmd_proto_rawDescGZIP(), []int{34}
}
func (x *Bind) GetBindId() int64 {
@@ -2828,7 +2966,7 @@ type BindSetRes struct {
func (x *BindSetRes) Reset() {
*x = BindSetRes{}
mi := &file_cmd_proto_msgTypes[33]
mi := &file_cmd_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2840,7 +2978,7 @@ func (x *BindSetRes) String() string {
func (*BindSetRes) ProtoMessage() {}
func (x *BindSetRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[33]
mi := &file_cmd_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2853,7 +2991,7 @@ func (x *BindSetRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use BindSetRes.ProtoReflect.Descriptor instead.
func (*BindSetRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{33}
return file_cmd_proto_rawDescGZIP(), []int{35}
}
func (x *BindSetRes) GetSuccessNum() int32 {
@@ -2889,7 +3027,7 @@ type BindDeleteRes struct {
func (x *BindDeleteRes) Reset() {
*x = BindDeleteRes{}
mi := &file_cmd_proto_msgTypes[34]
mi := &file_cmd_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2901,7 +3039,7 @@ func (x *BindDeleteRes) String() string {
func (*BindDeleteRes) ProtoMessage() {}
func (x *BindDeleteRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[34]
mi := &file_cmd_proto_msgTypes[36]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2914,7 +3052,7 @@ func (x *BindDeleteRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use BindDeleteRes.ProtoReflect.Descriptor instead.
func (*BindDeleteRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{34}
return file_cmd_proto_rawDescGZIP(), []int{36}
}
func (x *BindDeleteRes) GetSuccessNum() int32 {
@@ -2950,7 +3088,7 @@ type BindError struct {
func (x *BindError) Reset() {
*x = BindError{}
mi := &file_cmd_proto_msgTypes[35]
mi := &file_cmd_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2962,7 +3100,7 @@ func (x *BindError) String() string {
func (*BindError) ProtoMessage() {}
func (x *BindError) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[35]
mi := &file_cmd_proto_msgTypes[37]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2975,7 +3113,7 @@ func (x *BindError) ProtoReflect() protoreflect.Message {
// Deprecated: Use BindError.ProtoReflect.Descriptor instead.
func (*BindError) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{35}
return file_cmd_proto_rawDescGZIP(), []int{37}
}
func (x *BindError) GetBindId() int64 {
@@ -3012,7 +3150,7 @@ type ScriptRunRes struct {
func (x *ScriptRunRes) Reset() {
*x = ScriptRunRes{}
mi := &file_cmd_proto_msgTypes[36]
mi := &file_cmd_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3024,7 +3162,7 @@ func (x *ScriptRunRes) String() string {
func (*ScriptRunRes) ProtoMessage() {}
func (x *ScriptRunRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[36]
mi := &file_cmd_proto_msgTypes[38]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3037,7 +3175,7 @@ func (x *ScriptRunRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use ScriptRunRes.ProtoReflect.Descriptor instead.
func (*ScriptRunRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{36}
return file_cmd_proto_rawDescGZIP(), []int{38}
}
func (x *ScriptRunRes) GetPrintOutput() string {
@@ -3077,7 +3215,7 @@ type ScriptUpdateRes struct {
func (x *ScriptUpdateRes) Reset() {
*x = ScriptUpdateRes{}
mi := &file_cmd_proto_msgTypes[37]
mi := &file_cmd_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3089,7 +3227,7 @@ func (x *ScriptUpdateRes) String() string {
func (*ScriptUpdateRes) ProtoMessage() {}
func (x *ScriptUpdateRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[37]
mi := &file_cmd_proto_msgTypes[39]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3102,14 +3240,156 @@ func (x *ScriptUpdateRes) ProtoReflect() protoreflect.Message {
// Deprecated: Use ScriptUpdateRes.ProtoReflect.Descriptor instead.
func (*ScriptUpdateRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{37}
return file_cmd_proto_rawDescGZIP(), []int{39}
}
// ExpListRes 实验列表返回
type ExpListRes struct {
state protoimpl.MessageState `protogen:"open.v1"`
Buckets []*ExpBucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"` //实验桶
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExpListRes) Reset() {
*x = ExpListRes{}
mi := &file_cmd_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExpListRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExpListRes) ProtoMessage() {}
func (x *ExpListRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[40]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExpListRes.ProtoReflect.Descriptor instead.
func (*ExpListRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{40}
}
func (x *ExpListRes) GetBuckets() []*ExpBucket {
if x != nil {
return x.Buckets
}
return nil
}
type ExpBucket struct {
state protoimpl.MessageState `protogen:"open.v1"`
BucketId uint32 `protobuf:"varint,1,opt,name=bucket_id,json=bucketId,proto3" json:"bucket_id,omitempty"` //分桶号
PtExpId uint32 `protobuf:"varint,2,opt,name=pt_exp_id,json=ptExpId,proto3" json:"pt_exp_id,omitempty"` //平台实验ID
Percent uint32 `protobuf:"varint,3,opt,name=percent,proto3" json:"percent,omitempty"` //流量百分比
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExpBucket) Reset() {
*x = ExpBucket{}
mi := &file_cmd_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExpBucket) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExpBucket) ProtoMessage() {}
func (x *ExpBucket) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[41]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExpBucket.ProtoReflect.Descriptor instead.
func (*ExpBucket) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{41}
}
func (x *ExpBucket) GetBucketId() uint32 {
if x != nil {
return x.BucketId
}
return 0
}
func (x *ExpBucket) GetPtExpId() uint32 {
if x != nil {
return x.PtExpId
}
return 0
}
func (x *ExpBucket) GetPercent() uint32 {
if x != nil {
return x.Percent
}
return 0
}
// ExpGetRes 实验报表返回
type ExpGetRes struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExpGetRes) Reset() {
*x = ExpGetRes{}
mi := &file_cmd_proto_msgTypes[42]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExpGetRes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExpGetRes) ProtoMessage() {}
func (x *ExpGetRes) ProtoReflect() protoreflect.Message {
mi := &file_cmd_proto_msgTypes[42]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExpGetRes.ProtoReflect.Descriptor instead.
func (*ExpGetRes) Descriptor() ([]byte, []int) {
return file_cmd_proto_rawDescGZIP(), []int{42}
}
var File_cmd_proto protoreflect.FileDescriptor
const file_cmd_proto_rawDesc = "" +
"\n" +
"\tcmd.proto\x12\asaasapi\"\xcc\x05\n" +
"\tcmd.proto\x12\asaasapi\"\xa7\x06\n" +
"\aSaasReq\x12#\n" +
"\x04info\x18\x05 \x01(\v2\r.saasapi.InfoH\x00R\x04info\x12#\n" +
"\x04read\x18\n" +
@@ -3130,7 +3410,9 @@ const file_cmd_proto_rawDesc = "" +
"bindDelete\x123\n" +
"\n" +
"script_run\x18Z \x01(\v2\x12.saasapi.ScriptRunH\x00R\tscriptRun\x12<\n" +
"\rscript_update\x18[ \x01(\v2\x15.saasapi.ScriptUpdateH\x00R\fscriptUpdateB\x05\n" +
"\rscript_update\x18[ \x01(\v2\x15.saasapi.ScriptUpdateH\x00R\fscriptUpdate\x12-\n" +
"\bexp_list\x18d \x01(\v2\x10.saasapi.ExpListH\x00R\aexpList\x12*\n" +
"\aexp_get\x18e \x01(\v2\x0f.saasapi.ExpGetH\x00R\x06expGetB\x05\n" +
"\x03cmd\"\x06\n" +
"\x04Info\"q\n" +
"\x04Read\x12!\n" +
@@ -3232,7 +3514,9 @@ const file_cmd_proto_rawDesc = "" +
"\x05appid\x18\x03 \x01(\tR\x05appid\x12#\n" +
"\rserver_openid\x18\x04 \x01(\tR\fserverOpenid\x12\x1b\n" +
"\x02os\x18\x05 \x01(\x0e2\v.saasapi.OSR\x02os\"\x0e\n" +
"\fScriptUpdate\"\xba\x06\n" +
"\fScriptUpdate\"\t\n" +
"\aExpList\"\b\n" +
"\x06ExpGet\"\xa9\a\n" +
"\aSaasRes\x12&\n" +
"\x04code\x18\x01 \x01(\x0e2\x12.saasapi.ErrorCodeR\x04code\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\x12-\n" +
@@ -3251,7 +3535,10 @@ const file_cmd_proto_rawDesc = "" +
"bindSetRes\x12@\n" +
"\x0fbind_delete_res\x18> \x01(\v2\x16.saasapi.BindDeleteResH\x00R\rbindDeleteRes\x12=\n" +
"\x0escript_run_res\x18Z \x01(\v2\x15.saasapi.ScriptRunResH\x00R\fscriptRunRes\x12F\n" +
"\x11script_update_res\x18[ \x01(\v2\x18.saasapi.ScriptUpdateResH\x00R\x0fscriptUpdateResB\x05\n" +
"\x11script_update_res\x18[ \x01(\v2\x18.saasapi.ScriptUpdateResH\x00R\x0fscriptUpdateRes\x127\n" +
"\fexp_list_res\x18d \x01(\v2\x13.saasapi.ExpListResH\x00R\n" +
"expListRes\x124\n" +
"\vexp_get_res\x18e \x01(\v2\x12.saasapi.ExpGetResH\x00R\texpGetResB\x05\n" +
"\x03res\"1\n" +
"\tDataSpace\x12\x10\n" +
"\x03did\x18\x01 \x03(\tR\x03did\x12\x12\n" +
@@ -3311,7 +3598,15 @@ const file_cmd_proto_rawDesc = "" +
"\ferror_output\x18\x02 \x01(\tR\verrorOutput\x12%\n" +
"\x0etargets_output\x18\x03 \x01(\tR\rtargetsOutput\x12#\n" +
"\rdataspace_out\x18\x04 \x01(\tR\fdataspaceOut\"\x11\n" +
"\x0fScriptUpdateRes*=\n" +
"\x0fScriptUpdateRes\":\n" +
"\n" +
"ExpListRes\x12,\n" +
"\abuckets\x18\x01 \x03(\v2\x12.saasapi.ExpBucketR\abuckets\"^\n" +
"\tExpBucket\x12\x1b\n" +
"\tbucket_id\x18\x01 \x01(\rR\bbucketId\x12\x1a\n" +
"\tpt_exp_id\x18\x02 \x01(\rR\aptExpId\x12\x18\n" +
"\apercent\x18\x03 \x01(\rR\apercent\"\v\n" +
"\tExpGetRes*=\n" +
"\bBindType\x12\x13\n" +
"\x0fUnknownBindType\x10\x00\x12\r\n" +
"\tAdgroupId\x10\x01\x12\r\n" +
@@ -3388,7 +3683,7 @@ func file_cmd_proto_rawDescGZIP() []byte {
}
var file_cmd_proto_enumTypes = make([]protoimpl.EnumInfo, 7)
var file_cmd_proto_msgTypes = make([]protoimpl.MessageInfo, 39)
var file_cmd_proto_msgTypes = make([]protoimpl.MessageInfo, 44)
var file_cmd_proto_goTypes = []any{
(BindType)(0), // 0: saasapi.BindType
(BindSourceType)(0), // 1: saasapi.BindSourceType
@@ -3420,22 +3715,27 @@ var file_cmd_proto_goTypes = []any{
(*BindDelete)(nil), // 27: saasapi.BindDelete
(*ScriptRun)(nil), // 28: saasapi.ScriptRun
(*ScriptUpdate)(nil), // 29: saasapi.ScriptUpdate
(*SaasRes)(nil), // 30: saasapi.SaasRes
(*DataSpace)(nil), // 31: saasapi.DataSpace
(*InfoRes)(nil), // 32: saasapi.InfoRes
(*ReadRes)(nil), // 33: saasapi.ReadRes
(*WriteRes)(nil), // 34: saasapi.WriteRes
(*ValueItem)(nil), // 35: saasapi.ValueItem
(*TaskListRes)(nil), // 36: saasapi.TaskListRes
(*TargetListRes)(nil), // 37: saasapi.TargetListRes
(*Binds)(nil), // 38: saasapi.Binds
(*Bind)(nil), // 39: saasapi.Bind
(*BindSetRes)(nil), // 40: saasapi.BindSetRes
(*BindDeleteRes)(nil), // 41: saasapi.BindDeleteRes
(*BindError)(nil), // 42: saasapi.BindError
(*ScriptRunRes)(nil), // 43: saasapi.ScriptRunRes
(*ScriptUpdateRes)(nil), // 44: saasapi.ScriptUpdateRes
nil, // 45: saasapi.TargetListRes.TargetListEntry
(*ExpList)(nil), // 30: saasapi.ExpList
(*ExpGet)(nil), // 31: saasapi.ExpGet
(*SaasRes)(nil), // 32: saasapi.SaasRes
(*DataSpace)(nil), // 33: saasapi.DataSpace
(*InfoRes)(nil), // 34: saasapi.InfoRes
(*ReadRes)(nil), // 35: saasapi.ReadRes
(*WriteRes)(nil), // 36: saasapi.WriteRes
(*ValueItem)(nil), // 37: saasapi.ValueItem
(*TaskListRes)(nil), // 38: saasapi.TaskListRes
(*TargetListRes)(nil), // 39: saasapi.TargetListRes
(*Binds)(nil), // 40: saasapi.Binds
(*Bind)(nil), // 41: saasapi.Bind
(*BindSetRes)(nil), // 42: saasapi.BindSetRes
(*BindDeleteRes)(nil), // 43: saasapi.BindDeleteRes
(*BindError)(nil), // 44: saasapi.BindError
(*ScriptRunRes)(nil), // 45: saasapi.ScriptRunRes
(*ScriptUpdateRes)(nil), // 46: saasapi.ScriptUpdateRes
(*ExpListRes)(nil), // 47: saasapi.ExpListRes
(*ExpBucket)(nil), // 48: saasapi.ExpBucket
(*ExpGetRes)(nil), // 49: saasapi.ExpGetRes
nil, // 50: saasapi.TargetListRes.TargetListEntry
}
var file_cmd_proto_depIdxs = []int32{
8, // 0: saasapi.SaasReq.info:type_name -> saasapi.Info
@@ -3452,53 +3752,58 @@ var file_cmd_proto_depIdxs = []int32{
27, // 11: saasapi.SaasReq.bind_delete:type_name -> saasapi.BindDelete
28, // 12: saasapi.SaasReq.script_run:type_name -> saasapi.ScriptRun
29, // 13: saasapi.SaasReq.script_update:type_name -> saasapi.ScriptUpdate
10, // 14: saasapi.Read.read_items:type_name -> saasapi.ReadItem
12, // 15: saasapi.Write.write_items:type_name -> saasapi.WriteItem
13, // 16: saasapi.WriteItem.write_bytes:type_name -> saasapi.Bytes
14, // 17: saasapi.WriteItem.write_uint32s:type_name -> saasapi.Uint32s
15, // 18: saasapi.WriteItem.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
16, // 19: saasapi.FlagsWithExpire.flags_with_expire:type_name -> saasapi.FlagWithExpire
13, // 20: saasapi.ColumnWrite.write_bytes:type_name -> saasapi.Bytes
14, // 21: saasapi.ColumnWrite.write_uint32s:type_name -> saasapi.Uint32s
15, // 22: saasapi.ColumnWrite.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
23, // 23: saasapi.Task.task_file_infos:type_name -> saasapi.FileInfo
4, // 24: saasapi.Task.status:type_name -> saasapi.TaskStatus
4, // 25: saasapi.TaskList.status_filter:type_name -> saasapi.TaskStatus
24, // 26: saasapi.FileInfo.file_blocks:type_name -> saasapi.FileBlock
39, // 27: saasapi.BindSet.binds:type_name -> saasapi.Bind
39, // 28: saasapi.BindDelete.binds:type_name -> saasapi.Bind
5, // 29: saasapi.ScriptRun.os:type_name -> saasapi.OS
2, // 30: saasapi.SaasRes.code:type_name -> saasapi.ErrorCode
32, // 31: saasapi.SaasRes.info_res:type_name -> saasapi.InfoRes
33, // 32: saasapi.SaasRes.read_res:type_name -> saasapi.ReadRes
34, // 33: saasapi.SaasRes.write_res:type_name -> saasapi.WriteRes
18, // 34: saasapi.SaasRes.task_create_res:type_name -> saasapi.Task
36, // 35: saasapi.SaasRes.task_list_res:type_name -> saasapi.TaskListRes
18, // 36: saasapi.SaasRes.task_run_res:type_name -> saasapi.Task
18, // 37: saasapi.SaasRes.task_delete_res:type_name -> saasapi.Task
18, // 38: saasapi.SaasRes.task_info_res:type_name -> saasapi.Task
37, // 39: saasapi.SaasRes.target_list_res:type_name -> saasapi.TargetListRes
40, // 40: saasapi.SaasRes.bind_set_res:type_name -> saasapi.BindSetRes
41, // 41: saasapi.SaasRes.bind_delete_res:type_name -> saasapi.BindDeleteRes
43, // 42: saasapi.SaasRes.script_run_res:type_name -> saasapi.ScriptRunRes
44, // 43: saasapi.SaasRes.script_update_res:type_name -> saasapi.ScriptUpdateRes
31, // 44: saasapi.InfoRes.dataspace:type_name -> saasapi.DataSpace
35, // 45: saasapi.ReadRes.cmd_res:type_name -> saasapi.ValueItem
3, // 46: saasapi.ValueItem.cmd_code:type_name -> saasapi.CmdErrorCode
16, // 47: saasapi.ValueItem.flags_with_expire:type_name -> saasapi.FlagWithExpire
18, // 48: saasapi.TaskListRes.tasks:type_name -> saasapi.Task
45, // 49: saasapi.TargetListRes.target_list:type_name -> saasapi.TargetListRes.TargetListEntry
39, // 50: saasapi.Binds.binds:type_name -> saasapi.Bind
0, // 51: saasapi.Bind.bind_type:type_name -> saasapi.BindType
1, // 52: saasapi.Bind.bind_source:type_name -> saasapi.BindSourceType
42, // 53: saasapi.BindSetRes.errors:type_name -> saasapi.BindError
42, // 54: saasapi.BindDeleteRes.errors:type_name -> saasapi.BindError
38, // 55: saasapi.TargetListRes.TargetListEntry.value:type_name -> saasapi.Binds
56, // [56:56] is the sub-list for method output_type
56, // [56:56] is the sub-list for method input_type
56, // [56:56] is the sub-list for extension type_name
56, // [56:56] is the sub-list for extension extendee
0, // [0:56] is the sub-list for field type_name
30, // 14: saasapi.SaasReq.exp_list:type_name -> saasapi.ExpList
31, // 15: saasapi.SaasReq.exp_get:type_name -> saasapi.ExpGet
10, // 16: saasapi.Read.read_items:type_name -> saasapi.ReadItem
12, // 17: saasapi.Write.write_items:type_name -> saasapi.WriteItem
13, // 18: saasapi.WriteItem.write_bytes:type_name -> saasapi.Bytes
14, // 19: saasapi.WriteItem.write_uint32s:type_name -> saasapi.Uint32s
15, // 20: saasapi.WriteItem.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
16, // 21: saasapi.FlagsWithExpire.flags_with_expire:type_name -> saasapi.FlagWithExpire
13, // 22: saasapi.ColumnWrite.write_bytes:type_name -> saasapi.Bytes
14, // 23: saasapi.ColumnWrite.write_uint32s:type_name -> saasapi.Uint32s
15, // 24: saasapi.ColumnWrite.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
23, // 25: saasapi.Task.task_file_infos:type_name -> saasapi.FileInfo
4, // 26: saasapi.Task.status:type_name -> saasapi.TaskStatus
4, // 27: saasapi.TaskList.status_filter:type_name -> saasapi.TaskStatus
24, // 28: saasapi.FileInfo.file_blocks:type_name -> saasapi.FileBlock
41, // 29: saasapi.BindSet.binds:type_name -> saasapi.Bind
41, // 30: saasapi.BindDelete.binds:type_name -> saasapi.Bind
5, // 31: saasapi.ScriptRun.os:type_name -> saasapi.OS
2, // 32: saasapi.SaasRes.code:type_name -> saasapi.ErrorCode
34, // 33: saasapi.SaasRes.info_res:type_name -> saasapi.InfoRes
35, // 34: saasapi.SaasRes.read_res:type_name -> saasapi.ReadRes
36, // 35: saasapi.SaasRes.write_res:type_name -> saasapi.WriteRes
18, // 36: saasapi.SaasRes.task_create_res:type_name -> saasapi.Task
38, // 37: saasapi.SaasRes.task_list_res:type_name -> saasapi.TaskListRes
18, // 38: saasapi.SaasRes.task_run_res:type_name -> saasapi.Task
18, // 39: saasapi.SaasRes.task_delete_res:type_name -> saasapi.Task
18, // 40: saasapi.SaasRes.task_info_res:type_name -> saasapi.Task
39, // 41: saasapi.SaasRes.target_list_res:type_name -> saasapi.TargetListRes
42, // 42: saasapi.SaasRes.bind_set_res:type_name -> saasapi.BindSetRes
43, // 43: saasapi.SaasRes.bind_delete_res:type_name -> saasapi.BindDeleteRes
45, // 44: saasapi.SaasRes.script_run_res:type_name -> saasapi.ScriptRunRes
46, // 45: saasapi.SaasRes.script_update_res:type_name -> saasapi.ScriptUpdateRes
47, // 46: saasapi.SaasRes.exp_list_res:type_name -> saasapi.ExpListRes
49, // 47: saasapi.SaasRes.exp_get_res:type_name -> saasapi.ExpGetRes
33, // 48: saasapi.InfoRes.dataspace:type_name -> saasapi.DataSpace
37, // 49: saasapi.ReadRes.cmd_res:type_name -> saasapi.ValueItem
3, // 50: saasapi.ValueItem.cmd_code:type_name -> saasapi.CmdErrorCode
16, // 51: saasapi.ValueItem.flags_with_expire:type_name -> saasapi.FlagWithExpire
18, // 52: saasapi.TaskListRes.tasks:type_name -> saasapi.Task
50, // 53: saasapi.TargetListRes.target_list:type_name -> saasapi.TargetListRes.TargetListEntry
41, // 54: saasapi.Binds.binds:type_name -> saasapi.Bind
0, // 55: saasapi.Bind.bind_type:type_name -> saasapi.BindType
1, // 56: saasapi.Bind.bind_source:type_name -> saasapi.BindSourceType
44, // 57: saasapi.BindSetRes.errors:type_name -> saasapi.BindError
44, // 58: saasapi.BindDeleteRes.errors:type_name -> saasapi.BindError
48, // 59: saasapi.ExpListRes.buckets:type_name -> saasapi.ExpBucket
40, // 60: saasapi.TargetListRes.TargetListEntry.value:type_name -> saasapi.Binds
61, // [61:61] is the sub-list for method output_type
61, // [61:61] is the sub-list for method input_type
61, // [61:61] is the sub-list for extension type_name
61, // [61:61] is the sub-list for extension extendee
0, // [0:61] is the sub-list for field type_name
}
func init() { file_cmd_proto_init() }
@@ -3521,8 +3826,10 @@ func file_cmd_proto_init() {
(*SaasReq_BindDelete)(nil),
(*SaasReq_ScriptRun)(nil),
(*SaasReq_ScriptUpdate)(nil),
(*SaasReq_ExpList)(nil),
(*SaasReq_ExpGet)(nil),
}
file_cmd_proto_msgTypes[23].OneofWrappers = []any{
file_cmd_proto_msgTypes[25].OneofWrappers = []any{
(*SaasRes_InfoRes)(nil),
(*SaasRes_ReadRes)(nil),
(*SaasRes_WriteRes)(nil),
@@ -3536,6 +3843,8 @@ func file_cmd_proto_init() {
(*SaasRes_BindDeleteRes)(nil),
(*SaasRes_ScriptRunRes)(nil),
(*SaasRes_ScriptUpdateRes)(nil),
(*SaasRes_ExpListRes)(nil),
(*SaasRes_ExpGetRes)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
@@ -3543,7 +3852,7 @@ func file_cmd_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_proto_rawDesc), len(file_cmd_proto_rawDesc)),
NumEnums: 7,
NumMessages: 39,
NumMessages: 44,
NumExtensions: 0,
NumServices: 0,
},