templates

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateFinder

type TemplateFinder struct {
	// contains filtered or unexported fields
}

TemplateFinder attempts to find a template based on given parameters

func NewTemplateFinder

func NewTemplateFinder(templateProvider templates.TemplateProvider, osFinder os.OSFinder) *TemplateFinder

NewTemplateFinder creates new TemplateFinder

func (*TemplateFinder) FindTemplate

func (f *TemplateFinder) FindTemplate(vm *mo.VirtualMachine) (*templatev1.Template, error)

FindTemplate attempts to find best match for a template based on the source VM

func (*TemplateFinder) GetMetadata

func (f *TemplateFinder) GetMetadata(template *templatev1.Template, vm *mo.VirtualMachine) (map[string]string, map[string]string, error)

GetMetadata fetches OS and workload specific labels and annotations

Jump to

Keyboard shortcuts

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