netutils

package
v0.0.0-...-b84de06 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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, []C.int, 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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