Documentation ¶
Index ¶
- Constants
- type BaseRes
- type FileListRes
- type FileRes
- type Healthyz
- type Notify
- type Notifys
- type Pool
- type State
- type StateCpu
- type StateDisk
- type StateOs
- type StateRam
- type Step
- type Steps
- type StrTimes
- type Task
- type TaskDetailRes
- type TaskList
- type TaskListRes
- type TaskRes
- type Version
- type VersionGO
- type VersionGit
- type VersionUser
Constants ¶
View Source
const ( XTaskID = "X-Task-ID" XTaskState = "X-Task-STATE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileListRes ¶
type FileRes ¶
type FileRes struct { URL string `json:"url" yaml:"URL" toml:"url"` Name string `json:"name" yaml:"Name" toml:"name"` Path string `json:"path" yaml:"Path" toml:"path"` Size int64 `json:"size" yaml:"Size" toml:"size"` Mode string `json:"mode" yaml:"Mode" toml:"mode"` ModTime int64 `json:"mod_time" yaml:"ModTime" toml:"mod_time"` IsDir bool `json:"is_dir" yaml:"IsDir" toml:"is_dir"` }
type State ¶
type State struct { Os StateOs `json:"os" yaml:"Os" toml:"os"` Cpu StateCpu `json:"cpu" yaml:"Cpu" toml:"cpu"` Ram StateRam `json:"ram" yaml:"Ram" toml:"ram"` Disk StateDisk `json:"disk" yaml:"Disk" toml:"disk"` }
State represents activity status of Go.
type StateDisk ¶
type StateDisk struct { UsedMB int `json:"used_mb" yaml:"UsedMB" toml:"used_mb"` UsedGB int `json:"used_gb" yaml:"UsedGB" toml:"used_gb"` TotalMB int `json:"total_mb" yaml:"TotalMB" toml:"total_mb"` TotalGB int `json:"total_gb" yaml:"TotalGB" toml:"total_gb"` UsedPercent int `json:"used_percent" yaml:"UsedPercent" toml:"used_percent"` }
type StateOs ¶
type StateOs struct { GOOS string `json:"go_os" yaml:"GOOS" toml:"go_os"` NumCPU int `json:"num_cpu" yaml:"NumCPU" toml:"num_cpu"` Compiler string `json:"compiler" yaml:"Compiler" toml:"compiler"` GoVersion string `json:"go_version" yaml:"GoVersion" toml:"go_version"` NumGoroutine int `json:"num_goroutine" yaml:"NumGoroutine" toml:"num_goroutine"` }
type Step ¶
type Step struct { Name string `json:"name" form:"name" yaml:"Name" toml:"name" example:"script.ps1"` CommandType string `json:"command_type" form:"command_type" yaml:"CommandType" toml:"command_type" binding:"required" example:"powershell"` CommandContent string `` /* 128-byte string literal not displayed */ EnvVars []string `json:"env_vars" form:"env_vars" yaml:"EnvVars" toml:"env_vars" example:"env1=value1,env2=value2"` DependsOn []string `json:"depends_on" form:"depends_on" yaml:"DependsOn" toml:"depends_on" example:""` Timeout string `json:"timeout" form:"timeout" yaml:"Timeout" toml:"timeout" example:"3m"` Notify *Notifys `json:"notify" form:"notify" yaml:"Notify" toml:"notify"` TimeoutDuration time.Duration `json:"-" form:"-" yaml:"-" toml:"-"` }
type Task ¶
type Task struct { ID string `query:"id" json:"id" form:"id" yaml:"ID" toml:"id" example:""` Timeout string `query:"timeout" json:"timeout" form:"timeout" yaml:"Timeout" toml:"timeout" example:""` AnSync bool `query:"ansync" json:"ansync" form:"ansync" yaml:"AnSync" toml:"an_sync" example:"false"` Step Steps `json:"step" form:"step" yaml:"Step" toml:"step"` Notify Notifys `json:"notify" form:"notify" yaml:"Notify" toml:"notify"` TimeoutDuration time.Duration `json:"-" form:"-" yaml:"-"` }
type TaskDetailRes ¶
type TaskDetailRes struct { Name string `json:"name" yaml:"Name" toml:"name"` Code int64 `json:"code" yaml:"Code" toml:"code"` State int64 `json:"state" yaml:"State" toml:"state"` Manager string `json:"manager" yaml:"Manager" toml:"manager"` Workspace string `json:"workspace" yaml:"Workspace" toml:"workspace"` Message string `json:"msg" yaml:"Message" toml:"message"` DependsOn []string `json:"depends_on" yaml:"DependsOn" toml:"depends_on"` CommandType string `json:"command_type" yaml:"CommandType" toml:"command_type"` CommandContent string `json:"command_content" yaml:"CommandContent" toml:"command_content"` Times *StrTimes `json:"times" yaml:"Times" toml:"times"` }
type TaskList ¶
type TaskList struct { ID string `json:"id" yaml:"ID" toml:"id"` Code int64 `json:"code" yaml:"Code" toml:"code"` State int64 `json:"state" yaml:"State" toml:"state"` Manager string `json:"manager" yaml:"Manager" toml:"manager"` Workspace string `json:"workspace" yaml:"Workspace" toml:"workspace"` Message string `json:"msg" yaml:"Message" toml:"message"` Count int64 `json:"count" yaml:"Count" toml:"count"` Times StrTimes `json:"times" yaml:"Times" toml:"times"` }
type TaskListRes ¶
type Version ¶
type Version struct { BuildTime string `json:"build_time" yaml:"BuildTime" toml:"build_time"` Version string `json:"version" yaml:"Version" toml:"version"` Git VersionGit `json:"git" yaml:"Git" toml:"git"` Go VersionGO `json:"go" yaml:"Go" toml:"go"` User VersionUser `json:"user" yaml:"User" toml:"user"` }
type VersionGit ¶
type VersionUser ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.