Documentation ¶
Index ¶
Constants ¶
View Source
const ClientTimeoutEnv = "INFRAKIT_CLIENT_TIMEOUT"
ClientTimeoutEnv environment variable for the client timeout (in time.Duration)
Variables ¶
This section is empty.
Functions ¶
func IsErrVersionMismatch ¶
IsErrVersionMismatch return true if the error is from mismatched api versions.
func NewHandshaker ¶
func NewHandshaker(address string) (rpc.Handshaker, error)
NewHandshaker returns a handshaker object, or a generic, untyped rpc object
Types ¶
type Client ¶
type Client interface { // Addr returns the address -- e.g. unix socket path Addr() string // 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 FromHandshaker ¶
func FromHandshaker(handshaker rpc.Handshaker, api spi.InterfaceSpec) (Client, error)
FromHandshaker returns a full rpc client from handshaker
type InfoClient ¶
type InfoClient struct {
// contains filtered or unexported fields
}
InfoClient is the client for retrieving plugin info
func NewPluginInfoClient ¶
func NewPluginInfoClient(address string) (*InfoClient, error)
NewPluginInfoClient returns a plugin informer that can give metadata about a plugin
func (*InfoClient) GetFunctions ¶
func (i *InfoClient) GetFunctions() (map[string][]template.Function, error)
GetFunctions returns metadata about the plugin's template functions, if the plugin supports templating.
Click to show internal directories.
Click to hide internal directories.