protoc-gen-terraform

command module
v0.0.0-...-8bbdae8 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

[WIP] protoc-gen-terraform

protoc plugin that generates Terraform Plugin Framework schema definitions and marshalling/copy functions for golang/protobuf .proto files.

This project is HEAVILY inspired by Gravitational's protoc-gen-terraform. However, it is entirely using golang/protobuf and the protogen framework as gogo/protobuf is deprecated.

Installation

go install github.com/liamawhite/protoc-gen-terraform

Usage

Running the plugin is pretty typical for a protoc plugin. See the Makefile for an example.

Annotations
Behavior Annotation
Optional Set to true if neither the REQUIRED or OUTPUT_ONLY field behavior is used.
Required Set to true if the REQUIRED field behavior is used.
Computed Set to true if the OUTPUT_ONLY field behavior is used.

Examples can be found in the test directory.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
Code generated by protoc-gen-terraform.
Code generated by protoc-gen-terraform.

Jump to

Keyboard shortcuts

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