client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostAgentClient

type HostAgentClient interface {
	HTTPClient() *http.Client
	Info(context.Context) (*api.Info, error)
}

func NewHostAgentClient

func NewHostAgentClient(socketPath string) (HostAgentClient, error)

NewHostAgentClient creates a client. socketPath is a path to the UNIX socket, without unix:// prefix.

func NewHostAgentClientWithHTTPClient

func NewHostAgentClientWithHTTPClient(hc *http.Client) HostAgentClient

Jump to

Keyboard shortcuts

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