goschema

package
v0.6.0-3a Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package goschema reads a Go library's source to learn the output schema of each registered resource, data source, and action. The dev CLI feeds the result into the reference checker so trailing field names in references like `resource.aws.vpc.main.id` can be validated at compile time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(dir string) (*runtime.LibrarySchema, []string, error)

Read parses the Go library rooted at dir and returns its schema plus any warnings about registered types whose sibling Output struct could not be located. Returns an error when no `Library()` function is found in dir's root package, or when the directory cannot be read.

Types

This section is empty.

Jump to

Keyboard shortcuts

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