command

package
v0.0.0-...-e4e8516 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTask

func AddTask(db *gorp.DbMap, systemID int64, agentCommand ResponseToAgent) (err error)

AddTask stores a task to be sent to a system next time it calls in

Types

type ResponseToAgent

type ResponseToAgent struct {
	Command   string
	Arguments interface{}
}

ResponseToAgent struct

func GetCatalogFileByHash

func GetCatalogFileByHash(sha256 string) ResponseToAgent

GetCatalogFileByHash command

func GetFileByHash

func GetFileByHash(sha256 string) ResponseToAgent

GetFileByHash command

func Nop

func Nop() ResponseToAgent

Nop command

func SetSystemUUID

func SetSystemUUID(systemUUID string) ResponseToAgent

SetSystemUUID command

func Stall

func Stall() ResponseToAgent

Stall command is used when something has gone wrong on the server, so we delay the client so I have time to hopefully fix it

func Success

func Success() ResponseToAgent

Success command tells the agent it was successful for times when process events are sent

func Update

func Update(newVersion string) ResponseToAgent

Update command

Jump to

Keyboard shortcuts

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