From 7998bbe0eb01a502b03dd47ad0fa9cde193151c0 Mon Sep 17 00:00:00 2001 From: redanthrax Date: Mon, 20 Jun 2022 17:05:11 -0700 Subject: [PATCH] added sched tasks skel --- agent/tasks/structs_linux.go | 11 +++++++++++ agent/tasks/tasks_linux.go | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 agent/tasks/structs_linux.go create mode 100644 agent/tasks/tasks_linux.go diff --git a/agent/tasks/structs_linux.go b/agent/tasks/structs_linux.go new file mode 100644 index 0000000..f967485 --- /dev/null +++ b/agent/tasks/structs_linux.go @@ -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"` +} diff --git a/agent/tasks/tasks_linux.go b/agent/tasks/tasks_linux.go new file mode 100644 index 0000000..7e09456 --- /dev/null +++ b/agent/tasks/tasks_linux.go @@ -0,0 +1,5 @@ +package tasks + +func CreateSchedTask(st SchedTask) (bool, error) { + return true, nil +} \ No newline at end of file