bundle

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleStrategy

type BundleStrategy interface {
	Parse(*deployer.CommonData, deployer.HostinfoDriver, *xmlinput.XMLInputData) (map[string]interface{}, error)
}

type Config

type Config struct {
	Name               string            `xml:"name"`
	CPUs               int               `xml:"cpus"`
	RAM                int               `xml:"ram_mb"`
	StorageConfigIndex image.ConfigIndex `xml:"storage_config_index"`
}

type DefaultBundle

type DefaultBundle struct {
	Configs        []*Config `xml:"config"`
	AdvancedConfig bool      `xml:"advanced_config"`
}

func (*DefaultBundle) Parse

func (b *DefaultBundle) Parse(d *deployer.CommonData, hidriver deployer.HostinfoDriver, xid *xmlinput.XMLInputData) (map[string]interface{}, error)

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(bundleConfigFile string, s BundleStrategy) (*Parser, error)

func NewParserBuff

func NewParserBuff(bundleConfigStream []byte, s BundleStrategy) (*Parser, error)

func (*Parser) Parse

func (p *Parser) Parse(d *deployer.CommonData, hidriver deployer.HostinfoDriver, xid *xmlinput.XMLInputData) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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