types

package
v0.0.0-...-1012304 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

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 NodeListStatistics struct {
	WorkerToken       string     `json:"worker_token,omitempty"`
	TotalCount        int        `json:"total_count,omitempty"`
	AvailabilityCount int        `json:"availability_count,omitempty"`
	UsableCount       int        `json:"usable_count,omitempty"`
	List              []NodeInfo `json:"list,omitempty"`
}

type ServiceStatistics

type ServiceStatistics struct {
	ServiceID string           `json:"service_id,omitempty"`
	StartAt   time.Time        `json:"start_at,omitempty"`
	EndAt     time.Time        `json:"end_at,omitempty"`
	TaskList  []TaskStatistics `json:"tasklist,omitempty"`
}

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL