Documentation
¶
Overview ¶
Package providers provides a generator for Terraform provider override files.
Index ¶
- Constants
- type Generator
- func (g *Generator) DefaultFilename() string
- func (g *Generator) Generate(ctx context.Context, genCtx *generator.GeneratorContext) (map[string]any, error)
- func (g *Generator) Name() string
- func (g *Generator) ShouldGenerate(genCtx *generator.GeneratorContext) bool
- func (g *Generator) Validate(genCtx *generator.GeneratorContext) error
Constants ¶
View Source
const ( // Name is the unique identifier for this generator. Name = "providers" // DefaultFilenameConst is the default output filename for provider overrides. DefaultFilenameConst = "providers_override.tf.json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct{}
Generator generates Terraform provider override files (providers_override.tf.json).
func (*Generator) DefaultFilename ¶
DefaultFilename returns the default output filename.
func (*Generator) Generate ¶
func (g *Generator) Generate(ctx context.Context, genCtx *generator.GeneratorContext) (map[string]any, error)
Generate produces the provider override content. The output structure wraps providers in a "provider" key as expected by Terraform.
func (*Generator) ShouldGenerate ¶
func (g *Generator) ShouldGenerate(genCtx *generator.GeneratorContext) bool
ShouldGenerate returns true if the ProvidersSection has data.
Click to show internal directories.
Click to hide internal directories.