v3

package
v0.0.0-...-f8ec1b3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 5 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 CreateUser

func CreateUser(t *testing.T, client *gophercloud.ServiceClient, c *users.CreateOpts) (*users.User, error)

CreateUser will create a project with a random name. It takes an optional createOpts parameter since creating a user has so many options. An error will be returned if the user 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 DeleteUser

func DeleteUser(t *testing.T, client *gophercloud.ServiceClient, userID string)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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