templates

package
v0.0.0-...-ff79166 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlagLabelByPrefix

func GetFlagLabelByPrefix(template *templatev1.Template, labelPrefix string) (string, string)

Get label whose key starts with labelPrefix and has value true returns key, val if such label is found

func GetOs

func GetOs(template *templatev1.Template) (string, string)

returns osID, osName

Types

type TemplateProvider

type TemplateProvider interface {
	Get(namespace string, name string) (*templatev1.Template, error)
	Process(namespace string, template *templatev1.Template, paramValues map[string]string) (*templatev1.Template, error)
}

func NewTemplateProvider

func NewTemplateProvider(client tempclient.TemplateV1Interface) TemplateProvider

Jump to

Keyboard shortcuts

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