Documentation ¶
Index ¶
- Constants
- Variables
- type Glance
- type GlanceAllocatable
- type GlanceCPU
- type GlanceDirRep
- type GlanceDirReq
- type GlanceEntry
- type GlanceFileRep
- type GlanceFileReq
- type GlanceMemory
- type GlanceReply
- type GlanceRequested
- type GlanceResource
- type GlanceStats
- type GlanceStorage
- type GlanceSysRep
- type GlanceSysReq
- type GlanceTimeout
- type Glancer
- type GlancerConfig
- type Metadata
- type Proto
- type Spec
- type Task
- type TaskFile
- type TaskOutput
- type TaskParam
- type TaskResult
- type TaskTimeout
- type Tasker
- type TaskerConfig
Constants ¶
View Source
const ( Livelog = 5000 Time = 12 Unit = "hour" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Glance ¶ added in v1.28.0
type Glance struct { Dir GlanceDirReq `json:"dir"` File GlanceFileReq `json:"file"` Sys GlanceSysReq `json:"sys"` Timeout GlanceTimeout `json:"timeout"` }
type GlanceAllocatable ¶ added in v1.28.0
type GlanceDirRep ¶ added in v1.28.0
type GlanceDirRep struct {
Entries []GlanceEntry `json:"entries"`
}
type GlanceDirReq ¶ added in v1.28.0
type GlanceDirReq struct {
Path string `json:"path"`
}
type GlanceEntry ¶ added in v1.28.0
type GlanceFileRep ¶ added in v1.28.0
type GlanceFileReq ¶ added in v1.28.0
type GlanceMemory ¶ added in v1.28.0
type GlanceReply ¶ added in v1.28.0
type GlanceReply struct { Dir GlanceDirRep `json:"dir"` File GlanceFileRep `json:"file"` Sys GlanceSysRep `json:"sys"` Error string `json:"error"` }
type GlanceRequested ¶ added in v1.28.0
type GlanceResource ¶ added in v1.28.0
type GlanceResource struct { Allocatable GlanceAllocatable `json:"allocatable"` Requested GlanceRequested `json:"requested"` }
type GlanceStats ¶ added in v1.28.0
type GlanceStats struct { CPU GlanceCPU `json:"cpu"` Host string `json:"host"` Memory GlanceMemory `json:"memory"` OS string `json:"os"` Storage GlanceStorage `json:"storage"` }
type GlanceStorage ¶ added in v1.28.0
type GlanceSysRep ¶ added in v1.28.0
type GlanceSysRep struct { Resource GlanceResource `json:"resource"` Stats GlanceStats `json:"stats"` }
type GlanceSysReq ¶ added in v1.28.0
type GlanceSysReq struct {
Enable bool `json:"enable"`
}
type GlanceTimeout ¶ added in v1.28.0
type Glancer ¶ added in v1.28.0
type Glancer interface { Init(context.Context) error Deinit(context.Context) error Run(context.Context) (GlanceReply, error) }
func GlancerNew ¶ added in v1.28.0
func GlancerNew(_ context.Context, cfg *GlancerConfig) Glancer
type GlancerConfig ¶ added in v1.28.0
func GlancerDefaultConfig ¶ added in v1.28.0
func GlancerDefaultConfig() *GlancerConfig
type TaskOutput ¶ added in v1.28.0
type TaskResult ¶ added in v1.28.0
type TaskResult struct { Output TaskOutput `json:"output"` Error string `json:"error"` }
type TaskTimeout ¶ added in v1.28.0
type Tasker ¶ added in v1.28.0
type TaskerConfig ¶ added in v1.28.0
func TaskerDefaultConfig ¶ added in v1.28.0
func TaskerDefaultConfig() *TaskerConfig
Click to show internal directories.
Click to hide internal directories.