Documentation ¶
Overview ¶
Code generated by "mapstructure-to-hcl2 -type Config"; DO NOT EDIT.
Index ¶
- Constants
- type Artifact
- type Builder
- type Communicator
- func (c *Communicator) Download(src string, w io.Writer) error
- func (c *Communicator) DownloadDir(src string, dst string, exclude []string) error
- func (c *Communicator) Start(ctx context.Context, remote *packer.RemoteCmd) error
- func (c *Communicator) Upload(dst string, r io.Reader, fi *os.FileInfo) error
- func (c *Communicator) UploadDir(dst string, src string, exclude []string) error
- type Config
- type ExecWrapper
- type FlatConfig
- type Machine
- func (m *Machine) Chroot(args ...string) error
- func (m *Machine) Clone(base string) error
- func (m *Machine) CopyFrom(src string, dst string) error
- func (m *Machine) CopyTo(src string, dst string) error
- func (m *Machine) Exists() bool
- func (m *Machine) Import(image string) error
- func (m *Machine) Path() string
- func (m *Machine) Read(src string, w io.Writer) error
- func (m *Machine) Remove() error
- func (m *Machine) Run(args ...string) error
- func (m *Machine) RunAndWait(command string, marker string) error
- func (m *Machine) RunLocal(args ...string) error
- func (m *Machine) Start() error
- func (m *Machine) Stop() error
- func (m *Machine) Write(dst string, r io.Reader) error
- type StepClone
- type StepDebootstrap
- type StepImport
- type StepPrepareTarget
- type StepProvision
Constants ¶
View Source
const BuilderId = "angdraug.nspawn"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) ConfigSpec ¶
func (b *Builder) ConfigSpec() hcldec.ObjectSpec
type Communicator ¶
type Communicator struct {
// contains filtered or unexported fields
}
func (*Communicator) DownloadDir ¶
func (c *Communicator) DownloadDir(src string, dst string, exclude []string) error
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` // Import container image from a URL, file, or a directory tree, in a // format recognized by import-* and pull-* commands of machinectl(1). Import string `mapstructure:"import"` // Name of a local container to clone. When neither import nor clone // options are set, a new image will be created with debootstrap(8). Clone string `mapstructure:"clone"` // Distribution release code name as recognized by debootstrap(8). // The default is `unstable`. Suite string `mapstructure:"suite"` // URL for the distribution mirror. // The default is https://deb.debian.org/debian. Mirror string `mapstructure:"mirror"` // Absolute path to a directory where .deb files will be cached. // The default is the host's APT cache at `/var/cache/apt/archives`. CacheDir string `mapstructure:"cache_dir"` // Absolute path to the directory where systemd-nspawn expects to find // the container chroots. The default is `/var/lib/machines`. MachinesDir string `mapstructure:"machines_dir"` // The bootstrap script variant as recognized by debootstrap(8). Variant string `mapstructure:"variant"` // The timeout in seconds to wait for the container to start. // The default is 20 seconds. Timeout time.Duration `mapstructure:"timeout"` // contains filtered or unexported fields }
func (*Config) FlatMapstructure ¶
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 ExecWrapper ¶
type ExecWrapper struct {
// contains filtered or unexported fields
}
func (*ExecWrapper) Run ¶
func (e *ExecWrapper) Run(args ...string) error
type FlatConfig ¶
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"` Import *string `mapstructure:"import" cty:"import" hcl:"import"` Clone *string `mapstructure:"clone" cty:"clone" hcl:"clone"` Suite *string `mapstructure:"suite" cty:"suite" hcl:"suite"` Mirror *string `mapstructure:"mirror" cty:"mirror" hcl:"mirror"` CacheDir *string `mapstructure:"cache_dir" cty:"cache_dir" hcl:"cache_dir"` MachinesDir *string `mapstructure:"machines_dir" cty:"machines_dir" hcl:"machines_dir"` Variant *string `mapstructure:"variant" cty:"variant" hcl:"variant"` Timeout *string `mapstructure:"timeout" cty:"timeout" hcl:"timeout"` }
FlatConfig is an auto-generated flat version of Config. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
type StepDebootstrap ¶
type StepDebootstrap struct{}
func (*StepDebootstrap) Cleanup ¶
func (s *StepDebootstrap) Cleanup(state multistep.StateBag)
func (*StepDebootstrap) Run ¶
func (s *StepDebootstrap) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
type StepImport ¶
type StepImport struct{}
func (*StepImport) Cleanup ¶
func (s *StepImport) Cleanup(state multistep.StateBag)
func (*StepImport) Run ¶
func (s *StepImport) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
type StepPrepareTarget ¶
type StepPrepareTarget struct{}
func (*StepPrepareTarget) Cleanup ¶
func (s *StepPrepareTarget) Cleanup(state multistep.StateBag)
func (*StepPrepareTarget) Run ¶
func (s *StepPrepareTarget) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
type StepProvision ¶
type StepProvision struct{}
func (*StepProvision) Cleanup ¶
func (s *StepProvision) Cleanup(state multistep.StateBag)
func (*StepProvision) Run ¶
func (s *StepProvision) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
Click to show internal directories.
Click to hide internal directories.