Documentation ¶
Index ¶
- func DialSocketWithBackoffs(maxBackoffs int, backoff time.Duration, socketPath string) (conn net.Conn, err error)
- func DialSocketWithBackoffsAndProcCheck(maxBackoffs int, backoff time.Duration, socketPath string, ...) (conn net.Conn, err error)
- func ListenAndWaitOnSocket(errChan chan<- error, listener net.Listener)
- func ReadySocketPath(runtimeDir, machineName string) string
- func SetSocket(socketLoc *define.VMFile, path string, symlink *string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialSocketWithBackoffs ¶
func DialSocketWithBackoffs(maxBackoffs int, backoff time.Duration, socketPath string) (conn net.Conn, err error)
DialSocketWithBackoffs attempts to connect to the socket in maxBackoffs attempts
func DialSocketWithBackoffsAndProcCheck ¶
func DialSocketWithBackoffsAndProcCheck( maxBackoffs int, backoff time.Duration, socketPath string, checkProccessStatus func(string, int, *bytes.Buffer) error, procHint string, procPid int, errBuf *bytes.Buffer, ) (conn net.Conn, err error)
DialSocketWithBackoffsAndProcCheck attempts to connect to the socket in maxBackoffs attempts. After every failure to connect, it makes sure the specified process is alive
func ListenAndWaitOnSocket ¶
ListenAndWaitOnSocket waits for a new connection to the listener and sends any error back through the channel. ListenAndWaitOnSocket is intended to be used as a goroutine
func ReadySocketPath ¶
ReadySocketPath returns the filepath for the ready socket
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.