mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-24 00:41:41 -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]>
41 lines
746 B
Go
41 lines
746 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package registry
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
const BuilderId = "packer.post-processor.hpc-packer-registry"
|
|
|
|
type registryArtifact struct {
|
|
BucketName string
|
|
VersionID string
|
|
BuildName string
|
|
}
|
|
|
|
func (a *registryArtifact) BuilderId() string {
|
|
return BuilderId
|
|
}
|
|
|
|
func (*registryArtifact) Id() string {
|
|
return ""
|
|
}
|
|
|
|
func (a *registryArtifact) Files() []string {
|
|
return []string{}
|
|
}
|
|
|
|
func (a *registryArtifact) String() string {
|
|
return fmt.Sprintf("Published metadata to HCP Packer registry packer/%s/versions/%s", a.BucketName, a.VersionID)
|
|
}
|
|
|
|
func (*registryArtifact) State(name string) interface{} {
|
|
return nil
|
|
}
|
|
|
|
func (a *registryArtifact) Destroy() error {
|
|
return nil
|
|
}
|