tfplan2cai

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(ctx context.Context, jsonPlan []byte, o *Options) ([]caiasset.Asset, error)

Convert converts terraform json plan to CAI Assets.

Types

type Options

type Options struct {
	ConvertUnchanged bool
	ErrorLogger      *zap.Logger
	Offline          bool
	DefaultProject   string
	DefaultRegion    string
	DefaultZone      string
	// UserAgent for all requests (if online)
	UserAgent string
	// HTTPClient for all requests (if online)
	HTTPClient *http.Client
	// Map hierarchy resource (like projects/<number> or folders/<number>)
	// to an ancestry path (like organizations/123/folders/456/projects/789)
	AncestryCache map[string]string
}

Options struct to avoid updating function signatures all along the pipe.

Directories

Path Synopsis
Package ancestrymanager provides an interface to query the ancestry information for a resource.
Package ancestrymanager provides an interface to query the ancestry information for a resource.
converters
google/resources
----------------------------------------------------------------------------
----------------------------------------------------------------------------
In order to interact with resource converters, we need to be able to create "terraform resource data" that supports a very limited subset of the API actually used during the conversion process.
In order to interact with resource converters, we need to be able to create "terraform resource data" that supports a very limited subset of the API actually used during the conversion process.

Jump to

Keyboard shortcuts

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