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/packer/registry_artifact.go

38 lines
676 B

package packer
import (
"fmt"
)
const BuilderId = "packer.post-processor.packer-registry"
type RegistryArtifact struct {
BucketSlug string
IterationID 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/iterations/%s", a.BucketSlug, a.IterationID)
}
func (*RegistryArtifact) State(name string) interface{} {
return nil
}
func (a *RegistryArtifact) Destroy() error {
return nil
}