gophercloud: Index | Files

package stacktemplates

import ""

Package stacktemplates provides operations for working with Heat templates. A Cloud Orchestration template is a portable file, written in a user-readable language, that describes how a set of resources should be assembled and what software should be installed in order to produce a working stack. The template specifies what resources should be used, what attributes can be set, and other parameters that are critical to the successful, repeatable automation of a specific application stack.


Package Files

doc.go requests.go results.go urls.go

type GetResult Uses

type GetResult struct {

GetResult represents the result of a Get operation.

func Get Uses

func Get(c *gophercloud.ServiceClient, stackName, stackID string) GetResult

Get retreives data for the given stack template.

func (GetResult) Extract Uses

func (r GetResult) Extract() ([]byte, error)

Extract returns the JSON template and is called after a Get operation.

type ValidateOpts Uses

type ValidateOpts struct {
    Template    string
    TemplateURL string

ValidateOpts specifies the template validation parameters.

func (ValidateOpts) ToStackTemplateValidateMap Uses

func (opts ValidateOpts) ToStackTemplateValidateMap() (map[string]interface{}, error)

ToStackTemplateValidateMap assembles a request body based on the contents of a ValidateOpts.

type ValidateOptsBuilder Uses

type ValidateOptsBuilder interface {
    ToStackTemplateValidateMap() (map[string]interface{}, error)

ValidateOptsBuilder describes struct types that can be accepted by the Validate call. The ValidateOpts struct in this package does.

type ValidateResult Uses

type ValidateResult struct {

ValidateResult represents the result of a Validate operation.

func Validate Uses

func Validate(c *gophercloud.ServiceClient, opts ValidateOptsBuilder) ValidateResult

Validate validates the given stack template.

func (ValidateResult) Extract Uses

func (r ValidateResult) Extract() (*ValidatedTemplate, error)

Extract returns a pointer to a ValidatedTemplate object and is called after a Validate operation.

type ValidatedTemplate Uses

type ValidatedTemplate struct {
    Description     string                 `mapstructure:"Description"`
    Parameters      map[string]interface{} `mapstructure:"Parameters"`
    ParameterGroups map[string]interface{} `mapstructure:"ParameterGroups"`

ValidatedTemplate represents the parsed object returned from a Validate request.

Package stacktemplates imports 4 packages (graph). Updated 2019-05-10. Refresh now. Tools for package owners.