Documentation ¶
Overview ¶
Code generated by "mapstructure-to-hcl2 -type Config"; DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` // The command to run serverspec Command string `mapstructure:"command"` // Extra options to pass to the serverspec command ExtraArguments []string `mapstructure:"extra_arguments"` // Serverspec environment variables RakeEnvVars []string `mapstructure:"rake_env_vars"` // The main Rakefile to execute. RakeFile string `mapstructure:"rake_file"` RakeTask string `mapstructure:"rake_task"` User string `mapstructure:"user"` LocalPort string `mapstructure:"local_port"` SSHHostKeyFile string `mapstructure:"ssh_host_key_file"` SSHAuthorizedKeyFile string `mapstructure:"ssh_authorized_key_file"` SFTPCmd string `mapstructure:"sftp_command"` // contains filtered or unexported fields }
Config data passed from the template JSON
func (*Config) FlatMapstructure ¶ added in v0.2.0
FlatMapstructure returns a new FlatConfig. FlatConfig is an auto-generated flat version of Config. Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.
type FlatConfig ¶ added in v0.2.0
type FlatConfig struct { PackerBuildName *string `mapstructure:"packer_build_name" cty:"packer_build_name" hcl:"packer_build_name"` PackerBuilderType *string `mapstructure:"packer_builder_type" cty:"packer_builder_type" hcl:"packer_builder_type"` PackerDebug *bool `mapstructure:"packer_debug" cty:"packer_debug" hcl:"packer_debug"` PackerForce *bool `mapstructure:"packer_force" cty:"packer_force" hcl:"packer_force"` PackerOnError *string `mapstructure:"packer_on_error" cty:"packer_on_error" hcl:"packer_on_error"` PackerUserVars map[string]string `mapstructure:"packer_user_variables" cty:"packer_user_variables" hcl:"packer_user_variables"` PackerSensitiveVars []string `mapstructure:"packer_sensitive_variables" cty:"packer_sensitive_variables" hcl:"packer_sensitive_variables"` Command *string `mapstructure:"command" cty:"command" hcl:"command"` ExtraArguments []string `mapstructure:"extra_arguments" cty:"extra_arguments" hcl:"extra_arguments"` RakeEnvVars []string `mapstructure:"rake_env_vars" cty:"rake_env_vars" hcl:"rake_env_vars"` RakeFile *string `mapstructure:"rake_file" cty:"rake_file" hcl:"rake_file"` RakeTask *string `mapstructure:"rake_task" cty:"rake_task" hcl:"rake_task"` User *string `mapstructure:"user" cty:"user" hcl:"user"` LocalPort *string `mapstructure:"local_port" cty:"local_port" hcl:"local_port"` SSHHostKeyFile *string `mapstructure:"ssh_host_key_file" cty:"ssh_host_key_file" hcl:"ssh_host_key_file"` SSHAuthorizedKeyFile *string `mapstructure:"ssh_authorized_key_file" cty:"ssh_authorized_key_file" hcl:"ssh_authorized_key_file"` SFTPCmd *string `mapstructure:"sftp_command" cty:"sftp_command" hcl:"sftp_command"` }
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
}
Provisioner data passed to the provision operation
func (*Provisioner) Cancel ¶
func (p *Provisioner) Cancel()
func (*Provisioner) ConfigSpec ¶ added in v0.2.0
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec
func (*Provisioner) Prepare ¶
func (p *Provisioner) Prepare(raws ...interface{}) error
Click to show internal directories.
Click to hide internal directories.