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 TunnelListener TunnelChan(api.Tunnel) chan net.Conn AgentRegister(net.Conn) (RPC, error) ConnectAndServe() error Serve(RPC) error }
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 RPC ¶
type RPC interface { // NewConnection() // Ping() // Pong() // Connect() (net.Conn, error) Close() Done() <-chan struct{} Actions() <-chan func(Agent) }
type TtyFactory ¶
Click to show internal directories.
Click to hide internal directories.