Documentation
¶
Index ¶
- func CreateProject(t *testing.T, client *gophercloud.ServiceClient, c *projects.CreateOpts) (*projects.Project, error)
- func DeleteProject(t *testing.T, client *gophercloud.ServiceClient, projectID string)
- func PrintEndpoint(t *testing.T, endpoint *endpoints.Endpoint)
- func PrintProject(t *testing.T, project *projects.Project)
- func PrintService(t *testing.T, service *services.Service)
- func PrintToken(t *testing.T, token *tokens.Token)
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 ¶
PrintEndpoint will print an endpoint and all of its attributes.
func PrintProject ¶
PrintProject will print a project and all of its attributes.
func PrintService ¶
PrintService will print a service and all of its attributes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.