script

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 10 Imported by: 0

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)

func (*ScriptController) Write

func (cc *ScriptController) Write(b []byte) (n int, err error)

Write sends nowhere

Jump to

Keyboard shortcuts

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