Documentation ¶
Index ¶
- Constants
- func HybridVSockDialer(sock string, timeout time.Duration) (net.Conn, error)
- func MockHybridVSockDialer(sock string, timeout time.Duration) (net.Conn, error)
- func RemoteSockDialer(sock string, timeout time.Duration) (net.Conn, error)
- func TraceUnaryClientInterceptor() ttrpc.UnaryClientInterceptor
- func VsockDialer(sock string, timeout time.Duration) (net.Conn, error)
- type AgentClient
Constants ¶
View Source
const ( VSockSocketScheme = "vsock" HybridVSockScheme = "hvsock" RemoteSockScheme = "remote" MockHybridVSockScheme = "mock" )
Variables ¶
This section is empty.
Functions ¶
func HybridVSockDialer ¶
HybridVSockDialer dials to a hybrid virtio socket
func MockHybridVSockDialer ¶
just for tests use.
func RemoteSockDialer ¶
RemoteSockDialer dials to an agent in a remote hypervisor sandbox
func TraceUnaryClientInterceptor ¶
func TraceUnaryClientInterceptor() ttrpc.UnaryClientInterceptor
Types ¶
type AgentClient ¶
type AgentClient struct { AgentServiceClient agentgrpc.AgentServiceService HealthClient agentgrpc.HealthService // 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:
- vsock://<cid>:<port>
- 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).
- mock://<path>. just for test use.
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.