client

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 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 GuestAgentClient

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

func NewGuestAgentClient

func NewGuestAgentClient(socketPath string) (GuestAgentClient, error)

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

func NewGuestAgentClientWithHTTPClient

func NewGuestAgentClientWithHTTPClient(hc *http.Client) GuestAgentClient

Jump to

Keyboard shortcuts

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