func (wt WorkflowTemplate) Render() (string, error) {
	if wt.Name == "" {
		return "", ErrMissingName
	}
	if wt.ImageURL == "" {
		return "", ErrMissingImageURL
	}
	return fmt.Sprintf(workflowTemplate, wt.Name, wt.Name, wt.ImageURL, wt.DestDisk, wt.DestPartition,
		wt.MetadataURL, wt.DestPartition, wt.DestPartition), nil
}
Render renders workflow template for a given machine including user-data.
package templates
import (
	"fmt"
)
var (
	ErrMissingName = fmt.Errorf("name can't be empty")
	ErrMissingImageURL = fmt.Errorf("imageURL can't be empty")
)
type WorkflowTemplate struct {
	Name          string
	MetadataURL   string
	ImageURL      string
	DestDisk      string
	DestPartition string
}