Documentation
¶
Index ¶
Constants ¶
View Source
const ( LabelRevenueAddress = "REVENUE_ADDRESS" LabelCPUType = "CPUTYPE" LabelCPUThread = "CPUTHREAD" LabelMemoryType = "MEMORYTYPE" LabelMemoryCount = "MEMORYCOUNT" LabelGPUType = "GPUTYPE" LabelGPUCount = "GPUCOUNT" LabelNFSIP = "NFSIP" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hardware ¶
type Hardware struct {
CPUType string `json:"cpu_type,omitempty"`
CPUThread int64 `json:"cpu_thread,omitempty"`
MemoryType string `json:"memory_type,omitempty"`
MemoryCount int64 `json:"memory_count,omitempty"` //GB
GPUType string `json:"gpu_type,omitempty"`
GPUCount int64 `json:"gpu_count,omitempty"`
PersistentStore string `json:"persistent_store,omitempty"`
}
type NodeInfo ¶
type NodeInfo struct {
NodeID string `json:"node_id,omitempty"`
NodeState string `json:"noed_state,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
ReachAddress string `json:"reach_address,omitempty"`
Hardware Hardware `json:"hardware,omitempty"`
OnWorking bool `json:"onworking,omitempty"`
}
type NodeListStatistics ¶
type ServiceStatistics ¶
type TaskStatistics ¶
type TaskStatistics struct {
TaskID string `json:"task_id,omitempty"`
NodeID string `json:"node_id,omitempty"`
ReceiveAddress string `json:"receive_address,omitempty"`
StartAt time.Time `json:"start_at,omitempty"`
EndAt time.Time `json:"end_at,omitempty"`
State swarm.TaskState `json:"state,omitempty"`
Msg string `json:"msg,omitempty"`
Err string `json:"err,omitempty"`
DesiredState swarm.TaskState `json:"desired_state,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.