Back to

package netutils

v0.0.0 (9db3aec)
Latest Go to latest
Published: 1 hour ago | License: Apache-2.0 | Module:


func AbstractUnixReceiveFd

func AbstractUnixReceiveFd(sockFD int) (*os.File, error)

AbstractUnixReceiveFd receives a Unix file descriptor from a Unix socket.

func AbstractUnixReceiveFdData

func AbstractUnixReceiveFdData(sockFD int, numFds int, iov unsafe.Pointer, iovLen int32) (uint64, [], error)

AbstractUnixReceiveFdData is a low level function to receive a file descriptor over a unix socket.

func AbstractUnixSendFd

func AbstractUnixSendFd(sockFD int, sendFD int) error

AbstractUnixSendFd sends a Unix file descriptor over a Unix socket.

func NetnsGetifaddrs

func NetnsGetifaddrs(initPID int32) (map[string]api.InstanceStateNetwork, error)

NetnsGetifaddrs returns a map of InstanceStateNetwork for a particular process.

func WebsocketExecMirror

func WebsocketExecMirror(conn *websocket.Conn, w io.WriteCloser, r io.ReadCloser, exited chan struct{}, fd int) (chan bool, chan bool)

WebsocketExecMirror mirrors a websocket connection with a set of Writer/Reader.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier