agent

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2018 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(name string, arg string) (stdout string, stderr string)

ExecuteCommand is function used to instruct an agent to execute a command on the host operating system

Types

type Agent added in v0.5.0

type Agent struct {
	ID           uuid.UUID
	Platform     string
	Architecture string
	UserName     string
	UserGUID     string
	HostName     string
	Ips          []string
	Pid          int

	Version       string
	Build         string
	WaitTime      time.Duration
	PaddingMax    int
	MaxRetry      int
	FailedCheckin int
	Skew          int64
	Verbose       bool
	Debug         bool
	// contains filtered or unexported fields
}

Agent is a structure for agent objects. It is not exported to force the use of the New() function

func New added in v0.5.0

func New(verbose bool, debug bool) Agent

New creates a new agent struct with specific values and returns the object

func (*Agent) Run added in v0.5.0

func (a *Agent) Run(server string, proto string)

Run instructs an agent to establish communications with the passed in server using the passed in protocol

Jump to

Keyboard shortcuts

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