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: 6 Imported by: 1

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"`
	OVFPackagePrefix string `mapstructure:"ovf_package_prefix"`
	TargetImage      string `mapstructure:"target_image"`
}

Settings represents the settings for the customer image import builder.

func (*Settings) GetCommunicatorConfig

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

GetCommunicatorConfig retrieves the Packer communicator configuration for the plugin.

func (*Settings) GetMCPPassword

func (settings *Settings) GetMCPPassword() string

GetMCPPassword retrieves the Cloud Control password.

func (*Settings) GetMCPUser

func (settings *Settings) GetMCPUser() string

GetMCPUser retrieves the Cloud Control user name.

func (*Settings) GetPackerConfig

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