Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NilSSHProxyServer ¶
type NilSSHProxyServer struct{}
type ProxyServerConfig ¶
type ProxyServerConfig struct {
Addr string `yaml:"endpoint" required:"true"`
NPP npp.Config `yaml:"npp" required:"true"`
}
ProxyServerConfig specifies SSH proxy server configuration.
type SSHProxyServer ¶
type SSHProxyServer struct {
// contains filtered or unexported fields
}
func NewSSHProxyServer ¶
func NewSSHProxyServer(cfg ProxyServerConfig, credentials credentials.TransportCredentials, market blockchain.MarketAPI, log *zap.SugaredLogger) (*SSHProxyServer, error)
NewSSHProxyServer constructs a new SSH proxy server that will serve SSH connections in remote containers by smart-forwarding traffic via itself.
The server requires SSH agent running on the host system with appropriate keys loaded in it. While running it will NOT modify the data within the agent.
Example of external usage: "ssh <DealID>.<TaskID>@<host> -p <port>".
Click to show internal directories.
Click to hide internal directories.