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 blockstorage 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 blockstorage os-services

Types

type Service

type Service struct {
	Status         string               `json:"status"`
	Binary         string               `json:"binary"`
	Host           string               `json:"host"`
	Zone           string               `json:"zone"`
	State          string               `json:"state"`
	DisabledReason string               `json:"disabled_reason"`
	Updated        osTime.OpenStackTime `json:"updated_at"`
}

Service represents a blockstorage 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 blockstorage services
Package testing test blockstorage services

Jump to

Keyboard shortcuts

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