Documentation
¶
Index ¶
- func Dial(path string, port uint32, opts ...DialOption) (net.Conn, error)
- func DialContext(ctx context.Context, path string, port uint32, opts ...DialOption) (net.Conn, error)
- func Listener(ctx context.Context, logger *logrus.Entry, port uint32) (net.Listener, error)
- type DialOption
- func WithAckMsgTimeout(d time.Duration) DialOption
- func WithConnectionMsgTimeout(d time.Duration) DialOption
- func WithDialTimeout(d time.Duration) DialOption
- func WithLogger(logger logrus.FieldLogger) DialOption
- func WithRetryInterval(d time.Duration) DialOption
- func WithRetryTimeout(d time.Duration) DialOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
Dial connects to the Firecracker host-side vsock at the provided unix path and port.
See func Dial for a description of the path and port parameters.
func DialContext ¶
func DialContext(ctx context.Context, path string, port uint32, opts ...DialOption) (net.Conn, error)
Dial connects to the Firecracker host-side vsock at the provided unix path and port.
It will retry connect attempts if a temporary error is encountered up to a fixed timeout or the provided request is canceled.
path specifies the file system path of the UNIX domain socket.
port will be used in the connect message to the firecracker vsock.
Types ¶
type DialOption ¶
type DialOption func(c *config)
func WithAckMsgTimeout ¶
func WithAckMsgTimeout(d time.Duration) DialOption
func WithConnectionMsgTimeout ¶
func WithConnectionMsgTimeout(d time.Duration) DialOption
func WithDialTimeout ¶
func WithDialTimeout(d time.Duration) DialOption
func WithLogger ¶
func WithLogger(logger logrus.FieldLogger) DialOption
func WithRetryInterval ¶
func WithRetryInterval(d time.Duration) DialOption
func WithRetryTimeout ¶
func WithRetryTimeout(d time.Duration) DialOption
Click to show internal directories.
Click to hide internal directories.