Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PreambleTemplate, _ = template.New("preambleTemplate").Parse(preambleTemplateContent)
DefinitionTemplate, _ = template.New("definitionTemplate").Parse(definitionTemplateContent)
GenericChecksTemplate, _ = template.New("genericChecksTemplate").Funcs(genhelpers.BuildTemplateFuncMap(
genhelpers.FirstLetterLowercase,
genhelpers.FirstLetter,
)).Parse(genericChecksTemplateContent)
AggregatedGenericChecksTemplate, _ = template.New("aggregatedGenericChecksTemplate").Funcs(genhelpers.BuildTemplateFuncMap(
genhelpers.FirstLetterLowercase,
genhelpers.FirstLetter,
genhelpers.SnakeCaseToCamel,
genhelpers.IsLastItem,
)).Parse(aggregatedGenericChecksTemplateContent)
SpecificChecksTemplate, _ = template.New("specificChecksTemplate").Funcs(genhelpers.BuildTemplateFuncMap(
genhelpers.FirstLetterLowercase,
genhelpers.FirstLetter,
genhelpers.SnakeCaseToCamel,
)).Parse(specificChecksTemplateContent)
AllTemplates = []*template.Template{PreambleTemplate, DefinitionTemplate, GenericChecksTemplate, AggregatedGenericChecksTemplate, SpecificChecksTemplate}
)
Functions ¶
This section is empty.
Types ¶
type ParameterAssertionModel ¶
type PreambleModel ¶
TODO [SNOW-1501905]: extract to commons?
type SnowflakeObjectParameters ¶
type SnowflakeObjectParameters struct { Name string IdType string Level sdk.ParameterType AdditionalImports []string Parameters []SnowflakeParameter }
func GetAllSnowflakeObjectParameters ¶
func GetAllSnowflakeObjectParameters() []SnowflakeObjectParameters
func (SnowflakeObjectParameters) ObjectName ¶
func (p SnowflakeObjectParameters) ObjectName() string
type SnowflakeObjectParametersAssertionsModel ¶
type SnowflakeObjectParametersAssertionsModel struct { Name string IdType string Parameters []ParameterAssertionModel PreambleModel }
func ModelFromSnowflakeObjectParameters ¶
func ModelFromSnowflakeObjectParameters(snowflakeObjectParameters SnowflakeObjectParameters) SnowflakeObjectParametersAssertionsModel
func (SnowflakeObjectParametersAssertionsModel) SomeFunc ¶
func (m SnowflakeObjectParametersAssertionsModel) SomeFunc()
Click to show internal directories.
Click to hide internal directories.