Documentation ¶
Index ¶
- Constants
- type ForwardConfig_t
- func (f *ForwardConfig_t) Close()
- func (f *ForwardConfig_t) ConfigTunnel(sshConfig *ssh.ClientConfig, tunnelAddr string, tunnelPort string)
- func (f *ForwardConfig_t) EventNotifyChannel() <-chan StateEvent_t
- func (f *ForwardConfig_t) Service(t ForwardType_t, remotePort, localPort string)
- func (f *ForwardConfig_t) Wait()
- type ForwardType_t
- type StateEvent_t
Constants ¶
View Source
const ( FORWARD_STATE_NONE forwardState_t = iota FORWARD_STATE_CONFIGURED FORWARD_STATE_STARTING FORWARD_STATE_SSH_CONNECTED FORWARD_STATE_STOPPED FORWARD_STATE_SKIP FORWARD_STATE_ERROR FORWARD_STATE_RETRY )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForwardConfig_t ¶
type ForwardConfig_t struct {
// contains filtered or unexported fields
}
func CreateForward ¶
func CreateForward() *ForwardConfig_t
func (*ForwardConfig_t) Close ¶ added in v0.0.4
func (f *ForwardConfig_t) Close()
func (*ForwardConfig_t) ConfigTunnel ¶
func (f *ForwardConfig_t) ConfigTunnel(sshConfig *ssh.ClientConfig, tunnelAddr string, tunnelPort string)
func (*ForwardConfig_t) EventNotifyChannel ¶
func (f *ForwardConfig_t) EventNotifyChannel() <-chan StateEvent_t
func (*ForwardConfig_t) Service ¶
func (f *ForwardConfig_t) Service(t ForwardType_t, remotePort, localPort string)
func (*ForwardConfig_t) Wait ¶
func (f *ForwardConfig_t) Wait()
type ForwardType_t ¶
type ForwardType_t int
const ( FORWARD_TYPE_LOCAL_TO_REMOTE_LISTEN ForwardType_t = iota FORWARD_TYPE_REMOTE_TO_LOCAL_LISTEN )
Click to show internal directories.
Click to hide internal directories.