You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/internal/hcp/registry/artifact.go

41 lines
746 B

// 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
}