templates

package
v0.0.0-...-d5d859e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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
	Username          string
	Password          string
	HardwareProfile   string
	BootMacAddress    string
	Consumer          string
	ConsumerNamespace 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