services

package
v0.0.0-...-f9caf76 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package services provides access to management orchestration service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

List makes a request against the API to list all orchestration services

Types

type Service

type Service struct {
	ID             string               `json:"id"`
	EngineID       string               `json:"engine_id"`
	Status         string               `json:"status"`
	Binary         string               `json:"binary"`
	Host           string               `json:"host"`
	Hostname       string               `json:"hostname"`
	Topic          string               `json:"topic"`
	ReportInterval int                  `json:"report_interval"`
	Updated        osTime.OpenStackTime `json:"updated_at"`
}

Service represents a orchestration service in the OpenStack cloud.

func ExtractServices

func ExtractServices(r pagination.Page) ([]Service, error)

ExtractServices interprets the results of a single page from a List() call, producing a slice of Services entities.

type ServicePage

type ServicePage struct {
	pagination.LinkedPageBase
}

ServicePage abstracts the raw results of making a List() request against the API. As OpenStack extensions may freely alter the response bodies of structures returned to the client, you may only safely access the data provided through the ExtractServices call.

func (ServicePage) IsEmpty

func (r ServicePage) IsEmpty() (bool, error)

IsEmpty returns true if a page contains no Services results.

func (ServicePage) NextPageURL

func (r ServicePage) NextPageURL() (string, error)

NextPageURL uses the response's embedded link reference to navigate to the next page of results.

Directories

Path Synopsis
Package testing test orchestration services
Package testing test orchestration services

Jump to

Keyboard shortcuts

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