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: 5 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)

	AssertionsTemplate, _ = template.New("assertionsTemplate").Funcs(genhelpers.BuildTemplateFuncMap(
		genhelpers.FirstLetterLowercase,
		genhelpers.FirstLetter,
		genhelpers.SnakeCase,
		genhelpers.RunMapper,
	)).Parse(assertionsTemplateContent)

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

Functions

This section is empty.

Types

type PreambleModel

type PreambleModel struct {
	PackageName               string
	AdditionalStandardImports []string
}

TODO [SNOW-1501905]: extract to commons?

type ResourceShowOutputAssertionModel

type ResourceShowOutputAssertionModel struct {
	Name             string
	ConcreteType     string
	AssertionCreator string
	Mapper           genhelpers.Mapper
}

func MapToResourceShowOutputAssertion

func MapToResourceShowOutputAssertion(field genhelpers.Field) ResourceShowOutputAssertionModel

type ResourceShowOutputAssertionsModel

type ResourceShowOutputAssertionsModel struct {
	Name       string
	Attributes []ResourceShowOutputAssertionModel
	PreambleModel
}

func (ResourceShowOutputAssertionsModel) SomeFunc

func (m ResourceShowOutputAssertionsModel) SomeFunc()

Jump to

Keyboard shortcuts

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