client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {

	// Call invokes an RPC method with an argument and a pointer to a result that will hold the return value.
	Call(method string, arg interface{}, result interface{}) error
}

Client allows execution of RPCs.

func New

func New(socketPath string, api spi.InterfaceSpec) Client

New creates a new Client that communicates with a unix socket and validates the remote API.

type InfoClient added in v0.2.0

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

InfoClient is the client for retrieving plugin info

func NewPluginInfoClient added in v0.2.0

func NewPluginInfoClient(socketPath string) *InfoClient

NewPluginInfoClient returns a plugin informer that can give metadata about a plugin

func (*InfoClient) GetInfo added in v0.2.0

func (i *InfoClient) GetInfo() (plugin.Info, error)

GetInfo implements the Info interface and returns the metadata about the plugin

Jump to

Keyboard shortcuts

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