vsock

package
v0.0.0-...-288c4de Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextID

func ContextID() (uint32, error)

ContextID returns the local VM sockets context ID.

func Dial

func Dial(cid, port uint32) (net.Conn, error)

Dial connects to a remote vsock.

func HTTPClient

func HTTPClient(vsockID uint32, port int, tlsClientCert string, tlsClientKey string, tlsServerCert string) (*http.Client, error)

HTTPClient provides an HTTP client for using over vsock.

Types

This section is empty.

Jump to

Keyboard shortcuts

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