config

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlatProvisioner

type FlatProvisioner struct {
	Version        *string `cty:"version" hcl:"version"`
	User           *string `cty:"user" hcl:"user"`
	DbusVersion    *string `cty:"dbus_version" hcl:"dbus_version"`
	DubsX11Version *string `cty:"dubs_x11_version" hcl:"dubs_x11_version"`
	SSHPubEntry    *string `cty:"ssh_pub_entry" hcl:"ssh_pub_entry"`
}

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

func (*FlatProvisioner) HCL2Spec

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

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

type Provisioner

type Provisioner struct {
	Version        string
	User           string
	DbusVersion    string
	DubsX11Version string
	SSHPubEntry    string
}

Provisioner is our provisioner configuration.

func (*Provisioner) Defaults

func (p *Provisioner) Defaults()

Default inputs default values.

func (*Provisioner) FlatMapstructure

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

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

func (*Provisioner) Validate

func (p *Provisioner) Validate() error

Validate validates the config looks correct.

Jump to

Keyboard shortcuts

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