agents

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2018 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Agents = make(map[uuid.UUID]*agent)

Agents contains all of the instantiated agent object that are accessed by other modules

Functions

func AddChannel

func AddChannel(agentID uuid.UUID, cmdType string, cmd []string) error

AddChannel is the function used to add commands for an agent to run into the channel

func GetAgentList

func GetAgentList() func(string) []string

GetAgentList returns a list of agents that exist and is used for command line tab completion

func Info

func Info(j messages.Base, p messages.AgentInfo)

Info is used to update an agent's information with the passed in message data

func InitialCheckIn

func InitialCheckIn(j messages.Base, p messages.SysInfo)

InitialCheckIn is run on the first communication with an agent and is used to instantiate an agent object

func Log

func Log(agentID uuid.UUID, logMessage string)

Log is used to write log messages to the agent's log file

func ShowInfo

func ShowInfo(agentID uuid.UUID)

ShowInfo lists all of the agent's structure value in a table

func StatusCheckIn

func StatusCheckIn(j messages.Base) messages.Base

StatusCheckIn is the function that is run when an agent sends a message back to server, checking in for additional instructions

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL