Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "nodeProcess"
Variables ¶
View Source
var ( Handshake = plugin.HandshakeConfig{ ProtocolVersion: 2, MagicCookieKey: "NODE_PROCESS_PLUGIN", MagicCookieValue: "dynamic", } // PluginMap is the map of plugins we can dispense. PluginMap = map[string]plugin.Plugin{ Name: &appPlugin{}, } )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(node pluginproto.NodeClient) *Client
NewServer returns an app instance connected to a remote app instance
type Server ¶
type Server struct { pluginproto.UnimplementedNodeServer // contains filtered or unexported fields }
Server wraps a node so it can be served with the hashicorp plugin harness
func (*Server) ExitCode ¶
func (s *Server) ExitCode(context.Context, *emptypb.Empty) (*pluginproto.ExitCodeResponse, error)
Click to show internal directories.
Click to hide internal directories.