crd

package
v1.16.31-beta001 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteTemplate

func ExecuteTemplate(tmpl Template, data any) (string, error)

ExecuteTemplate executes crd template

func GenerateYAML added in v1.2.41

func GenerateYAML[G Gettable](tmpl Template, items []G) (string, error)

GenerateYAML generates CRDs yaml for Testkube models

Types

type Template

type Template string

Template is crd template type

const (
	// TemplateExecutor is executor crd template
	TemplateExecutor Template = "executor"
	// TemplateWebhook is webhook crd template
	TemplateWebhook Template = "webhook"
	// TemplateTest is test crd template
	TemplateTest Template = "test"
	// TemplateTestSuite is test suite crd template
	TemplateTestSuite Template = "testsuite"
	// TemplateTestTrigger is test trigger crd template
	TemplateTestTrigger Template = "testtrigger"
	// TemplateTestSource is test source crd template
	TemplateTestSource Template = "testsource"
	// TemplateTemplate is template crd template
	TemplateTemplate Template = "template"
)

Jump to

Keyboard shortcuts

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