mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-25 01:04:00 -04:00
As the rest of the build process was updated to remove references to the Build interface exposed by the SDK, we change the usage of such types in the hcp internal package, so they are typed with *CoreBuild too.
38 lines
775 B
Go
38 lines
775 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package registry
|
|
|
|
import (
|
|
"context"
|
|
|
|
sdkpacker "github.com/hashicorp/packer-plugin-sdk/packer"
|
|
"github.com/hashicorp/packer/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, *packer.CoreBuild) error {
|
|
return nil
|
|
}
|
|
|
|
func (r nullRegistry) CompleteBuild(
|
|
ctx context.Context,
|
|
build *packer.CoreBuild,
|
|
artifacts []sdkpacker.Artifact,
|
|
buildErr error,
|
|
) ([]sdkpacker.Artifact, error) {
|
|
return artifacts, nil
|
|
}
|
|
|
|
func (r nullRegistry) VersionStatusSummary() {}
|
|
|
|
func (r nullRegistry) Metadata() Metadata {
|
|
return NilMetadata{}
|
|
}
|