Registry
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.
https://pkg.go.dev/github.com/hashicorp/waypoint-plugin-sdk/component#Registry
The registry component handles the storage of the built assets in an artifact registry such as Docker registry, GitHub releases, or Artifactory.
To build a plugin which allows the storage of assets you need to implement the PushFunc
method from the
Registry
interface in your component.
The signature for the function returned by PushFunc accepts the usual Default Mappers in addition, the data model which was returned as the first output parameter from BuildFunc can also be specified. The output parameters from this function are a data model which contains the details of the published artifact and an error message.
The data model Artifact shown in the previous example will be made available to be injected into a function in a later stage of the Waypoint lifecycle.