MCPcopy
hub / github.com/hashicorp/packer / Write

Method Write

command/hcl2_upgrade.go:908–915  ·  view source on GitHub ↗
(out *bytes.Buffer)

Source from the content-addressed store, hash-verified

906}
907
908func (p *PackerParser) Write(out *bytes.Buffer) {
909 if len(p.out) > 0 {
910 if p.WithAnnotations {
911 out.Write([]byte(packerBlockHeader))
912 }
913 out.Write(p.out)
914 }
915}
916
917type VariableParser struct {
918 WithAnnotations bool

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected