Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnixSocketScheme = "unix" VSockSocketScheme = "vsock" HybridVSockScheme = "hvsock" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentClient ¶
type AgentClient struct { agentgrpc.AgentServiceClient agentgrpc.HealthClient // contains filtered or unexported fields }
AgentClient is an agent gRPC client connection wrapper for agentgrpc.AgentServiceClient
func NewAgentClient ¶
NewAgentClient creates a new agent gRPC client and handles both unix and vsock addresses.
Supported sock address formats are:
- unix://<unix socket path>
- vsock://<cid>:<port>
- <unix socket path>
- hvsock://<path>:<port>. Firecracker implements the virtio-vsock device model, and mediates communication between AF_UNIX sockets (on the host end) and AF_VSOCK sockets (on the guest end).
func (*AgentClient) Close ¶
func (c *AgentClient) Close() error
Close an existing connection to the agent gRPC server.
Click to show internal directories.
Click to hide internal directories.