Documentation ¶
Index ¶
- func CreateProject(t *testing.T, client *gophercloud.ServiceClient, c *projects.CreateOpts) (*projects.Project, error)
- func CreateUser(t *testing.T, client *gophercloud.ServiceClient, c *users.CreateOpts) (*users.User, error)
- func DeleteProject(t *testing.T, client *gophercloud.ServiceClient, projectID string)
- func DeleteUser(t *testing.T, client *gophercloud.ServiceClient, userID string)
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.