@@ -38,7 +38,7 @@ type RawBuilderConfig struct {
38
38
Name string
39
39
Type string
40
40
41
- rawConfig interface {}
41
+ RawConfig interface {}
42
42
}
43
43
44
44
// RawPostProcessorConfig represents a raw, unprocessed post-processor
@@ -47,7 +47,7 @@ type RawBuilderConfig struct {
47
47
type RawPostProcessorConfig struct {
48
48
Type string
49
49
KeepInputArtifact bool `mapstructure:"keep_input_artifact"`
50
- rawConfig interface {}
50
+ RawConfig interface {}
51
51
}
52
52
53
53
// RawProvisionerConfig represents a raw, unprocessed provisioner configuration.
@@ -57,7 +57,7 @@ type RawProvisionerConfig struct {
57
57
Type string
58
58
Override map [string ]interface {}
59
59
60
- rawConfig interface {}
60
+ RawConfig interface {}
61
61
}
62
62
63
63
// ParseTemplate takes a byte slice and parses a Template from it, returning
@@ -150,7 +150,7 @@ func ParseTemplate(data []byte) (t *Template, err error) {
150
150
// itself doesn't know about, and it will cause a validation error.
151
151
delete (v , "name" )
152
152
153
- raw .rawConfig = v
153
+ raw .RawConfig = v
154
154
155
155
t .Builders [raw .Name ] = raw
156
156
}
@@ -186,7 +186,7 @@ func ParseTemplate(data []byte) (t *Template, err error) {
186
186
continue
187
187
}
188
188
189
- config .rawConfig = pp
189
+ config .RawConfig = pp
190
190
}
191
191
}
192
192
@@ -215,7 +215,7 @@ func ParseTemplate(data []byte) (t *Template, err error) {
215
215
// actively reject them as invalid configuration.
216
216
delete (v , "override" )
217
217
218
- raw .rawConfig = v
218
+ raw .RawConfig = v
219
219
}
220
220
221
221
if len (t .Builders ) == 0 {
@@ -365,7 +365,7 @@ func (t *Template) Build(name string, components *ComponentFinder) (b Build, err
365
365
current [i ] = coreBuildPostProcessor {
366
366
processor : pp ,
367
367
processorType : rawPP .Type ,
368
- config : rawPP .rawConfig ,
368
+ config : rawPP .RawConfig ,
369
369
keepInputArtifact : rawPP .KeepInputArtifact ,
370
370
}
371
371
}
@@ -388,7 +388,7 @@ func (t *Template) Build(name string, components *ComponentFinder) (b Build, err
388
388
}
389
389
390
390
configs := make ([]interface {}, 1 , 2 )
391
- configs [0 ] = rawProvisioner .rawConfig
391
+ configs [0 ] = rawProvisioner .RawConfig
392
392
393
393
if rawProvisioner .Override != nil {
394
394
if override , ok := rawProvisioner .Override [name ]; ok {
@@ -403,7 +403,7 @@ func (t *Template) Build(name string, components *ComponentFinder) (b Build, err
403
403
b = & coreBuild {
404
404
name : name ,
405
405
builder : builder ,
406
- builderConfig : builderConfig .rawConfig ,
406
+ builderConfig : builderConfig .RawConfig ,
407
407
builderType : builderConfig .Type ,
408
408
hooks : hooks ,
409
409
postProcessors : postProcessors ,
0 commit comments