Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrMatcher ¶
type AttrMatcher Matcher[*tfjson.SchemaAttribute]
AttrMatcher is a Matcher for tfjson.SchemaAttribute data.
type Encoder ¶
type Encoder[S Schema] struct { // contains filtered or unexported fields }
Encoder encodes a map[string]Schema using a *template.Template.
func ModuleEncoder ¶
ModuleEncoder instantiates an Encoder for *tfjson.Schema data with optional Extra extras.
type Extra ¶
var ( // FreemarkerPreResourceExtra applies Extra template blocks using {{template "freemarker_preresource"}} in a *template.Template. FreemarkerPreResourceExtra Extra = &extraImpl{ key: "freemarker_preresource", value: freemarkerPreResourceExtra, } // FreemarkerResourceExtra applies Extra template blocks using {{template "freemarker_resource"}} in a *template.Template. FreemarkerResourceExtra Extra = &extraImpl{ key: "freemarker_resource", value: freemarkerResourceExtra, } // GoogleProviderExtra applies Extra template blocks using {{template "provider"}} in a *template.Template. GoogleProviderExtra Extra = &extraImpl{ key: "provider", value: googleProviderExtra, } // GoogleProviderBetaExtra applies Extra template blocks using {{template "provider"}} in a *template.Template. GoogleProviderBetaExtra Extra = &extraImpl{ key: "provider", value: googleProviderBetaExtra, } // TemplatePathClassic applies Extra template blocks using {{template "template_path"}} in a *template.Template. TemplatePathClassic Extra = &extraImpl{ key: "template_path", value: freemarkerTemplatePathClassic, } // TemplatePathFlex applies Extra template blocks using {{template "template_path"}} in a *template.Template. TemplatePathFlex Extra = &extraImpl{ key: "template_path", value: freemarkerTemplatePathFlex, } // ProviderAttributeExtra applies Extra attribute assignment to the resource block 'provider' attribute for // the generally available terraform provider. ProviderAttributeExtra Extra = &extraImpl{ key: "provider_attribute", value: "provider = google", } // ProviderBetaAttributeExtra applies Extra attribute assignment to the resource block 'provider' attribute for // the beta terraform provider. ProviderBetaAttributeExtra Extra = &extraImpl{ key: "provider_attribute", value: "provider = google-beta", } )
type Filter ¶
type Filter[S Schema] struct { // contains filtered or unexported fields }
Filter applies to a map[string]Schema to include data matching a Matcher.
type MatchIsComputed ¶
type MatchIsComputed bool
MatchIsComputed is a Matcher for tfjson.SchemaAttribute Computed attribute.
func (MatchIsComputed) Match ¶
func (m MatchIsComputed) Match(_ string, data *tfjson.SchemaAttribute) bool
Match whether tfjson.SchemaAttribute Computed is the bool value of the MatchIsDeprecated receiver.
type MatchIsDeprecated ¶
type MatchIsDeprecated bool
MatchIsDeprecated is a Matcher for tfjson.SchemaAttribute Deprecated attribute.
func (MatchIsDeprecated) Match ¶
func (m MatchIsDeprecated) Match(_ string, data *tfjson.SchemaAttribute) bool
Match whether tfjson.SchemaAttribute Deprecated is the bool value of the MatchIsDeprecated receiver.
type Schema ¶
type Schema interface { *tfjson.ProviderSchema | *tfjson.Schema | *tfjson.SchemaAttribute }
Schema models terraform provider and resource schemas.