tfgen

package
v0.0.0-...-626180e Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package tfgen implements build-time introspection and generating a Pulumi Package Schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(provider string, info tfpf.ProviderInfo)

Implements main() logic for a provider built-time helper utility. By convention these utilities are named pulumi-tfgen-$provider, for example when building a "random" provider the program would be called pulumi-tfgen-random.

The resulting binary is able to generate Pulumi Package Schema as well as provider SDK sources in various programming languages supported by Pulumi such as TypeScript, Go, and Python.

Types

type GenerateSchemaOptions

type GenerateSchemaOptions struct {
	ProviderInfo    tfpf.ProviderInfo
	DiagnosticsSink diag.Sink
}

type GenerateSchemaResult

type GenerateSchemaResult struct {
	ProviderMetadata tfpf.ProviderMetadata
}

func GenerateSchema

func GenerateSchema(ctx context.Context, opts GenerateSchemaOptions) (*GenerateSchemaResult, error)

Generates the Pulumi Package Schema and bridge-specific metadata. Most users do not need to call this directly but instead use Main to build a build-time helper CLI tool.

Jump to

Keyboard shortcuts

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