Help us shape the future of Go! Take the 2026 Go Developer Survey

discovery

package
v1.39.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDirectory

func WithDirectory(directory string) func(*Client)

func WithGrpcConn

func WithGrpcConn(userConn *grpc.ClientConn) func(*Client)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, registrySpec specs.Registry, pluginType registry.PluginType, path string, version string, opts ...ClientOption) (*Client, error)

func (*Client) GetVersions

func (c *Client) GetVersions(ctx context.Context) ([]string, error)

func (*Client) Terminate

func (c *Client) Terminate() error

Terminate is used only in conjunction with NewManagedClient. It closes the connection it created, kills the spawned process and removes the socket file.

type ClientOption

type ClientOption func(*Client)

Jump to

Keyboard shortcuts

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