protoc-gen-gotf

command module
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: 7 Imported by: 0

README ยถ

protoc-gen-gotf

Protoc plugin that generates go code for terraform provider using protobuf messages and services.

Motive

Writing terraform provider is a nontrivial task, updating attributes and schema of resources and datasources specially is an error-prone activity. For Resources and Datasources, a lot of boilerplate code is required to be written, such as handling authentication with provider service, marshalling and unmarshalling of models and if gRPC is used initializing service clients, etc.

This plugin's aim is to generate the boilerplate code, synchronization of protobuf messages and their fields with terraform block schema and attributes using protobuf options.

๐Ÿ’ป Install

Pre-build binaries are available on releases page.

Or install via go cli

go install github.com/travix/protoc-gen-gotf@latest

โœ๏ธ Example

  • gotf-example repository for a working example.
  • gotf for a go interfaces used by generated code.

๐Ÿง‘โ€๐Ÿ’ป Usage

๐Ÿ“‹ Documentation

Documentation ยถ

The Go Gopher

There is no documentation for this package.

Directories ยถ

Path Synopsis

Jump to

Keyboard shortcuts

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