metadata

package
v0.0.0-...-3a64f8a Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessNetworkTemplate

func ProcessNetworkTemplate(mode *xmlinput.Mode, defaultTemplate string, tmpltData interface{}, templatesDir string) (string, error)

func RegisterSteps

func RegisterSteps(d *deployer.CommonData, i *InputData, c *Config, metaconf deployer.MetadataConfigurator) error

Types

type Config

type Config struct {
	// Common configuration
	*deployer.CommonConfig

	// Hostinfo driver
	Hwdriver deployer.HostinfoDriver

	// Environment driver
	EnvDriver deployer.EnvDriver

	GuestConfig *guest.Config

	// Common metadata stuff
	Metadata *Metadata

	// Path to metadata file
	DestMetadataFile string

	// Bundle config
	Bundle map[string]interface{}
}

Config contains common configuration plus appropriate configuration required for appliances powered by environment based on libvirt API

func NewMetdataConfig

func NewMetdataConfig(d *deployer.CommonData, storageConfigFile string) (*Config, error)

type InputData

type InputData struct {
	// Path to the lshw binary
	Lshw string

	// Path to the basic configuration file (see xmlinput package)
	InputDataConfigFile string

	// Path to the bundle configuration file (see bundle package)
	BundleDataConfigFile string

	// Path to the storage configuration file (see image package)
	StorageConfigFile string

	// Bundle parser
	BundleParser *bundle.Parser

	// Path to directory containing appropriate templates intended
	// for overriding default configuration
	TemplatesDir string
}

InputData provides a static data

type Metadata

type Metadata struct {
	DomainName   string
	RAM          int
	CPUs         int
	CPUTune      string
	CPUConfig    string
	NUMATune     string
	EmulatorPath string
	Storage      string
	Networks     string
	CustomData   interface{}
}

Metadata contains elements that will processed by the template library and used by Libvirt XML metadata

Directories

Path Synopsis
libvirt
libvirt_kvm
Intended for creating configuration related to those deployments where the target appliance assumed to be powered by libvirt API
Intended for creating configuration related to those deployments where the target appliance assumed to be powered by libvirt API
openxen

Jump to

Keyboard shortcuts

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