spec

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeEmpty = ""
	TypeMap   = "Map"
	TypeList  = "List"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	ItemType          string
	PrimitiveItemType string
	PrimitiveType     string
	Type              string
}

type Property

type Property struct {
	Documentation     string
	DuplicatesAllowed bool
	ItemType          string
	PrimitiveItemType string
	PrimitiveType     string
	Required          bool
	Type              string
	UpdateType        string
}

func (Property) TypeName

func (p Property) TypeName() string

type PropertyType

type PropertyType struct {
	Documentation string
	Properties    map[string]Property
}

PropertyType represents a propertytype node in the CloudFormation specification

type ResourceType

type ResourceType struct {
	Attributes           map[string]Attribute
	Documentation        string
	Properties           map[string]Property
	AdditionalProperties bool
}

ResourceType represents a resourcetype node in the CloudFormation specification

type Spec

type Spec struct {
	ResourceSpecificationVersion string
	PropertyTypes                map[string]PropertyType
	ResourceTypes                map[string]ResourceType
}

Spec is a representation of the CloudFormation specification document

func (Spec) ResolveResource

func (s Spec) ResolveResource(suffix string) []string

ResolveResource returns a list of possible Resource names for the provided suffix

Jump to

Keyboard shortcuts

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