Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadYamlTemplate ¶
Reads the given config .yml file, returns it as a slice of bytes.
Types ¶
type Resource ¶
func (*Resource) LoadConfigResources ¶
func (r *Resource) LoadConfigResources(yamlTemplate []byte) (config *cfgresources.ResourcesConfig)
Config resources are configuration parameters applied periodically, Given a yaml template this method gets the template rendered and returns Unmarshalled yaml.
func (*Resource) LoadSetupResources ¶
func (r *Resource) LoadSetupResources(yamlTemplate []byte) (config *cfgresources.ResourcesSetup)
Setup resources are one time setup parameters, it may involve resetting/power cycling various dependencies,
- e.g blades in a chassis that need to be power cycled if the flex addresses have been enabled/disabled.
Given a yaml template this method gets the template rendered and returns Unmarshalled yaml.
func (*Resource) RenderYamlTemplate ¶
Renders templated values in the given config .yml, returns it as a slice of bytes.
Click to show internal directories.
Click to hide internal directories.