provision

package
v1.0.0-rc07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
var (
	Templates *template.Template
)

Templates holds the parsed templates, ready for execution.

View Source
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

func ValidateTemplateData(data any) error

ValidateTemplateData validates the configuration data before template rendering. It checks for network plugin configuration consistency and Windows node settings.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL