Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { Config TunnelListener ChannelChan(api.ProtocolID) chan net.Conn AgentRegister(net.Conn) (Session, error) ConnectAndServe() error Serve(Session) 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() *version.Version }
type Session ¶ added in v0.1.17
type Session interface { // NewConnection() // Ping() // Pong() // Connect() (net.Conn, error) Close() Done() <-chan struct{} Actions() <-chan func(Agent) }
type TtyFactory ¶
type TunnelListener ¶
type TunnelListener interface {
AcceptProtocol(api.ProtocolID) (net.Conn, error)
}
Click to show internal directories.
Click to hide internal directories.