Documentation
¶
Overview ¶
Package vsock provides Go net.Conn adapters for Virtio socket connections and helpers for connecting to a guest over vsock.
Index ¶
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(b []byte) (int, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) Write(b []byte) (int, error)
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn wraps a Virtio socket connection as a net.Conn.
func NewConn ¶
func NewConn(vzConn vz.VZVirtioSocketConnection) (*Conn, error)
NewConn converts a Virtio socket connection into a net.Conn.
func (*Conn) RemoteAddr ¶
type Manager ¶
type Manager struct {
// DispatchFunc runs Virtualization calls on the VM's queue.
DispatchFunc func(fn func())
// contains filtered or unexported fields
}
Manager manages the first Virtio socket device on a running VM.
func NewManager ¶
func NewManager(machine vz.VZVirtualMachine) (*Manager, error)
NewManager wraps the first Virtio socket device from a running VM.
Click to show internal directories.
Click to hide internal directories.