resources

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenResource

func GenResource(ctx context.Context, outDir string, outFilePackage string, spec *openapi3.Spec, resource *config.ResourceConfig)

GenResource generates the code to implement a Terraform resource.

func TFTypeNameSuffixToNewResourceFuncName

func TFTypeNameSuffixToNewResourceFuncName(typeNameSuffix string) string

TFTypeNameSuffixToNewResourceFuncName returns the name of the generated function that returns a new instance of a resource, e.g. NewUserstoreColumnResource()

func TFTypeNameSuffixToResourceName

func TFTypeNameSuffixToResourceName(typeNameSuffix string) string

TFTypeNameSuffixToResourceName returns the name of the generated resource type, e.g. UserstoreColumnResource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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