Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskPayload ¶
type TaskPayload struct { Type TaskType `json:"type"` TaskId uint `json:"task_id"` // del,edit,stop,start HarborKey string `json:"harbor_key"` // harbor_key TaskName string `json:"task_name"` // taskName Path string `json:"path"` // exec path Cmd string `json:"cmd"` // 执行命令 Heartbeat string `json:"heartbeat"` // 心跳地址 }
func (*TaskPayload) Validate ¶
func (t *TaskPayload) Validate() error
Click to show internal directories.
Click to hide internal directories.