296 lines
11 KiB
Go
296 lines
11 KiB
Go
package ac
|
|
|
|
type CenterResp struct {
|
|
Code string `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
IngressUrls []interface{} `json:"ingressUrls"`
|
|
EfileUrls []struct {
|
|
NodeName string `json:"nodeName"`
|
|
Enable string `json:"enable"`
|
|
FastTransEnable string `json:"fastTransEnable"`
|
|
UdpPort string `json:"udpPort"`
|
|
Version string `json:"version"`
|
|
Url string `json:"url"`
|
|
AppId string `json:"appId,omitempty"`
|
|
AppSecret string `json:"appSecret,omitempty"`
|
|
IsManagerNode string `json:"isManagerNode,omitempty"`
|
|
} `json:"efileUrls"`
|
|
EshellUrls []struct {
|
|
Enable string `json:"enable"`
|
|
Version string `json:"version"`
|
|
Url string `json:"url"`
|
|
NodeName string `json:"nodeName,omitempty"`
|
|
AppId string `json:"appId,omitempty"`
|
|
AppSecret string `json:"appSecret,omitempty"`
|
|
FastTransEnable string `json:"fastTransEnable,omitempty"`
|
|
UdpPort string `json:"udpPort,omitempty"`
|
|
IsManagerNode string `json:"isManagerNode,omitempty"`
|
|
} `json:"eshellUrls"`
|
|
HpcUrls []struct {
|
|
Enable string `json:"enable"`
|
|
IsManagerNode string `json:"isManagerNode"`
|
|
Version string `json:"version"`
|
|
Url string `json:"url"`
|
|
} `json:"hpcUrls"`
|
|
AiUrls []struct {
|
|
Enable string `json:"enable"`
|
|
Version string `json:"version"`
|
|
Url string `json:"url"`
|
|
} `json:"aiUrls"`
|
|
EshellSshHosts []struct {
|
|
Enable string `json:"enable"`
|
|
Url string `json:"url"`
|
|
NodeName string `json:"nodeName,omitempty"`
|
|
AppId string `json:"appId,omitempty"`
|
|
AppSecret string `json:"appSecret,omitempty"`
|
|
FastTransEnable string `json:"fastTransEnable,omitempty"`
|
|
UdpPort string `json:"udpPort,omitempty"`
|
|
IsManagerNode string `json:"isManagerNode,omitempty"`
|
|
Version string `json:"version,omitempty"`
|
|
} `json:"eshellSshHosts"`
|
|
InternetSshHosts []struct {
|
|
LimitState string `json:"limitState"`
|
|
Url string `json:"url"`
|
|
} `json:"internetSshHosts"`
|
|
ClusterUserInfo struct {
|
|
UserName string `json:"userName"`
|
|
HomePath string `json:"homePath"`
|
|
} `json:"clusterUserInfo"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type TokenResp struct {
|
|
Code string `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data []struct {
|
|
ClusterId string `json:"clusterId"`
|
|
ClusterName string `json:"clusterName"`
|
|
Token string `json:"token"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type QuotaResp struct {
|
|
Code string `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data struct {
|
|
UserName interface{} `json:"userName"`
|
|
AccountName interface{} `json:"accountName"`
|
|
UserMaxCpu int `json:"userMaxCpu"`
|
|
UserMaxDcu int `json:"userMaxDcu"`
|
|
UserMaxGpu int `json:"userMaxGpu"`
|
|
UserMaxMlu int `json:"userMaxMlu"`
|
|
UserMaxMem int `json:"userMaxMem"`
|
|
UserMaxNode int `json:"userMaxNode"`
|
|
UserMaxSubmitJob int `json:"userMaxSubmitJob"`
|
|
UserMaxRunJob int `json:"userMaxRunJob"`
|
|
AccountMaxCpu int `json:"accountMaxCpu"`
|
|
AccountMaxDcu int `json:"accountMaxDcu"`
|
|
AccountMaxGpu int `json:"accountMaxGpu"`
|
|
AccountMaxMlu int `json:"accountMaxMlu"`
|
|
AccountMaxMem int `json:"accountMaxMem"`
|
|
AccountMaxNode int `json:"accountMaxNode"`
|
|
AccountMaxSubmitJob int `json:"accountMaxSubmitJob"`
|
|
AccountMaxRunJob int `json:"accountMaxRunJob"`
|
|
UserMinCpu int `json:"userMinCpu"`
|
|
UserMinNode int `json:"userMinNode"`
|
|
MaxWallTime int `json:"maxWallTime"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type ClusterResp struct {
|
|
Code string `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data []struct {
|
|
JobManagerAddr string `json:"JobManagerAddr"`
|
|
JobManagerType string `json:"JobManagerType"`
|
|
Id int `json:"id"`
|
|
Text string `json:"text"`
|
|
JobManagerPort string `json:"JobManagerPort"`
|
|
} `json:"data"`
|
|
}
|
|
type ResourceGroupResp struct {
|
|
Code string `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data struct {
|
|
Dcu []string `json:"dcu"`
|
|
Cpu []string `json:"cpu"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type ParastorQuota struct {
|
|
Code string `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data []struct {
|
|
Username interface{} `json:"username"`
|
|
Path string `json:"path"`
|
|
Threshold int `json:"threshold"`
|
|
Usage float64 `json:"usage"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type ResourceResp struct {
|
|
Code string `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data struct {
|
|
Id interface{} `json:"id"`
|
|
CpuNumber int `json:"cpuNumber"`
|
|
MluLimits int `json:"mluLimits"`
|
|
DcuLimits int `json:"dcuLimits"`
|
|
NvLimits int `json:"nvLimits"`
|
|
GpuNumber int `json:"gpuNumber"`
|
|
MemorySize int `json:"memorySize"`
|
|
ResourceGroup string `json:"resourceGroup"`
|
|
UserName interface{} `json:"userName"`
|
|
NodeNumber int `json:"nodeNumber"`
|
|
MaxTime string `json:"maxTime"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type TokenState struct {
|
|
Msg string `json:"msg"`
|
|
Code string `json:"code"`
|
|
Data string `json:"data"`
|
|
}
|
|
|
|
type GroupMembers struct {
|
|
Code string `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data []struct {
|
|
AccountId string `json:"accountId"`
|
|
AccountName string `json:"accountName"`
|
|
GroupDisplayName string `json:"groupDisplayName"`
|
|
GroupId string `json:"groupId"`
|
|
GroupRole string `json:"groupRole"`
|
|
GroupUsersInfos []struct {
|
|
UserId string `json:"userId"`
|
|
UserName string `json:"userName"`
|
|
ClusterId string `json:"clusterId"`
|
|
ClusterUserName string `json:"clusterUserName"`
|
|
} `json:"groupUsersInfos"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type QueueNamesResp struct {
|
|
Code string `json:"code"`
|
|
Msg string `json:"msg"`
|
|
Data []struct {
|
|
QueuePriority int `json:"queuePriority"`
|
|
QueFreeNcpus string `json:"queFreeNcpus"`
|
|
QueNodes string `json:"queNodes"`
|
|
QueNcpus string `json:"queNcpus"`
|
|
QueMaxNgpus string `json:"queMaxNgpus"`
|
|
QueMaxPPN string `json:"queMaxPPN"`
|
|
QueChargeRate string `json:"queChargeRate"`
|
|
QueMaxNcpus string `json:"queMaxNcpus"`
|
|
AclHosts string `json:"aclHosts"`
|
|
QueMaxNdcus string `json:"queMaxNdcus"`
|
|
QueueName string `json:"queueName"`
|
|
QueMaxNmlus string `json:"queMaxNmlus"`
|
|
QueFreeNodes string `json:"queFreeNodes"`
|
|
QueMaxNodect string `json:"queMaxNodect"`
|
|
QueMaxGpuPN string `json:"queMaxGpuPN"`
|
|
Id string `json:"id"`
|
|
Text string `json:"text"`
|
|
QueMaxWalltime string `json:"queMaxWalltime"`
|
|
QueMaxDcuPN string `json:"queMaxDcuPN"`
|
|
QueueEnabled bool `json:"queueEnabled"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type GetUserInfoResp struct {
|
|
Code string `json:"code,omitempty"`
|
|
Msg string `json:"msg,omitempty"`
|
|
Data *GetUserInfoData `json:"data,omitempty"`
|
|
}
|
|
|
|
type GetUserInfoData struct {
|
|
Country string `json:"country,omitempty"`
|
|
Language string `json:"language,omitempty"`
|
|
TimeZone string `json:"timeZone,omitempty"`
|
|
Address string `json:"address,omitempty"`
|
|
FullName string `json:"fullName,omitempty"`
|
|
UserName string `json:"userName,omitempty"`
|
|
ComputerCenter string `json:"computerCenter,omitempty"`
|
|
AccountName string `json:"accountName,omitempty"`
|
|
AccountStatus string `json:"accountStatus,omitempty"`
|
|
AccountBalance string `json:"accountBalance,omitempty"`
|
|
}
|
|
|
|
type QueueReq struct {
|
|
User string `json:"user,omitempty"`
|
|
StrJobManagerID string `json:"strJobManagerID,omitempty"`
|
|
}
|
|
|
|
type UserQuotasLimitResp struct {
|
|
Code string `json:"code,omitempty"`
|
|
Msg string `json:"msg,omitempty"`
|
|
Data *UserQuotasLimitData `json:"data,omitempty"`
|
|
}
|
|
|
|
type UserQuotasLimitData struct {
|
|
UserName string `json:"userName,omitempty"`
|
|
AccountName string `json:"accountName,omitempty"`
|
|
UserMaxCpu int64 `json:"userMaxCpu,omitempty"`
|
|
UserMaxDcu int64 `json:"userMaxDcu,omitempty"`
|
|
UserMaxGpu int64 `json:"userMaxGpu,omitempty"`
|
|
UserMaxMlu int64 `json:"userMaxMlu,omitempty"`
|
|
UserMaxMem int64 `json:"userMaxMem,omitempty"`
|
|
UserMaxNode int64 `json:"userMaxNode,omitempty"`
|
|
UserMaxSubmitJob int64 `json:"userMaxSubmitJob,omitempty"`
|
|
UserMaxRunJob int64 `json:"userMaxRunJob,omitempty"`
|
|
AccountMaxCpu int64 `json:"accountMaxCpu,omitempty"`
|
|
AccountMaxDcu int64 `json:"accountMaxDcu,omitempty"`
|
|
AccountMaxGpu int64 `json:"accountMaxGpu,omitempty"`
|
|
AccountMaxMlu int64 `json:"accountMaxMlu,omitempty"`
|
|
AccountMaxMem int64 `json:"accountMaxMem,omitempty"`
|
|
AccountMaxNode int64 `json:"accountMaxNode,omitempty"`
|
|
AccountMaxSubmitJob int64 `json:"accountMaxSubmitJob,omitempty"`
|
|
AccountMaxRunJob int64 `json:"accountMaxRunJob,omitempty"`
|
|
UserMinCpu int64 `json:"userMinCpu,omitempty"`
|
|
UserMinNode int64 `json:"userMinNode,omitempty"`
|
|
MaxWallTime int64 `json:"maxWallTime,omitempty"`
|
|
}
|
|
|
|
type GetNodeResourcesResp struct {
|
|
Code string `json:"code,omitempty"`
|
|
Msg string `json:"msg,omitempty"`
|
|
Data *GetNodeResourcesData `json:"data,omitempty"`
|
|
}
|
|
|
|
type GetNodeResourcesData struct {
|
|
Id string `json:"id,omitempty"`
|
|
CpuNumber int64 `json:"cpuNumber,omitempty"`
|
|
MluLimits int64 `json:"mluLimits,omitempty"`
|
|
DcuLimits int64 `json:"dcuLimits,omitempty"`
|
|
NvLimits int64 `json:"nvLimits,omitempty"`
|
|
GpuNumber int64 `json:"gpuNumber,omitempty"`
|
|
MemorySize int64 `json:"memorySize,omitempty"`
|
|
ResourceGroup string `json:"resourceGroup,omitempty"`
|
|
UserName string `json:"userName,omitempty"`
|
|
NodeNumber int64 `json:"nodeNumber,omitempty"`
|
|
MaxTime string `json:"maxTime,omitempty"`
|
|
}
|
|
|
|
type GetMemberJobsResp struct {
|
|
Code string `json:"code,omitempty"`
|
|
Msg string `json:"msg,omitempty"`
|
|
Data []*GetMemberJobsData `json:"data,omitempty"`
|
|
}
|
|
|
|
type GetMemberJobsData struct {
|
|
Id string `json:"id,omitempty"`
|
|
Name string `json:"name,omitempty"`
|
|
Status string `json:"status,omitempty"`
|
|
NodeNumReq int64 `json:"nodeNumReq,omitempty"`
|
|
CpuCore int64 `json:"cpuCore,omitempty"`
|
|
ProcNumReq int64 `json:"procNumReq,omitempty"`
|
|
GpuNum int64 `json:"gpuNum,omitempty"`
|
|
GpuNumReq int64 `json:"gpuNumReq,omitempty"`
|
|
DcuNumUsed int64 `json:"dcuNumUsed,omitempty"`
|
|
DcuNumReq int64 `json:"dcuNumReq,omitempty"`
|
|
}
|