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

Struct Core

packer/core.go:35–46  ·  view source on GitHub ↗

Core is the main executor of Packer. If Packer is being used as a library, this is the struct you'll want to instantiate to get anything done.

Source from the content-addressed store, hash-verified

33// Core is the main executor of Packer. If Packer is being used as a
34// library, this is the struct you'll want to instantiate to get anything done.
35type Core struct {
36 Template *template.Template
37
38 components ComponentFinder
39 variables map[string]string
40 builds map[string]*template.Builder
41 version string
42 secrets []string
43
44 except []string
45 only []string
46}
47
48// CoreConfig is the structure for initializing a new Core. Once a CoreConfig
49// is used to initialize a Core, it shouldn't be re-used or modified again.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected