client

package
v0.18.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuestAgentClient

type GuestAgentClient interface {
	HTTPClient() *http.Client
	Info(context.Context) (*api.Info, error)
	Events(context.Context, func(api.Event)) error
}

func NewGuestAgentClient

func NewGuestAgentClient(remote string, proto Proto, instanceName string) (GuestAgentClient, error)

NewGuestAgentClient creates a client. remote is a path to the UNIX socket, without unix:// prefix or a remote hostname/IP address.

func NewGuestAgentClientWithHTTPClient

func NewGuestAgentClientWithHTTPClient(hc *http.Client) GuestAgentClient

type Proto added in v0.18.0

type Proto = string
const (
	UNIX  Proto = "unix"
	VSOCK Proto = "vsock"
)

Jump to

Keyboard shortcuts

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