plugin

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "protoc-gen-gotf"

Variables

This section is empty.

Functions

func Run

func Run(gen *protogen.Plugin) error

Run creates new gotf plugin and runs it.

func SetOptions

func SetOptions(params string)

SetOptions sets the plugin options. Parameters passed should be a comma-separated list example: Available options:

log_level= for plugin, available values trace, debug, info, warn, error, fatal, panic, disable. Default is warn.
module= module name of go tf code being generated

func Version

func Version() string

Types

type Input

type Input interface {
	Datasources() []extension.Block
	Dependencies() map[string][]extension.Model
	Provider() extension.Provider
	Resources() []extension.Block
	AllBlocks() []extension.Block
}

func NewInput

func NewInput(synthesizer extension.Synthesizer, gen *protogen.Plugin) (Input, error)

NewInput returns gotf *input.

type Plugin

type Plugin interface {
	Run(Input) ([]*protogen.GeneratedFile, error)
}

Plugin is the interface for the gotf plugin.

Jump to

Keyboard shortcuts

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