Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() (controller.Controller, error)
NewAgent allocates instance of agent struct Parses shell environment and setups internal variables
Types ¶
type ScriptController ¶
type ScriptController struct {
// contains filtered or unexported fields
}
Script controller just reads files from `/etc/syntropy-agent/script` directory and setups accordinly
func (*ScriptController) Close ¶
func (cc *ScriptController) Close() error
Close terminates connection
func (*ScriptController) Recv ¶
func (cc *ScriptController) Recv() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.