controlsockets

package
v2.8.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2018 License: MIT Imports: 6 Imported by: 5

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL