v3

package
v0.9.1-0...-1c24b94 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDomain

func CreateDomain(t *testing.T, client *gophercloud.ServiceClient, c *domains.CreateOpts) (*domains.Domain, error)

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

func CreateGroup

func CreateGroup(t *testing.T, client *gophercloud.ServiceClient, c *groups.CreateOpts) (*groups.Group, error)

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

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 CreateRegion

func CreateRegion(t *testing.T, client *gophercloud.ServiceClient, c *regions.CreateOpts) (*regions.Region, error)

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

func CreateRole

func CreateRole(t *testing.T, client *gophercloud.ServiceClient, c *roles.CreateOpts) (*roles.Role, error)

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

func CreateService

func CreateService(t *testing.T, client *gophercloud.ServiceClient, c *services.CreateOpts) (*services.Service, error)

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

func CreateTrust

func CreateTrust(t *testing.T, client *gophercloud.ServiceClient, createOpts trusts.CreateOpts) (*trusts.Trust, error)

CreateTrust will create a trust with the provided options. An error will be returned if the trust 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 user 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 DeleteDomain

func DeleteDomain(t *testing.T, client *gophercloud.ServiceClient, domainID string)

DeleteDomain will delete a domain 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 DeleteGroup

func DeleteGroup(t *testing.T, client *gophercloud.ServiceClient, groupID string)

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

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 DeleteRegion

func DeleteRegion(t *testing.T, client *gophercloud.ServiceClient, regionID string)

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

func DeleteRole

func DeleteRole(t *testing.T, client *gophercloud.ServiceClient, roleID string)

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

func DeleteService

func DeleteService(t *testing.T, client *gophercloud.ServiceClient, serviceID string)

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

func DeleteTrust

func DeleteTrust(t *testing.T, client *gophercloud.ServiceClient, trustID string)

DeleteTrust will delete a trust by ID. A fatal error will occur if the trust 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.

func FindRole

func FindRole(t *testing.T, client *gophercloud.ServiceClient) (*roles.Role, error)

FindRole finds all roles that the current authenticated client has access to and returns the first one found. An error will be returned if the lookup was unsuccessful.

func FindTrust

func FindTrust(t *testing.T, client *gophercloud.ServiceClient) (*trusts.Trust, error)

FindTrust finds all trusts that the current authenticated client has access to and returns the first one found. An error will be returned if the lookup was unsuccessful.

func UnassignRole

func UnassignRole(t *testing.T, client *gophercloud.ServiceClient, roleID string, opts *roles.UnassignOpts)

UnassignRole will delete a role assigned to a user/group on a project/domain A fatal error will occur if it fails to delete the assignment. 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