Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PreambleTemplate, _ = template.New("preambleTemplate").Parse(preambleTemplateContent)
DefinitionTemplate, _ = template.New("definitionTemplate").Parse(definitionTemplateContent)
AssertionsTemplate, _ = template.New("assertionsTemplate").Funcs(genhelpers.BuildTemplateFuncMap(
genhelpers.FirstLetterLowercase,
genhelpers.FirstLetter,
genhelpers.SnakeCaseToCamel,
)).Parse(assertionsTemplateContent)
AllTemplates = []*template.Template{PreambleTemplate, DefinitionTemplate, AssertionsTemplate}
)
Functions ¶
func GetResourceSchemaDetails ¶
func GetResourceSchemaDetails() []genhelpers.ResourceSchemaDetails
Types ¶
type PreambleModel ¶
TODO [SNOW-1501905]: extract to commons?
type ResourceAssertionsModel ¶
type ResourceAssertionsModel struct { Name string Attributes []ResourceAttributeAssertionModel PreambleModel }
func ModelFromResourceSchemaDetails ¶
func ModelFromResourceSchemaDetails(resourceSchemaDetails genhelpers.ResourceSchemaDetails) ResourceAssertionsModel
func (ResourceAssertionsModel) SomeFunc ¶
func (m ResourceAssertionsModel) SomeFunc()
type ResourceSchemaDef ¶
type ResourceSchemaDef struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.