Documentation
¶
Index ¶
- Constants
- type Account
- type BidStatus
- type CacheSpaceDetail
- type CacheUbiTaskDetail
- type ClusterResource
- type CollectNodeInfo
- type Commit1Task
- type Commit2Proof
- 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 SectorCids
- type SectorRef
- type Seed
- type SpaceFile
- type SpaceHardware
- type SpaceJSON
- type Specification
- type T
- type TaskList
- type TaskResource
- type UBITaskReq
- type UbiC2Proof
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheSpaceDetail ¶
type CacheUbiTaskDetail ¶
type ClusterResource ¶
type ClusterResource struct {
NodeId string `json:"node_id,omitempty"`
Region string `json:"region,omitempty"`
ClusterInfo []*NodeResource `json:"cluster_info"`
PublicAddress string `json:"public_address,omitempty"`
MultiAddress string `json:"multi_address,omitempty"`
NodeName string `json:"node_name,omitempty"`
}
type CollectNodeInfo ¶
type Commit1Task ¶
type Commit2Proof ¶
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,omitempty"`
StorageSource string `json:"storage_source,omitempty"`
TaskUUID string `json:"task_uuid"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at,omitempty"`
BuildLog string `json:"build_log,omitempty"`
ContainerLog string `json:"container_log"`
NodeIdJobSourceUriSignature string `json:"node_id_job_source_uri_signature"`
JobRealUri string `json:"job_real_uri,omitempty"`
}
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 SectorCids ¶
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 ¶
type T ¶ added in v0.4.6
type T struct {
Gpu struct {
DriverVersion string `json:"driver_version"`
CudaVersion string `json:"cuda_version"`
AttachedGpus int `json:"attached_gpus"`
Details []struct {
ProductName string `json:"product_name"`
FbMemoryUsage struct {
Total string `json:"total"`
Used string `json:"used"`
Free string `json:"free"`
} `json:"fb_memory_usage"`
Bar1MemoryUsage struct {
Total string `json:"total"`
Used string `json:"used"`
Free string `json:"free"`
} `json:"bar1_memory_usage"`
} `json:"details"`
} `json:"gpu"`
MachineId string `json:"machine_id"`
CpuName string `json:"cpu_name"`
Cpu struct {
Total string `json:"total"`
Used string `json:"used"`
Free string `json:"free"`
} `json:"cpu"`
Vcpu struct {
Total string `json:"total"`
Used string `json:"used"`
Free string `json:"free"`
} `json:"vcpu"`
Memory struct {
Total string `json:"total"`
Used string `json:"used"`
Free string `json:"free"`
} `json:"memory"`
Storage struct {
Total string `json:"total"`
Used string `json:"used"`
Free string `json:"free"`
} `json:"storage"`
}
type TaskList ¶
type TaskList []CacheUbiTaskDetail
type TaskResource ¶
type UBITaskReq ¶
Click to show internal directories.
Click to hide internal directories.