Registry is an entity capable to orchestrate a Packer build and upload metadata to HCP
| 15 | |
| 16 | // Registry is an entity capable to orchestrate a Packer build and upload metadata to HCP |
| 17 | type Registry interface { |
| 18 | PopulateVersion(context.Context) error |
| 19 | StartBuild(context.Context, *packer.CoreBuild) error |
| 20 | CompleteBuild(ctx context.Context, build *packer.CoreBuild, artifacts []sdkpacker.Artifact, buildErr error) ([]sdkpacker.Artifact, error) |
| 21 | VersionStatusSummary() |
| 22 | Metadata() Metadata |
| 23 | // FetchEnforcedBlocks fetches enforced provisioner blocks from HCP Packer |
| 24 | FetchEnforcedBlocks(ctx context.Context) error |
| 25 | // InjectEnforcedProvisioners injects enforced provisioners into the builds |
| 26 | InjectEnforcedProvisioners(builds []*packer.CoreBuild) hcl.Diagnostics |
| 27 | } |
| 28 | |
| 29 | // New instantiates the appropriate registry for the Packer configuration template type. |
| 30 | // A nullRegistry is returned for non-HCP Packer registry enabled templates. |
no outgoing calls
no test coverage detected
searching dependent graphs…