intrinsics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FnBase64

func FnBase64(name string, input interface{}, template interface{}) interface{}

FnBase64 resolves the 'Fn::Base64' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-base64.htmlpackage intrinsics

func FnFindInMap

func FnFindInMap(name string, input interface{}, template interface{}) interface{}

FnFindInMap resolves the 'Fn::FindInMap' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-findinmap.html

func FnJoin

func FnJoin(name string, input interface{}, template interface{}) interface{}

FnJoin resolves the 'Fn::Join' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-join.html

func FnSelect

func FnSelect(name string, input interface{}, template interface{}) interface{}

FnSelect resolves the 'Fn::Select' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-select.html

func FnSplit

func FnSplit(name string, input interface{}, template interface{}) interface{}

FnSplit resolves the 'Fn::Split' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-split.html

func FnSub

func FnSub(name string, input interface{}, template interface{}) interface{}

FnSub resolves the 'Fn::Sub' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html

func Process

func Process(input []byte, options *ProcessorOptions) ([]byte, error)

Process recursively searches through a byte array for all AWS CloudFormation intrinsic functions, resolves them, and then returns the resulting interface{} object.

func Ref

func Ref(name string, input interface{}, template interface{}) interface{}

Ref resolves the 'Ref' AWS CloudFormation intrinsic function. Currently, this only resolves against CloudFormation Parameter default values See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html

Types

type IntrinsicHandler

type IntrinsicHandler func(string, interface{}, interface{}) interface{}

IntrinsicHandler is a function that applies an intrinsic function and returns the response that should be placed in it's place. An intrinsic handler function is passed the name of the intrinsic function (e.g. Fn::Join), and the object to apply it to (as an interface{}), and should return the resolved object (as an interface{}).

type ProcessorOptions

type ProcessorOptions struct {
	IntrinsicHandlerOverrides map[string]IntrinsicHandler
}

ProcessorOptions allows customisation of the intrinsic function processor behaviour. Initially, this only allows overriding of the handlers for each intrinsic function type.

Jump to

Keyboard shortcuts

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