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 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)
Click to show internal directories.
Click to hide internal directories.