even moar refactor

This commit is contained in:
redanthrax 2022-06-17 11:01:34 -07:00
parent d6cd817133
commit 93db0f17a1
11 changed files with 111 additions and 170 deletions

View file

@ -10,4 +10,6 @@ type CmdOptions struct {
IsScript bool
IsExecutable bool
Detached bool
}
}
type SchedTask struct{ Name string }

View file

@ -15,7 +15,8 @@ import (
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/process"
psHost "github.com/shirou/gopsutil/v3/host"
"github.com/wh1te909/trmm-shared"
rmm "github.com/amidaware/rmmagent/shared"
trmm "github.com/wh1te909/trmm-shared"
)
func NewCMDOpts() *CmdOptions {
@ -267,4 +268,22 @@ func GetWMIInfo() map[string]interface{} {
func PlatVer() (string, error) { return "", nil }
func GetServiceStatus(name string) (string, error) { return "", nil }
func GetServiceStatus(name string) (string, error) { return "", nil }
func CreateSchedTask(st SchedTask) (bool, error) { return false, nil }
func DeleteSchedTask(name string) error { return nil }
func ListSchedTasks() []string { return []string{} }
func GetEventLog(logName string, searchLastDays int) []rmm.EventLogMsg {
return []rmm.EventLogMsg{}
}
func CMDShell(shell string, cmdArgs []string, command string, timeout int, detached bool) (output [2]string, e error) {
return [2]string{"", ""}, nil
}
func CMD(exe string, args []string, timeout int, detached bool) (output [2]string, e error) {
return [2]string{"", ""}, nil
}