Documentation
¶
Overview ¶
Package provision provides functionality for managing provisioning templates.
This package is responsible for parsing and managing the embedded templates used for provisioning. It uses Go's `embed` package to include the templates in the binary.
When to use ¶
This package is used internally by other packages in opencenter, such as the `ansible` and `terraform` packages, to execute provisioning templates. It is not intended for direct use by end-users.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
Templates *template.Template
)
Templates holds the parsed templates, ready for execution.
var TemplatesFS = templatesFS
TemplatesFS exposes the embedded templates filesystem for external use, particularly for template registry integration.
Functions ¶
func Init ¶
func Init() error
Init parses the embedded templates and stores them in the Templates variable. It uses a sync.Once to ensure that the templates are parsed only once.
Outputs:
- error: An error if one occurred during template parsing.
func ValidateTemplateData ¶
ValidateTemplateData validates the configuration data before template rendering. It checks for network plugin configuration consistency and Windows node settings.
Types ¶
This section is empty.