Documentation ¶
Index ¶
- Variables
- func Add(agentID uuid.UUID, jobType string, jobArgs []string) (string, error)
- func AddJobChannel(agentID uuid.UUID, job *merlinJob.Job, jobArgs []string) (results string, err error)
- func Clear(agentID uuid.UUID) error
- func ClearCreated() error
- func Get(agentID uuid.UUID) ([]merlinJob.Job, error)
- func GetTableActive(agentID uuid.UUID) ([][]string, error)
- func GetTableAll() [][]string
- func Handler(m messages.Base) (messages.Base, error)
- func Idle(agentID uuid.UUID) (messages.Base, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Jobs = make(map[string]info)
Jobs is a map that contains specific information about an individual job and is embedded in the JobsChannel
JobsChannel contains a map of all instantiated jobs created on the server by each Agent's ID
Functions ¶
func AddJobChannel ¶ added in v1.5.0
func AddJobChannel(agentID uuid.UUID, job *merlinJob.Job, jobArgs []string) (results string, err error)
AddJobChannel adds an already built Agent Job to the agent's job channel to be sent to the agent when it checks in. A server-side job tracking structure is also added to track job status
func ClearCreated ¶ added in v1.1.0
func ClearCreated() error
ClearCreated removes all unsent jobs across all agents
func GetTableActive ¶
GetTableActive returns a list of rows that contain information about active jobs
func GetTableAll ¶ added in v1.1.0
func GetTableAll() [][]string
GetTableAll returns all unsent jobs to be displayed as a table
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.