Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { InstallCmd []string `mapstructure:"install_cmd"` Keyword string `mapstructure:"keyword"` Local bool `mapstructure:"local"` Marker string `mapstructure:"marker"` Processes int `mapstructure:"processes"` PytestPath string `mapstructure:"pytest_path"` Sudo bool `mapstructure:"sudo"` TestFiles []string `mapstructure:"test_files"` // contains filtered or unexported fields }
config data unmarshalled from packer template/config
type FlatConfig ¶
type FlatConfig struct { InstallCmd []string `mapstructure:"install_cmd" cty:"install_cmd" hcl:"install_cmd"` Keyword *string `mapstructure:"keyword" cty:"keyword" hcl:"keyword"` Local *bool `mapstructure:"local" cty:"local" hcl:"local"` Marker *string `mapstructure:"marker" cty:"marker" hcl:"marker"` Processes *int `mapstructure:"processes" cty:"processes" hcl:"processes"` PytestPath *string `mapstructure:"pytest_path" cty:"pytest_path" hcl:"pytest_path"` Sudo *bool `mapstructure:"sudo" cty:"sudo" hcl:"sudo"` TestFiles []string `mapstructure:"test_files" cty:"test_files" hcl:"test_files"` }
FlatConfig is an auto-generated flat version of Config. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
implements the packer.Provisioner interface as testinfra.Provisioner
func (*Provisioner) ConfigSpec ¶
func (provisioner *Provisioner) ConfigSpec() hcldec.ObjectSpec
implements configspec with hcl2spec helper function
func (*Provisioner) Prepare ¶
func (provisioner *Provisioner) Prepare(raws ...interface{}) error
prepares the provisioner plugin
Click to show internal directories.
Click to hide internal directories.