tfgen

package
v3.98.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 14

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 sdkBridge.ProviderInfo)

Implements main() logic for a provider build-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.

info.P must be constructed with ShimProvider or ShimProviderWithContext.

func MainWithMuxer

func MainWithMuxer(provider string, info sdkBridge.ProviderInfo)

Implements main() logic for a multi-provider build-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.

This is an experimental API.

Types

type GenerateSchemaOptions

type GenerateSchemaOptions struct {
	ProviderInfo    sdkbridge.ProviderInfo
	DiagnosticsSink diag.Sink
	XInMemoryDocs   bool
}

type GenerateSchemaResult

type GenerateSchemaResult struct {
	ProviderMetadata tfbridge.ProviderMetadata
}

func GenerateSchema

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