config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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