tf

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOverwriteConfig added in v0.3.0

func GetOverwriteConfig(b []byte) (*overwriteConfig, error)

GetOverwriteConfig parses overwriteConfig from a byte array

func OverwriteDisplay added in v0.4.0

func OverwriteDisplay(config *overwriteConfig, dir string) error

OverwriteDisplay replaces variable values in Blueprint metadata display file.

func OverwriteMetadata added in v0.3.0

func OverwriteMetadata(config *overwriteConfig, dir string) error

OverwriteMetadata replaces default values for variables in Blueprints Metadata

This overwrite rearranges the order of keys in the YAML, since we are not using the definition in https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/cli/bpmetadata/types.go

We are not using this definition because 1. There are version compatiblilty issues with Kpt and cloud-foundation-toolkit to resolve 2. We will avoid dropping fields if mpdev is using an out-of-date version of cloud-foundation-toolkit

func OverwriteTf added in v0.3.0

func OverwriteTf(config *overwriteConfig, dir string) error

OverwriteTf replaces default variable values in Terraform modules

Types

type EnumValueLabel added in v0.4.0

type EnumValueLabel struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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