models

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TypeEmpty flags an empty type
	TypeEmpty = ""

	// TypeMap flags a map type
	TypeMap = "Map"

	// TypeList flags a list type
	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
}

Attribute represents an attribute of a type

func (Attribute) TypeName

func (a Attribute) TypeName() string

TypeName returns the Attribute's name

type Property

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

Property represents a property within a spec

func (Property) TypeName

func (p Property) TypeName() string

TypeName returns the Property's name

type PropertyType

type PropertyType struct {
	Property
	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

func (Spec) String

func (s Spec) String() string

Jump to

Keyboard shortcuts

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