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 ¶
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 ModelFromSdkObjectDetails ¶
func ModelFromSdkObjectDetails(sdkObject genhelpers.SdkObjectDetails) ResourceShowOutputAssertionsModel
func (ResourceShowOutputAssertionsModel) SomeFunc ¶
func (m ResourceShowOutputAssertionsModel) SomeFunc()
Click to show internal directories.
Click to hide internal directories.