hcl2template

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by "mapstructure-to-hcl2 -type MockConfig,NestedMockConfig"; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlatMockConfig

type FlatMockConfig struct {
	NotSquashed          *string                `mapstructure:"not_squashed" cty:"not_squashed"`
	String               *string                `mapstructure:"string" cty:"string"`
	Int                  *int                   `mapstructure:"int" cty:"int"`
	Int64                *int64                 `mapstructure:"int64" cty:"int64"`
	Bool                 *bool                  `mapstructure:"bool" cty:"bool"`
	Trilean              *bool                  `mapstructure:"trilean" cty:"trilean"`
	Duration             *string                `mapstructure:"duration" cty:"duration"`
	MapStringString      map[string]string      `mapstructure:"map_string_string" cty:"map_string_string"`
	SliceString          []string               `mapstructure:"slice_string" cty:"slice_string"`
	SliceSliceString     [][]string             `mapstructure:"slice_slice_string" cty:"slice_slice_string"`
	NamedMapStringString NamedMapStringString   `mapstructure:"named_map_string_string" cty:"named_map_string_string"`
	NamedString          *NamedString           `mapstructure:"named_string" cty:"named_string"`
	Nested               *FlatNestedMockConfig  `mapstructure:"nested" cty:"nested"`
	NestedSlice          []FlatNestedMockConfig `mapstructure:"nested_slice" cty:"nested_slice"`
}

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

func (*FlatMockConfig) HCL2Spec

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

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

type FlatNestedMockConfig

type FlatNestedMockConfig struct {
	String               *string              `mapstructure:"string" cty:"string"`
	Int                  *int                 `mapstructure:"int" cty:"int"`
	Int64                *int64               `mapstructure:"int64" cty:"int64"`
	Bool                 *bool                `mapstructure:"bool" cty:"bool"`
	Trilean              *bool                `mapstructure:"trilean" cty:"trilean"`
	Duration             *string              `mapstructure:"duration" cty:"duration"`
	MapStringString      map[string]string    `mapstructure:"map_string_string" cty:"map_string_string"`
	SliceString          []string             `mapstructure:"slice_string" cty:"slice_string"`
	SliceSliceString     [][]string           `mapstructure:"slice_slice_string" cty:"slice_slice_string"`
	NamedMapStringString NamedMapStringString `mapstructure:"named_map_string_string" cty:"named_map_string_string"`
	NamedString          *NamedString         `mapstructure:"named_string" cty:"named_string"`
}

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

func (*FlatNestedMockConfig) HCL2Spec

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

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

type MockBuilder

type MockBuilder struct {
	Config MockConfig
}

func (*MockBuilder) ConfigSpec

func (b *MockBuilder) ConfigSpec() hcldec.ObjectSpec

func (*MockBuilder) Prepare

func (b *MockBuilder) Prepare(raws ...interface{}) ([]string, []string, error)

func (*MockBuilder) Run

func (b *MockBuilder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (packer.Artifact, error)

type MockCommunicator

type MockCommunicator struct {
	Config MockConfig
	packer.Communicator
}

func (*MockCommunicator) ConfigSpec

func (b *MockCommunicator) ConfigSpec() hcldec.ObjectSpec

func (*MockCommunicator) Configure

func (b *MockCommunicator) Configure(raws ...interface{}) ([]string, error)

type MockConfig

type MockConfig struct {
	NotSquashed      string `mapstructure:"not_squashed"`
	NestedMockConfig `mapstructure:",squash"`
	Nested           NestedMockConfig   `mapstructure:"nested"`
	NestedSlice      []NestedMockConfig `mapstructure:"nested_slice"`
}

func (*MockConfig) FlatMapstructure

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

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

type MockPostProcessor

type MockPostProcessor struct {
	Config MockConfig
}

func (*MockPostProcessor) ConfigSpec

func (b *MockPostProcessor) ConfigSpec() hcldec.ObjectSpec

func (*MockPostProcessor) Configure

func (b *MockPostProcessor) Configure(raws ...interface{}) error

func (*MockPostProcessor) PostProcess

type MockProvisioner

type MockProvisioner struct {
	Config MockConfig
}

func (*MockProvisioner) ConfigSpec

func (b *MockProvisioner) ConfigSpec() hcldec.ObjectSpec

func (*MockProvisioner) Prepare

func (b *MockProvisioner) Prepare(raws ...interface{}) error

func (*MockProvisioner) Provision

func (b *MockProvisioner) Provision(ctx context.Context, ui packer.Ui, comm packer.Communicator, _ map[string]interface{}) error

type NamedMapStringString

type NamedMapStringString map[string]string

type NamedString

type NamedString string

type NestedMockConfig

type NestedMockConfig struct {
	String               string               `mapstructure:"string"`
	Int                  int                  `mapstructure:"int"`
	Int64                int64                `mapstructure:"int64"`
	Bool                 bool                 `mapstructure:"bool"`
	Trilean              config.Trilean       `mapstructure:"trilean"`
	Duration             time.Duration        `mapstructure:"duration"`
	MapStringString      map[string]string    `mapstructure:"map_string_string"`
	SliceString          []string             `mapstructure:"slice_string"`
	SliceSliceString     [][]string           `mapstructure:"slice_slice_string"`
	NamedMapStringString NamedMapStringString `mapstructure:"named_map_string_string"`
	NamedString          NamedString          `mapstructure:"named_string"`
}

func (*NestedMockConfig) FlatMapstructure

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

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

Jump to

Keyboard shortcuts

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