cfn

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cfn provides the Template type that models a CloudFormation template.

The sub-packages of cfn contain various tools for working with templates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	// Name is the name of the element
	Name string

	// Type is the name of the top-level part of a CloudFormation
	// that contains this Element (e.g. Resources, Parameters)
	Type string
}

Element represents a top-level entry in a CloudFormation template for example a resource, parameter, or output

type Error added in v0.8.1

type Error struct {
	// contains filtered or unexported fields
}

Error holds errors messages pertaining to a cfn.Template

type Template

type Template map[string]interface{}

Template represents a CloudFormation template. The Template type is minimal for now but will likely grow new features as needed by rain.

func (Template) Check added in v0.8.0

func (t Template) Check() (value.Interface, bool)

Check validates a cfn.Template against the cloudformation spec

func (Template) Diff

func (t Template) Diff(other Template) diff.Diff

Diff returns a Diff object representing the difference between this template and the template passed to Diff

func (Template) Graph

func (t Template) Graph() graph.Graph

Graph returns a Graph representing the connections between elements in the template. The type of each item in the graph should be Element

func (Template) Map

func (t Template) Map() map[string]interface{}

Map returns the template as a map[string]interface{} This can be used for easy serialisation to e.g. JSON or YAML

Directories

Path Synopsis
Package diff provides the Diff class that can be used to compare CloudFormation templates
Package diff provides the Diff class that can be used to compare CloudFormation templates
Package format provides functions for formatting the types found in the cfn package.
Package format provides functions for formatting the types found in the cfn package.
Package graph provides an implement of cfn.Graph and can be used to graph dependencies between elements of a CloudFormation template
Package graph provides an implement of cfn.Graph and can be used to graph dependencies between elements of a CloudFormation template
Package parse provides functions for parsing CloudFormation templates from JSON and YAML inputs.
Package parse provides functions for parsing CloudFormation templates from JSON and YAML inputs.
Package spec contains generated models for CloudFormation and IAM
Package spec contains generated models for CloudFormation and IAM
Package value provides types that can be used to represent structured data that include comments
Package value provides types that can be used to represent structured data that include comments

Jump to

Keyboard shortcuts

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