client

package
v0.0.0-...-3f96e4e Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

func NewAgentClient(ctx context.Context, sock string, enableYamux bool) (*AgentClient, error)

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>

func (*AgentClient) Close

func (c *AgentClient) Close() error

Close an existing connection to the agent gRPC server.

Jump to

Keyboard shortcuts

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