utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package utils contains test utilities for cluster-api-provider-tinkerbell.

Index

Constants

View Source
const HelloWorldTemplate = `` /* 208-byte string literal not displayed */

HelloWorldTemplate for use in testing.

Variables

This section is empty.

Functions

func GenerateHardware

func GenerateHardware(numInterfaces int) (*hardware.Hardware, error)

GenerateHardware generates a Tinkerbell Hardware for testing.

func GenerateHardwareInterface

func GenerateHardwareInterface(cidr string) (*hardware.Hardware_Network_Interface, error)

GenerateHardwareInterface generates a Tinkerbell Hardware Interface for testing.

func GenerateTemplate

func GenerateTemplate(name, data string) *template.WorkflowTemplate

GenerateTemplate generates a Tinkerbell Template for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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