docs

package
v0.0.0-...-c3394cd Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicVM

func BasicVM(name, image string) *v1.VirtualMachine

func CloudInit

func CloudInit(data *UserData) string

func Ignition

func Ignition(data *UserData) string

func NewVM

func NewVM(name, image string, opts ...Option) *v1.VirtualMachine

func Template

func Template() *template.Template

Types

type Option

type Option func(vm *v1.VirtualMachine)

func WithCloudInitConfigDrive

func WithCloudInitConfigDrive(userData string) Option

func WithCloudInitNoCloud

func WithCloudInitNoCloud(userData string) Option

func WithRng

func WithRng() Option

func WithSecureBoot

func WithSecureBoot() Option

type TemplateData

type TemplateData struct {
	Name        string
	Description string
	Example     string
}

type UserData

type UserData struct {
	Username       string
	AuthorizedKeys []string
}

Jump to

Keyboard shortcuts

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