generate

package
v0.0.0-...-e4bf2a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAssets

func CopyAssets(config *properties.Config, commandType properties.CommandType) error

CopyAssets copy assets (static files) according to configuration.

Types

type Creator

type Creator struct {
	GoOutputDir  string
	TemplatesDir string
	Spec         *properties.Normalization
}

func NewCreator

func NewCreator(goOutputDir, templatesDir string, spec *properties.Normalization) *Creator

NewCreator initializes a Creator instance.

func (*Creator) RenderTemplate

func (c *Creator) RenderTemplate() error

RenderTemplate loops through all templates, parses them, and renders content, which is saved to the output file.

func (*Creator) RenderTerraformProvider

func (c *Creator) RenderTerraformProvider(terraformProvider *properties.TerraformProviderFile, spec *properties.Normalization, providerConfig properties.TerraformProvider) error

RenderTerraformProvider generates and writes a Terraform provider file.

func (*Creator) RenderTerraformProviderFile

RenderTerraformProviderFile generates a Go file for a Terraform provider based on the provided TerraformProviderFile and Normalization arguments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL