Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport implements RFC6242 for implementing NETCONF protocol over SSH.
func Dial ¶
Dial will connect to a ssh server and issues a transport, it's used as a convience function as essnetial is the same as
c, err := ssh.Dial(network, addr, config) if err != nil { /* ... handle error ... */ } t, err := NewTransport(c)
When the transport is closed the underlying connection is also closed.
func NewTransport ¶
NewTransport will create a new ssh transport as defined in RFC6242 for use with netconf. Unlike Dial, the underlying client will not be automatically closed when the transport is closed (however any sessions and subsystems are still closed).
Click to show internal directories.
Click to hide internal directories.