cf2pulumi

package
v0.0.0-...-0a377e8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBody

func FormatBody(body *model.Body)

FormatBody formats a PCL body.

func RenderFile

func RenderFile(path string, metadata *metadata.CloudAPIMetadata) (*model.Body, hcl.Diagnostics, error)

RenderFile parses and renders a CloudFormation template to a PCL program body. If there are errors in the template, the function returns an error.

func RenderTemplate

func RenderTemplate(file *ast.File, metadata *metadata.CloudAPIMetadata) (*model.Body, hcl.Diagnostics, error)

RenderTemplate renders a parsed CloudFormation template to a PCL program body. If there are errors in the template, the function returns an error.

func RenderText

func RenderText(yaml string, metadata *metadata.CloudAPIMetadata) (body *model.Body, diagnostics hcl.Diagnostics, err error)

RenderText parses and renders a CloudFormation template to a PCL program body. If there are errors in the template, the function returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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