Documentation ¶
Index ¶
- Constants
- type Config
- type ConfigReply
- type Configer
- type ConfigerConfig
- type Glance
- type GlanceAllocatable
- type GlanceCPU
- type GlanceDirRep
- type GlanceDirReq
- type GlanceEntry
- type GlanceFileRep
- type GlanceFileReq
- type GlanceMemory
- type GlanceProcess
- type GlanceReply
- type GlanceRequested
- type GlanceResource
- type GlanceStats
- type GlanceStorage
- type GlanceSysRep
- type GlanceSysReq
- type GlanceThread
- type Glancer
- type GlancerConfig
- type Maint
- type MaintClockDiff
- type MaintClockRep
- type MaintClockReq
- type MaintClockSync
- type MaintReply
- type Mainter
- type MainterConfig
- type Metadata
- type Proto
- type Spec
- type Task
- type TaskArtifact
- type TaskFile
- type TaskLanguage
- type TaskLog
- type TaskOutput
- type TaskParam
- type TaskResult
- type Tasker
- type TaskerConfig
Constants ¶
View Source
const ( Count = 5000 Time = 12 Unit = "hour" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigReply ¶ added in v1.37.0
type ConfigReply struct {
Version string `json:"version"`
}
type Configer ¶ added in v1.37.0
type Configer interface { Init(context.Context) error Deinit(context.Context) error Run(context.Context) (ConfigReply, error) }
func ConfigerNew ¶ added in v1.37.0
func ConfigerNew(_ context.Context, cfg *ConfigerConfig) Configer
type ConfigerConfig ¶ added in v1.37.0
func ConfigerDefaultConfig ¶ added in v1.37.0
func ConfigerDefaultConfig() *ConfigerConfig
type Glance ¶ added in v1.28.0
type Glance struct { Dir GlanceDirReq `json:"dir"` File GlanceFileReq `json:"file"` Sys GlanceSysReq `json:"sys"` Timeout string `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 GlanceProcess ¶ added in v1.31.0
type GlanceProcess struct { Process GlanceThread `json:"process"` Threads []GlanceThread `json:"threads"` }
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"` Processes []GlanceProcess `json:"processes"` }
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 GlanceThread ¶ added in v1.32.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 Maint ¶ added in v1.33.0
type Maint struct { Clock MaintClockReq `json:"clock"` Timeout string `json:"timeout"` }
type MaintClockDiff ¶ added in v1.33.0
type MaintClockRep ¶ added in v1.33.0
type MaintClockRep struct { Sync MaintClockSync `json:"sync"` Diff MaintClockDiff `json:"diff"` }
type MaintClockReq ¶ added in v1.33.0
type MaintClockSync ¶ added in v1.33.0
type MaintClockSync struct {
Status string `json:"status"`
}
type MaintReply ¶ added in v1.33.0
type MaintReply struct {
Clock MaintClockRep `json:"clock"`
}
type Mainter ¶ added in v1.33.0
type Mainter interface { Init(context.Context) error Deinit(context.Context) error Run(context.Context) (MaintReply, error) }
func MainterNew ¶ added in v1.33.0
func MainterNew(_ context.Context, cfg *MainterConfig) Mainter
type MainterConfig ¶ added in v1.33.0
func MainterDefaultConfig ¶ added in v1.33.0
func MainterDefaultConfig() *MainterConfig
type TaskArtifact ¶ added in v1.36.0
type TaskLanguage ¶ added in v1.35.0
type TaskLanguage struct { Name string `json:"name"` Artifact TaskArtifact `json:"artifact"` }
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 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.