Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplatesByType ¶
func GetTemplatesByType(templateType TemplateType) map[string]*Template
func IsValidTemplate ¶
func IsValidVersion ¶
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) ExtractDefaults ¶
func (l *Template) ExtractDefaults(lowerLang string, r reporeader.RepoReader) (map[string]string, 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
Click to show internal directories.
Click to hide internal directories.