parse

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FnAnd       IntrinsicFunctionSignature = "Fn::And"
	FnBase64                               = "Fn::Base64"
	FnEquals                               = "Fn::Equals"
	FnFindInMap                            = "Fn::FindInMap"
	FnGetAtt                               = "Fn::GetAtt"
	FnGetAZs                               = "Fn::GetAZs"
	FnIf                                   = "Fn::If"
	FnJoin                                 = "Fn::Join"
	FnNot                                  = "Fn::Not"
	FnOr                                   = "Fn::Or"
	FnRef                                  = "Ref"
	FnSelect                               = "Fn::Select"

	// FnCondition is not really a Intrinsic Function, but it behaves like one for
	// parsing purposes.
	FnCondition = "Condition"
)

Variables

Functions

This section is empty.

Types

type Condition added in v0.2.0

type Condition struct {
	Fn interface{}
}

func (*Condition) UnmarshalJSON added in v0.2.0

func (d *Condition) UnmarshalJSON(b []byte) error

type IntrinsicFunction added in v0.2.0

type IntrinsicFunction struct {
	Key           IntrinsicFunctionSignature
	UnderlyingMap map[string]interface{}
}

type IntrinsicFunctionSignature added in v0.2.0

type IntrinsicFunctionSignature string

type IntrinsicFunctionSignatures added in v0.2.0

type IntrinsicFunctionSignatures []IntrinsicFunctionSignature

func (IntrinsicFunctionSignatures) Except added in v0.2.0

type Output

type Output struct {
	Description, Value interface{}
}

func (*Output) UnmarshalJSON added in v0.2.0

func (d *Output) UnmarshalJSON(b []byte) error

type Parameter

type Parameter struct {
	Type string
}

type Template

type Template struct {
	Conditions map[string]Condition
	Outputs    map[string]Output
	Parameters map[string]Parameter
	Resources  map[string]TemplateResource
}

func ParseTemplateJSON

func ParseTemplateJSON(data []byte) (*Template, error)

func (*Template) UnmarshalJSON added in v0.2.0

func (d *Template) UnmarshalJSON(b []byte) error

type TemplateResource

type TemplateResource struct {
	LogicalID string
	Type      string

	Metadata map[string]interface{}
	// contains filtered or unexported fields
}

func NewTemplateResource

func NewTemplateResource(awsType string, properties map[string]interface{}) TemplateResource

func (TemplateResource) Properties

func (tr TemplateResource) Properties() []string

func (TemplateResource) PropertyValue

func (tr TemplateResource) PropertyValue(name string) (interface{}, bool)

func (*TemplateResource) UnmarshalJSON

func (d *TemplateResource) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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