specification

package
v0.0.0-...-a4d1c73 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package specification privides tools for downloading and parsing AWS CloudFormation Resource Specification.

Index

Constants

This section is empty.

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 of item.

type Property

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

Property describes what should be in structure.

func (*Property) IsSubproperty

func (property *Property) IsSubproperty() bool

IsSubproperty : Checks if it is subproperty.

type PropertyType

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

PropertyType contains Documentation and map of Properties.

type Resource

type Resource struct {
	Documentation string
	Attributes    map[string]Attribute
	Properties    map[string]Property
}

Resource in specification contains documentation, map of attributes and properties.

type Specification

type Specification struct {
	PropertyTypes                map[string]PropertyType
	ResourceSpecificationVersion string
	ResourceTypes                map[string]Resource
}

Specification contains information about specification - type and version.

func GetSpecification

func GetSpecification(context *context.Context) (specification Specification, err error)

Download specification for region specified in config.

func GetSpecificationFromFile

func GetSpecificationFromFile(specificationFilePath string) (specification Specification, err error)

Get specification from file. It's used in GetSpecification().

Jump to

Keyboard shortcuts

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