templates

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template struct {
	Name                           string
	BMCAddress                     string
	DisableCertificateVerification bool
	Username                       string
	Password                       string
	HardwareProfile                string
	BootMacAddress                 string
	BootMode                       string
	Consumer                       string
	ConsumerNamespace              string
	AutomatedCleaningMode          string
	ImageURL                       string
	ImageChecksum                  string
	ImageChecksumType              string
	ImageFormat                    string
}

Template holds the arguments to pass to the template.

func (Template) EncodedPassword

func (t Template) EncodedPassword() string

EncodedPassword returns the password in the format needed to store it in a Secret.

func (Template) EncodedUsername

func (t Template) EncodedUsername() string

EncodedUsername returns the username in the format needed to store it in a Secret.

func (Template) Render

func (t Template) Render() (string, error)

Render returns the string from the template or an error if there was a problem rendering it.

Jump to

Keyboard shortcuts

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