client

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrVersionMismatch added in v0.3.0

func IsErrVersionMismatch(e error) bool

IsErrVersionMismatch return true if the error is from mismatched api versions.

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, error)

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) GetFunctions added in v0.3.1

func (i *InfoClient) GetFunctions() (map[string][]template.Function, error)

GetFunctions returns metadata about the plugin's template functions, if the plugin supports templating.

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