pcm-coordinator/internal/participant/cloud/model.go

39 lines
1.2 KiB
Go

package cloud
type RespErr struct {
Code int32 `json:"code"`
Message string `json:"message"`
}
type Resp struct {
Code int32 `json:"code"`
Message string `json:"msg"`
Data interface{} `json:"data"`
}
type CreateParam struct {
ContainerGroupName string `json:"containerGroupName"`
Name string `json:"name"`
Image string `json:"image"`
Cpu string `json:"cpu,omitempty"`
Memory string `json:"memory,omitempty"`
Port int32 `json:"port,omitempty"`
NodePort int32 `json:"nodePort,omitempty"`
MountPath string `json:"mountPath,omitempty"`
Args []string `json:"args,omitempty"`
Envs []struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
} `json:"envs,omitempty"`
CreateParameter interface{} `json:"createParameter,omitempty"`
}
type DeleteParam struct {
Name string `json:"name,omitempty"`
DeleteParameter interface{} `json:"deleteParameter,omitempty"`
}
type GetParam struct {
Name string `json:"name,omitempty"`
GetParameter interface{} `json:"getParameter,omitempty"`
}