template

package
v0.0.0-...-7a8ee34 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DescriptionParam         = "DESCRIPTION"
	NameParam                = "NAME"
	DataVolumeNameParam      = "DATA_SOURCE_NAME"
	DataVolumeNamespaceParam = "DATA_SOURCE_NAMESPACE"
)
View Source
const (
	CirrosTemplateName = "cirros-vm-template"
)
View Source
const (
	RhelTemplateName = "rhel8-desktop-tiny"
)

Variables

This section is empty.

Functions

func GetVM

func GetVM(template *v1.Template) *kubevirtv1.VirtualMachine

func TemplateParam

func TemplateParam(key, value string) string

Types

type TestTemplate

type TestTemplate struct {
	Data *v1.Template
}

func NewCirrosServerTinyTemplate

func NewCirrosServerTinyTemplate() *TestTemplate

func NewFedoraServerTinyTemplate

func NewFedoraServerTinyTemplate() *TestTemplate

func NewRhelDesktopTinyTemplate

func NewRhelDesktopTinyTemplate() *TestTemplate

func (*TestTemplate) Build

func (t *TestTemplate) Build() *v1.Template

func (*TestTemplate) WithDescriptionParam

func (t *TestTemplate) WithDescriptionParam() *TestTemplate

func (*TestTemplate) WithDisk

func (t *TestTemplate) WithDisk(disk kubevirtv1.Disk) *TestTemplate

func (*TestTemplate) WithNoVM

func (t *TestTemplate) WithNoVM() *TestTemplate

func (*TestTemplate) WithNonMatchingDisk

func (t *TestTemplate) WithNonMatchingDisk() *TestTemplate

func (*TestTemplate) WithSCSIDiskValidations

func (t *TestTemplate) WithSCSIDiskValidations() *TestTemplate

func (*TestTemplate) WithSataDiskValidations

func (t *TestTemplate) WithSataDiskValidations() *TestTemplate

func (*TestTemplate) WithVirtioDiskValidations

func (t *TestTemplate) WithVirtioDiskValidations() *TestTemplate

func (*TestTemplate) WithVolume

func (t *TestTemplate) WithVolume(volume kubevirtv1.Volume) *TestTemplate

Jump to

Keyboard shortcuts

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