builder

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Spec                      models.Spec
	IncludeOptionalProperties bool
	BuildIamPolicies          bool
}

Builder generates a template from its Spec

type CfnBuilder

type CfnBuilder struct {
	Builder
}

CfnBuilder contains specific code for building cloudformation templates

func NewCfnBuilder

func NewCfnBuilder(includeOptional, buildIamPolicies bool) CfnBuilder

NewCfnBuilder creates a new CfnBuilder

func (CfnBuilder) Template

func (b CfnBuilder) Template(config map[string]string) (cfn.Template, map[string]interface{})

Template produces a CloudFormation template for the resources in the config map

type IamBuilder

type IamBuilder struct {
	Builder
}

IamBuilder contains specific code for building IAM policies

func NewIamBuilder

func NewIamBuilder() IamBuilder

NewIamBuilder creates a new IamBuilder

func (IamBuilder) Policy

func (b IamBuilder) Policy() (interface{}, interface{})

Policy generates a an IAM policy body

Jump to

Keyboard shortcuts

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