|
|
|
@@ -62,13 +62,7 @@ type CreateCloudJobReq struct { |
|
|
|
// TraceId string `json:"traceId"` |
|
|
|
// } |
|
|
|
type CreateCloudResp struct { |
|
|
|
Command interface{} `json:"Command"` |
|
|
|
Args []string `json:"args"` |
|
|
|
ContainerPorts map[string]int64 `json:"containerPorts"` |
|
|
|
Image string `json:"image"` |
|
|
|
Limits map[string]string `json:"limits"` |
|
|
|
Name string `json:"name"` |
|
|
|
TaskID TaskID `json:"taskId"` |
|
|
|
TaskID TaskID `json:"taskId"` |
|
|
|
} |
|
|
|
|
|
|
|
func (c *Client) CreateJob(req CreateCloudJobReq, token string) (*CreateCloudResp, error) { |
|
|
|
|