jsonstate

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package jsonstate implements methods for outputting a state in a machine-readable json format

Index

Constants

View Source
const FormatVersion = "1.0"

FormatVersion represents the version of the json format and will be incremented for any change to this format that requires changes to a consuming parser.

Variables

This section is empty.

Functions

func Marshal

func Marshal(sf *statefile.File, schemas *terraform.Schemas) ([]byte, error)

Marshal returns the json encoding of a terraform state.

func MarshalOutputs added in v1.3.0

func MarshalOutputs(outputs map[string]*states.OutputValue) (map[string]output, error)

MarshalOutputs translates a map of states.OutputValue to a map of jsonstate.output, which are defined for json encoding.

func SensitiveAsBool added in v1.0.1

func SensitiveAsBool(val cty.Value) cty.Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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