main
Warning
This content is part of the legacy version of Waypoint that is no longer actively maintained. For additional information on the new vision of Waypoint, check out this blog post and the HCP Waypoint documentation.
Registering Plugin Components
A Waypoint plugin is just a Go binary; if you look at main.go
you will see the main
function. The sdk.Main
function sets up the Waypoint SDK and registers the interfaces for the go-plugin system for you. All you need to do is
pass Main
the components your Plugin implements using the sdk.WithComponents
function. Since this is the default
template, all the different plugin components are registered.
The plugin you will build in this guide only implements the Builder
component so you can remove the other components.
Your final Main
block should look like the following: