jsonconfig

package
v1.14.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MPL-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package jsonconfig implements methods for outputting a configuration snapshot in machine-readable json format

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(c *configs.Config, schemas *plugins.Schemas) ([]byte, error)

Marshal returns the json encoding of tofu configuration.

func MarshalSingleModule

func MarshalSingleModule(m *configs.Module) ([]byte, error)

MarshalSingleModule is a variant of Marshal that describes only a single module, without any references to its child modules or associated provider schemas.

This uses only a subset of the typical configuration representation, due to schema and child module information being unavailable:

  • Module calls omit the "module" property that would normally describe the content of the child module.
  • Resource descriptions omit the "schema_version" property because no schema-based information is included.
  • Expression-related properties are omitted in all cases. Technically only expressions passed to providers _need_ to be omitted, but for now we just consistently omit all of them because that's an easier rule to explain and avoids exposing what is and is not provider-based so that we could potentially change those details in future.

Types

This section is empty.

Jump to

Keyboard shortcuts

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