Documentation ¶
Index ¶
- type Element
- type Pair
- type Pairs
- func (t *Pairs) AddPair(key string, v interface{}) error
- func (t *Pairs) GetFloat(key string) (float64, error)
- func (t *Pairs) GetInt(key string) (int, error)
- func (v *Pairs) GetInts(key string) []int
- func (v *Pairs) GetPair(key string) (*Pair, error)
- func (v *Pairs) GetPairs(key string) []*Pair
- func (t *Pairs) GetStr(key string) (string, error)
- func (v *Pairs) GetStrs(key string) []string
- func (v *Pairs) String() string
- func (t *Pairs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type Template
- func (t *Template) AddPair(key string, v interface{}) error
- func (t *Template) AddPairToVec(vecKey, key string, value interface{}) error
- func (t *Template) AddVector(key string) *Vector
- func (t *Template) Del(key string)
- func (t *Template) GetFloat(key string) (float64, error)
- func (t *Template) GetInt(key string) (int, error)
- func (t *Template) GetInts(key string) []int
- func (t *Template) GetPair(key string) (*Pair, error)
- func (t *Template) GetPairs(key string) []*Pair
- func (t *Template) GetStr(key string) (string, error)
- func (t *Template) GetStrFromVec(vecKey, key string) (string, error)
- func (t *Template) GetStrs(key string) []string
- func (t *Template) GetVector(key string) (*Vector, error)
- func (t *Template) GetVectors(key string) []*Vector
- func (t *Template) String() string
- func (t *Template) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type TemplateAny
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pairs ¶
type Pairs []Pair
func (*Pairs) UnmarshalXML ¶
UnmarshalXML parse dynamically a bunch of pairs
type Template ¶
type Template struct {
Elements []Element
}
Template represents an OpenNebula syntax template
func (*Template) AddPairToVec ¶
func (*Template) GetStrFromVec ¶
GetStrFromVec returns a pair value contained from a vector
func (*Template) GetVectors ¶
GetVectors retrieve slice of vectors by key
func (*Template) UnmarshalXML ¶
UnmarshalXML parse dynamically a template under the TEMPLATE token
type TemplateAny ¶
type TemplateAny struct {
Template
}
type Vector ¶
Vector contains an array of keyvalue pairs
func (*Vector) UnmarshalXML ¶
UnmarshalXML parse dynamically a vector. Either a single vector, or inside of a TEMPLATE.
Click to show internal directories.
Click to hide internal directories.