Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Chdir string `mapstructure:"chdir" required:"false"` InstallCmd []string `mapstructure:"install_cmd" required:"false"` Keyword string `mapstructure:"keyword" required:"false"` Local bool `mapstructure:"local" required:"false"` Marker string `mapstructure:"marker" required:"false"` Parallel bool `mapstructure:"parallel" required:"false"` PytestPath string `mapstructure:"pytest_path" required:"false"` Sudo bool `mapstructure:"sudo" required:"false"` SudoUser string `mapstructure:"sudo_user" required:"false"` TestFiles []string `mapstructure:"test_files" required:"false"` Verbose int `mapstructure:"verbose" required:"false"` // contains filtered or unexported fields }
config data deserialized/unmarshalled from packer template/config
type FlatConfig ¶
type FlatConfig struct { Chdir *string `mapstructure:"chdir" required:"false" cty:"chdir" hcl:"chdir"` InstallCmd []string `mapstructure:"install_cmd" required:"false" cty:"install_cmd" hcl:"install_cmd"` Keyword *string `mapstructure:"keyword" required:"false" cty:"keyword" hcl:"keyword"` Local *bool `mapstructure:"local" required:"false" cty:"local" hcl:"local"` Marker *string `mapstructure:"marker" required:"false" cty:"marker" hcl:"marker"` Parallel *bool `mapstructure:"parallel" required:"false" cty:"parallel" hcl:"parallel"` PytestPath *string `mapstructure:"pytest_path" required:"false" cty:"pytest_path" hcl:"pytest_path"` Sudo *bool `mapstructure:"sudo" required:"false" cty:"sudo" hcl:"sudo"` SudoUser *string `mapstructure:"sudo_user" required:"false" cty:"sudo_user" hcl:"sudo_user"` TestFiles []string `mapstructure:"test_files" required:"false" cty:"test_files" hcl:"test_files"` Verbose *int `mapstructure:"verbose" required:"false" cty:"verbose" hcl:"verbose"` }
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.