v3

package
v0.0.0-...-9368c00 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProject

func CreateProject(t *testing.T, client *gophercloud.ServiceClient, c *projects.CreateOpts) (*projects.Project, error)

CreateProject will create a project with a random name. It takes an optional createOpts parameter since creating a project has so many options. An error will be returned if the project was unable to be created.

func DeleteProject

func DeleteProject(t *testing.T, client *gophercloud.ServiceClient, projectID string)

DeleteProject will delete a project by ID. A fatal error will occur if the project ID failed to be deleted. This works best when using it as a deferred function.

func PrintEndpoint

func PrintEndpoint(t *testing.T, endpoint *endpoints.Endpoint)

PrintEndpoint will print an endpoint and all of its attributes.

func PrintProject

func PrintProject(t *testing.T, project *projects.Project)

PrintProject will print a project and all of its attributes.

func PrintService

func PrintService(t *testing.T, service *services.Service)

PrintService will print a service and all of its attributes.

func PrintToken

func PrintToken(t *testing.T, token *tokens.Token)

PrintToken will print a token and all of its attributes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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