postprocessor

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFlasher

func NewFlasher() packer.PostProcessor

Types

type FlashConfig

type FlashConfig struct {
	Device         string `mapstructure:"device"`
	NotInteractive bool   `mapstructure:"not_interactive"`
	Verify         bool   `mapstructure:"verify"`
}

func (*FlashConfig) FlatMapstructure

func (*FlashConfig) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec }

FlatMapstructure returns a new FlatFlashConfig. FlatFlashConfig is an auto-generated flat version of FlashConfig. Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.

type Flasher

type Flasher struct {
	// contains filtered or unexported fields
}

func (*Flasher) ConfigSpec

func (f *Flasher) ConfigSpec() hcldec.ObjectSpec

func (*Flasher) Configure

func (f *Flasher) Configure(cfgs ...interface{}) error

func (*Flasher) PostProcess

func (f *Flasher) PostProcess(ctx context.Context, ui packer.Ui, ain packer.Artifact) (a packer.Artifact, keep bool, forceOverride bool, err error)

type FlatFlashConfig

type FlatFlashConfig struct {
	Device         *string `mapstructure:"device" cty:"device" hcl:"device"`
	NotInteractive *bool   `mapstructure:"not_interactive" cty:"not_interactive" hcl:"not_interactive"`
	Verify         *bool   `mapstructure:"verify" cty:"verify" hcl:"verify"`
}

FlatFlashConfig is an auto-generated flat version of FlashConfig. Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.

func (*FlatFlashConfig) HCL2Spec

func (*FlatFlashConfig) HCL2Spec() map[string]hcldec.Spec

HCL2Spec returns the hcl spec of a FlashConfig. This spec is used by HCL to read the fields of FlashConfig. The decoded values from this spec will then be applied to a FlatFlashConfig.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL