Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func FromConf ¶
func FromConf(template *configs.ChildTemplate) (*Template, error)
FromConf converts the configs.ChildTemplate to a Template. It returns error if it fails to parse configs. It returns nil value if the configs.ChildTemplate is empty
func (*Template) GetGuaranteedResource ¶
GetGuaranteedResource returns a copy of guaranteed resource. it can be null
func (*Template) GetMaxResource ¶
GetMaxResource returns a copy of max resource. it can be null
func (*Template) GetProperties ¶
GetProperties returns a copy of properties. An empty map replaces the null value
func (*Template) GetTemplateInfo ¶
func (t *Template) GetTemplateInfo() *dao.TemplateInfo
GetTemplateInfo converts this to a TemplateInfo
Click to show internal directories.
Click to hide internal directories.