config

package
v0.1.3-beta7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 7 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	PackerConfig       common.PackerConfig `mapstructure:",squash"`
	CommunicatorConfig communicator.Config `mapstructure:",squash"`

	McpRegion            string `mapstructure:"mcp_region"`
	McpUser              string `mapstructure:"mcp_user"`
	McpPassword          string `mapstructure:"mcp_password"`
	DatacenterID         string `mapstructure:"datacenter"`
	NetworkDomainName    string `mapstructure:"networkdomain"`
	VLANName             string `mapstructure:"vlan"`
	SourceImage          string `mapstructure:"source_image"`
	TargetImage          string `mapstructure:"target_image"`
	InitialAdminPassword string `mapstructure:"initial_admin_password"`
	UsePrivateIPv4       bool   `mapstructure:"use_private_ipv4"`
	ClientIP             string `mapstructure:"client_ip"`
	UniquenessKey        string
	ServerName           string
}

Settings represents the settings for the customer image builder.

func (*Settings) GetCommunicatorConfig added in v0.1.2

func (settings *Settings) GetCommunicatorConfig() *communicator.Config

GetCommunicatorConfig retrieves the Packer communicator configuration for the plugin.

func (*Settings) GetMCPPassword added in v0.1.2

func (settings *Settings) GetMCPPassword() string

GetMCPPassword retrieves the Cloud Control password.

func (*Settings) GetMCPUser added in v0.1.2

func (settings *Settings) GetMCPUser() string

GetMCPUser retrieves the Cloud Control user name.

func (*Settings) GetPackerConfig added in v0.1.2

func (settings *Settings) GetPackerConfig() *common.PackerConfig

GetPackerConfig retrieves the common Packer configuration for the plugin.

func (*Settings) Validate

func (settings *Settings) Validate() (err error)

Validate determines if the settings is valid.

Jump to

Keyboard shortcuts

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