Documentation ¶
Overview ¶
Package plugin contains the implementations needed to make the built binary act as a plugin.
A plugin is implemented as an RPC server and the host acts as the client, sending analysis requests to the plugin. Note that the server-client relationship here is the opposite of the communication that takes place during the checking phase.
Implementation details are hidden in go-plugin. This package is essentially a wrapper for go-plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(opts *ClientOpts) *goplugin.Client
NewClient is a wrapper of plugin.NewClient.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an RPC client for the host.
func (*Client) Execute ¶
func (c *Client) Execute(args ExecuteArgs) (string, error)
Execute calls the server-side Execute method and returns generated output.
type ClientOpts ¶
ClientOpts is an option for initializing a Client.
type ExecuteArgs ¶
ExecuteArgs is the collection of arguments being sent by terraform-docs core while executing the plugin command.