mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-23 08:21:43 -04:00
* add hcp packer new nomenclature updates * Update docs with nomenclature changes * Update navigation bar links * Bump github.com/hashicorp/hcp-sdk-go from 0.81.0 to 0.82.0 * fix acceptance test template --------- Co-authored-by: sylviamoss <[email protected]> Co-authored-by: Wilken Rivera <[email protected]>
33 lines
664 B
Go
33 lines
664 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package registry
|
|
|
|
import (
|
|
"context"
|
|
|
|
sdkpacker "github.com/hashicorp/packer-plugin-sdk/packer"
|
|
)
|
|
|
|
// nullRegistry is a special handler that does nothing
|
|
type nullRegistry struct{}
|
|
|
|
func (r nullRegistry) PopulateVersion(context.Context) error {
|
|
return nil
|
|
}
|
|
|
|
func (r nullRegistry) StartBuild(context.Context, sdkpacker.Build) error {
|
|
return nil
|
|
}
|
|
|
|
func (r nullRegistry) CompleteBuild(
|
|
ctx context.Context,
|
|
build sdkpacker.Build,
|
|
artifacts []sdkpacker.Artifact,
|
|
buildErr error,
|
|
) ([]sdkpacker.Artifact, error) {
|
|
return artifacts, nil
|
|
}
|
|
|
|
func (r nullRegistry) VersionStatusSummary() {}
|