command

package
v0.0.0-...-4c8d8d5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cconf *config.Config
)

Functions

This section is empty.

Types

type CommandExecuter

type CommandExecuter struct {
	// contains filtered or unexported fields
}

func New

func New(errLogger, infLogger *log.Logger) *CommandExecuter

func (CommandExecuter) Execute

func (me CommandExecuter) Execute(cmd *exec.Cmd, body []byte) bool

type CommandFactory

type CommandFactory struct {
	Cmd  string
	Args []string
}

func Factory

func Factory(baseCmd string) *CommandFactory

func (CommandFactory) Create

func (me CommandFactory) Create(body string) *exec.Cmd

type Data

type Data struct {
	Error   bool   `json:"is_error"`
	Output  string `json:"out"`
	Message []byte `json:"message"`
}

type NetLogger

type NetLogger struct {
	Address string
}

func NewNetLogger

func NewNetLogger() *NetLogger

func (*NetLogger) Send

func (n *NetLogger) Send(p []byte, bod []byte, isError bool) error

type Parameters

type Parameters struct {
	Data *Data `json:"data"`
}

type ProvisionEvent

type ProvisionEvent struct {
	JsonRpc string      `json:"jsonrpc"`
	Method  string      `json:"method"`
	Id      int32       `json:"id"`
	Params  *Parameters `json:"params"`
}

Jump to

Keyboard shortcuts

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