This commit is contained in:
Adrien Delorme 2020-07-06 11:38:12 +02:00
parent 1b669ff2ab
commit 90610dcf04
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,10 @@ import (
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )
// HCL2PostProcessor has a reference to the part of the HCL2 body where it is
// defined, allowing to completely reconfigure the PostProcessor right before
// calling PostProcess: with contextual variables.
// This permits using "${build.ID}" values for example.
type HCL2PostProcessor struct { type HCL2PostProcessor struct {
PostProcessor packer.PostProcessor PostProcessor packer.PostProcessor
postProcessorBlock *PostProcessorBlock postProcessorBlock *PostProcessorBlock

View File

@ -10,6 +10,10 @@ import (
"github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty"
) )
// HCL2Provisioner has a reference to the part of the HCL2 body where it is
// defined, allowing to completely reconfigure the Provisioner right before
// calling Provision: with contextual variables.
// This permits using "${build.ID}" values for example.
type HCL2Provisioner struct { type HCL2Provisioner struct {
Provisioner packer.Provisioner Provisioner packer.Provisioner
provisionerBlock *ProvisionerBlock provisionerBlock *ProvisionerBlock