MCPcopy
hub / github.com/hashicorp/packer / Registry

Interface Registry

internal/hcp/registry/registry.go:17–27  ·  view source on GitHub ↗

Registry is an entity capable to orchestrate a Packer build and upload metadata to HCP

Source from the content-addressed store, hash-verified

15
16// Registry is an entity capable to orchestrate a Packer build and upload metadata to HCP
17type 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.

Callers 14

RunContextMethod · 0.65
RunContextMethod · 0.65
RunContextMethod · 0.65
RunContextMethod · 0.65
RunContextMethod · 0.65
LDFlagsFunction · 0.65
BinaryNameFunction · 0.65
ListInstallationsMethod · 0.65
RunContextMethod · 0.65
FetchEnforcedBlocksMethod · 0.65
FetchEnforcedBlocksMethod · 0.65
RunContextMethod · 0.65

Implementers 3

nullRegistryinternal/hcp/registry/null_registry.go
HCLRegistryinternal/hcp/registry/hcl.go
JSONRegistryinternal/hcp/registry/json.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…