util

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendImagePage

func AppendImagePage(page pagination.Page, list map[string]images.Image) error

AppendImagePage is used to extract image information from a page of the image list and append it to the given global map.

func AppendServerPage

func AppendServerPage(page pagination.Page, list *[]servers.Server) error

AppendServerPage is used to extract server information from a page of the server list and append it to the given global list.

func Die

func Die(msg string, cause error)

Die prints an error with its cause if given and exits.

func PrintErrors

func PrintErrors(errs []error)

PrintErrors is used to print several errors at once.

func RunJobs

func RunJobs(service *gophercloud.ServiceClient, jobs []func(service *gophercloud.ServiceClient) error) (errs []error)

RunJobs executes jobs using a ServiceClient concurrently.

Types

This section is empty.

Jump to

Keyboard shortcuts

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