added sched tasks skel
This commit is contained in:
parent
6c94a8653f
commit
7998bbe0eb
2 changed files with 16 additions and 0 deletions
11
agent/tasks/structs_linux.go
Normal file
11
agent/tasks/structs_linux.go
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
package tasks
|
||||||
|
|
||||||
|
type SchedTask struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Minute int `json:"minute"`
|
||||||
|
Hour int `json:"hour"`
|
||||||
|
Day int `json:"day"`
|
||||||
|
Month int `json:"month"`
|
||||||
|
Weekday int `json:"weekday"`
|
||||||
|
Command string `json:"command"`
|
||||||
|
}
|
||||||
5
agent/tasks/tasks_linux.go
Normal file
5
agent/tasks/tasks_linux.go
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
package tasks
|
||||||
|
|
||||||
|
func CreateSchedTask(st SchedTask) (bool, error) {
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue