scaffold

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package scaffold renders a Terraform root for the DataTF module contract.

Index

Constants

View Source
const DefaultModuleSource = "536tech/workspace/databricks"

DefaultModuleSource identifies the published workspace module contract.

View Source
const DefaultModuleVersion = "1.0.1"

DefaultModuleVersion pins the tested Registry release for both layouts.

Variables

This section is empty.

Functions

func LatestVersions added in v1.1.0

func LatestVersions(ctx context.Context, sources []string) (map[string]string, error)

LatestVersions resolves each public Registry source to its newest stable release. The default export never calls this endpoint. No workspace information is sent.

func PublicRegistryModule added in v1.1.0

func PublicRegistryModule(source string) bool

PublicRegistryModule reports whether latest can resolve this source.

func Render

func Render(opts Options) (map[string][]byte, error)

Render builds every scaffold file before the caller writes the export.

func RenderResources

func RenderResources(ex *contract.Export, opts Options, root bool) (map[string][]byte, error)

RenderResources renders module inputs and, when requested, their runnable root.

Types

type Options

type Options struct {
	Scope          contract.Scope
	Host           string
	Profile        string
	RootModule     string
	ModuleSource   string
	ModuleVersion  string
	ModuleVersions map[string]string
}

Options control the generated root.

Jump to

Keyboard shortcuts

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