Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { Config Dialer AgentRegister(net.Conn) (RPC, error) AcceptFS() (net.Conn, error) AcceptGrpc() (net.Conn, error) AcceptSocks5() (net.Conn, error) AcceptMetrics() (net.Conn, error) AcceptTerminal() (net.Conn, error) ConnectAndServe() error Serve(RPC) error FSChanConn() chan<- net.Conn GrpcChanConn() chan<- net.Conn Socks5ChanConn() chan<- net.Conn MetricsChanConn() chan<- net.Conn TerminalChanConn() chan<- net.Conn }
inside agent there are: config (static) grpcServer (long lived) rpc client/server (ephemeral)
type Config ¶
type Config interface { Info GetID() string GetName() string GetTags() []string GetHost() string GetPort() string GetAddr() string GetScheme() string GetSchemeWS() string GetCmd() []string GetReadOnly() bool GetVerbose() bool GetInsecure() bool GetPet() bool String() string GetVersion() pkg.Version }
type FileServer ¶
type GrpcServer ¶
type MetricsServer ¶
type RPC ¶
type RPC interface { // NewConnection() // Ping() // Pong() // Connect() (net.Conn, error) Close() Done() <-chan struct{} Actions() <-chan func(Agent) }
type Socks5Server ¶
type TerminalServer ¶
type TtyFactory ¶
Click to show internal directories.
Click to hide internal directories.