command

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ATTACHED = iota
	DETACHED = iota
	EXITED   = iota
	DRAINED  = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentExec

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

type Dispatch

type Dispatch struct {
	Inc           chan *agent_protocol.AgentMessage
	Outc          chan *agent_protocol.AgentMessage
	SimpleFuncMap map[string]func(proto.Message) proto.Message
	StreamFuncMap map[string]func(proto.Message, string, int64)
	ExMan         *ExecManager
	// contains filtered or unexported fields
}

func MakeDispatch

func MakeDispatch(inc chan *agent_protocol.AgentMessage, outc chan *agent_protocol.AgentMessage) *Dispatch

func (*Dispatch) Run

func (cd *Dispatch) Run()

type ExecManager

type ExecManager struct {
	Execs map[int64]*AgentExec
	Outc  chan *agent_protocol.AgentMessage
	Lock  *sync.Mutex
	// contains filtered or unexported fields
}

func MakeExecManager

func MakeExecManager(outc chan *agent_protocol.AgentMessage) *ExecManager

Jump to

Keyboard shortcuts

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