gen

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PreambleTemplate, _ = template.New("preambleTemplate").Parse(preambleTemplateContent)

	DefinitionTemplate, _ = template.New("definitionTemplate").Funcs(genhelpers.BuildTemplateFuncMap(
		genhelpers.FirstLetterLowercase,
		genhelpers.FirstLetter,
	)).Parse(definitionTemplateContent)

	SpecificChecksTemplate, _ = template.New("specificChecksTemplate").Funcs(genhelpers.BuildTemplateFuncMap(
		genhelpers.FirstLetterLowercase,
		genhelpers.FirstLetter,
		genhelpers.SnakeCaseToCamel,
	)).Parse(specificChecksTemplateContent)

	AllTemplates = []*template.Template{PreambleTemplate, DefinitionTemplate, SpecificChecksTemplate}
)

Functions

This section is empty.

Types

type PreambleModel

type PreambleModel struct {
	PackageName               string
	AdditionalStandardImports []string
}

TODO [SNOW-1501905]: extract to commons?

type ResourceParameterAssertionModel

type ResourceParameterAssertionModel struct {
	Name             string
	Type             string
	AssertionCreator string
}

type ResourceParametersAssertionsModel

type ResourceParametersAssertionsModel struct {
	Name       string
	Parameters []ResourceParameterAssertionModel
	PreambleModel
}

func (ResourceParametersAssertionsModel) SomeFunc

func (m ResourceParametersAssertionsModel) SomeFunc()

Jump to

Keyboard shortcuts

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