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,
genhelpers.SnakeCaseToCamel,
)).Parse(definitionTemplateContent)
// TODO [SNOW-1501905]: consider duplicating the builders template from resource (currently same template used for datasources and provider which limits the customization possibilities for just one block type)
AllTemplates = []*template.Template{PreambleTemplate, DefinitionTemplate, resourcemodel.BuildersTemplate}
)
Functions ¶
func GetDatasourceSchemaDetails ¶
func GetDatasourceSchemaDetails() []genhelpers.ResourceSchemaDetails
TODO [SNOW-1501905]: rename ResourceSchemaDetails (because it is used for the datasources and provider too)
Types ¶
type DatasourceSchemaDef ¶
type DatasourceSchemaDef struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.