buildinfo

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2016 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package buildinfo provides build information about heat deployments.

Index

Constants

View Source
const GetOutput = `
{
  "api": {
    "revision": "2.4.5"
  },
  "engine": {
    "revision": "1.2.1"
  }
}`

GetOutput represents the response body from a Get request.

Variables

View Source
var GetExpected = &BuildInfo{
	API: Revision{
		Revision: "2.4.5",
	},
	Engine: Revision{
		Revision: "1.2.1",
	},
}

GetExpected represents the expected object from a Get request.

Functions

func HandleGetSuccessfully

func HandleGetSuccessfully(t *testing.T, output string)

HandleGetSuccessfully creates an HTTP handler at `/build_info` on the test handler mux that responds with a `Get` response.

Types

type BuildInfo

type BuildInfo struct {
	API    Revision `mapstructure:"api"`
	Engine Revision `mapstructure:"engine"`
}

BuildInfo represents the build information for a Heat deployment.

type GetResult

type GetResult struct {
	gophercloud.Result
}

GetResult represents the result of a Get operation.

func Get

Get retreives data for the given stack template.

func (GetResult) Extract

func (r GetResult) Extract() (*BuildInfo, error)

Extract returns a pointer to a BuildInfo object and is called after a Get operation.

type Revision

type Revision struct {
	Revision string `mapstructure:"revision"`
}

Revision represents the API/Engine revision of a Heat deployment.

Jump to

Keyboard shortcuts

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