Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlSocket ¶
type ControlSocket struct {
// contains filtered or unexported fields
}
ControlSocket defines a unix-domain socket controlled by a master SSH process
func (*ControlSocket) ActiveConnections ¶
func (s *ControlSocket) ActiveConnections() (int, error)
ActiveConnections returns the amount of active connections using a control socket
func (*ControlSocket) CreatedAt ¶
func (s *ControlSocket) CreatedAt() (time.Time, error)
CreatedAt returns the modification time of the sock file
func (*ControlSocket) Path ¶
func (s *ControlSocket) Path() string
Path returns the absolute path of the socket
func (*ControlSocket) RelativePath ¶
func (s *ControlSocket) RelativePath() string
RelativePath returns a path relative to the configured ControlPath
type ControlSockets ¶
type ControlSockets []ControlSocket
ControlSockets is a list of ControlSocket
func LookupControlPathDir ¶
func LookupControlPathDir(controlPath string) (ControlSockets, error)
LookupControlPathDir returns the ControlSockets in the ControlPath directory
Click to show internal directories.
Click to hide internal directories.