handlers

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplates

func GetTemplates() map[string]*Template

GetTemplates returns all templates

func GetTemplatesByType

func GetTemplatesByType(templateType TemplateType) map[string]*Template

func IsValidTemplate

func IsValidTemplate(templateName string) bool

func IsValidVersion

func IsValidVersion(versions []string, version string) bool

IsValidVersion checks if a version is valid for a given version range

Types

type Template

type Template struct {
	Config *config.DraftConfig
	// contains filtered or unexported fields
}

func GetTemplate

func GetTemplate(name, version, dest string, templateWriter templatewriter.TemplateWriter) (*Template, error)

GetTemplate returns a template by name, version, and destination

func (*Template) DeepCopy

func (t *Template) DeepCopy() *Template

func (*Template) ExtractDefaults

func (l *Template) ExtractDefaults(lowerLang string, r reporeader.RepoReader) (map[string]string, error)

func (*Template) Generate

func (t *Template) Generate() error

type TemplateType

type TemplateType string
const (
	TemplateTypeDeployment TemplateType = "deployment"
	TemplateTypeDockerfile TemplateType = "dockerfile"
	TemplateTypeManifests  TemplateType = "manifest"
	TemplateTypeWorkflow   TemplateType = "workflow"
)

func (TemplateType) String

func (t TemplateType) String() string

Directories

Path Synopsis
variableextractors

Jump to

Keyboard shortcuts

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