Documentation ¶
Index ¶
- func AiCenterUrlPrefix() string
- func EFileUrlPrefix() string
- func GetClusterId() string
- func GetGroupId() string
- func GetJobManagerId() int
- func GetQueueId() string
- func GetRestyRequest(timeoutSeconds int64) *resty.Request
- func GetToken() string
- func HpcCenterUrlPrefix() string
- type AuthService
- type CenterResp
- type ClusterResp
- type GroupMembers
- type ParastorQuota
- type QueueNamesResp
- type QuotaResp
- type ResourceGroupResp
- type ResourceResp
- type TokenResp
- type TokenState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AiCenterUrlPrefix ¶
func AiCenterUrlPrefix() string
func EFileUrlPrefix ¶
func EFileUrlPrefix() string
func GetClusterId ¶
func GetClusterId() string
func GetGroupId ¶
func GetGroupId() string
func GetJobManagerId ¶
func GetJobManagerId() int
func GetQueueId ¶
func GetQueueId() string
func GetRestyRequest ¶
func GetRestyRequest(timeoutSeconds int64) *resty.Request
func HpcCenterUrlPrefix ¶
func HpcCenterUrlPrefix() string
Types ¶
type AuthService ¶
type AuthService struct { C *config.Config Token string //区域用户认证token ClusterId string AiCenterUrlPrefix string HpcCenterUrlPrefix string EFileUrlPrefix string JobManagerId int GroupId string QueueId string }
func NewAuthService ¶
func NewAuthService() *AuthService
type CenterResp ¶
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 ClusterResp ¶
type GroupMembers ¶
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 ParastorQuota ¶
type QueueNamesResp ¶
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 QuotaResp ¶
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 ResourceGroupResp ¶
type ResourceResp ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.