Documentation ¶
Index ¶
- Constants
- type BidStatus
- type CacheSpaceDetail
- type ClusterResource
- type Common
- type ComputingProvider
- type CpuQuota
- type DeleteJobReq
- type Gpu
- type GpuDetail
- type GpuQuota
- type GpuStatus
- type HostInfo
- type Job
- type JobData
- type JobStatus
- type NodeResource
- type Quota
- type Resource
- type ResourcePolicy
- type ResourceStatus
- type SpaceFile
- type SpaceHardware
- type SpaceJSON
- type Specification
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheSpaceDetail ¶
type ClusterResource ¶
type ClusterResource struct { NodeId string `json:"node_id"` Region string `json:"region"` ClusterInfo []*NodeResource `json:"cluster_info"` }
type ComputingProvider ¶
type DeleteJobReq ¶
type JobData ¶
type JobData struct { UUID string `json:"uuid"` Name string `json:"name"` Status string `json:"status"` Duration int `json:"duration"` //Hardware string `json:"hardware"` JobSourceURI string `json:"job_source_uri"` JobResultURI string `json:"job_result_uri"` StorageSource string `json:"storage_source"` TaskUUID string `json:"task_uuid"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` BuildLog string `json:"build_log"` ContainerLog string `json:"container_log"` }
type JobStatus ¶
type JobStatus string
const ( JobDownloadSource JobStatus = "downloadSource" // download file form job_resource_uri JobUploadResult JobStatus = "uploadResult" // upload task result to mcs JobBuildImage JobStatus = "buildImage" // build images JobPushImage JobStatus = "pushImage" // push image to registry JobPullImage JobStatus = "pullImage" // download file form job_resource_uri JobDeployToK8s JobStatus = "deployToK8s" // deploy image to k8s )
type NodeResource ¶
type Resource ¶
type Resource struct { Cpu Specification Memory Specification Gpu Specification Storage Specification }
type ResourcePolicy ¶
type ResourceStatus ¶
type SpaceHardware ¶
type SpaceJSON ¶
type SpaceJSON struct { Data struct { Files []SpaceFile `json:"files"` Owner struct { PublicAddress string `json:"public_address"` } `json:"owner"` Space struct { Uuid string `json:"uuid"` Name string `json:"name"` ActiveOrder struct { Config SpaceHardware `json:"config"` } `json:"activeOrder"` } `json:"space"` } `json:"data"` Message string `json:"message"` Status string `json:"status"` }
type Specification ¶
Click to show internal directories.
Click to hide internal directories.