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.
Click to show internal directories.
Click to hide internal directories.