templates

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package templates provides methods for rendering templates used for creating Tinkerbell machines for ClusterAPI.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingName is the error returned when the WorfklowTemplate Name is not specified.
	ErrMissingName = fmt.Errorf("name can't be empty")

	// ErrMissingImageURL is the error returned when the WorfklowTemplate ImageURL is not specified.
	ErrMissingImageURL = fmt.Errorf("imageURL can't be empty")
)

Functions

This section is empty.

Types

type WorkflowTemplate

type WorkflowTemplate struct {
	Name               string
	MetadataURL        string
	ImageURL           string
	DestDisk           string
	DestPartition      string
	DeviceTemplateName string
}

WorkflowTemplate is a helper struct for rendering CAPT Template data.

func (*WorkflowTemplate) Render

func (wt *WorkflowTemplate) Render() (string, error)

Render renders workflow template for a given machine including user-data.

Jump to

Keyboard shortcuts

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