From 12e9316f94e31e8f22a919bab1c44c1eb3a2ec5e Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Wed, 12 Oct 2022 10:34:51 -0400 Subject: [PATCH] Add documenation for HCPConfigMode type --- command/registry.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/command/registry.go b/command/registry.go index d79b65597..cf81b0cb6 100644 --- a/command/registry.go +++ b/command/registry.go @@ -16,13 +16,16 @@ import ( "github.com/zclconf/go-cty/cty/gocty" ) +// HCPConfigMode types specify the mode in which HCP configuration +// is defined for a given Packer build execution. type HCPConfigMode int const ( - // HCPConfigMode types specify the mode in which HCP configuration - // is defined for a given Packer build execution. + // HCPConfigUnset mode is set when no HCP configuration has been found for the Packer execution. HCPConfigUnset HCPConfigMode = iota + // HCPConfigEnabled mode is set when the HCP configuration is codified in the template. HCPConfigEnabled + // HCPEnvEnabled mode is set when the HCP configuration is read from environment variables. HCPEnvEnabled )