Documentation ¶
Index ¶
- func CreateDomain(t *testing.T, client *gophercloud.ServiceClient, c *domains.CreateOpts) (*domains.Domain, error)
- func CreateGroup(t *testing.T, client *gophercloud.ServiceClient, c *groups.CreateOpts) (*groups.Group, error)
- func CreateProject(t *testing.T, client *gophercloud.ServiceClient, c *projects.CreateOpts) (*projects.Project, error)
- func CreateRegion(t *testing.T, client *gophercloud.ServiceClient, c *regions.CreateOpts) (*regions.Region, error)
- func CreateRole(t *testing.T, client *gophercloud.ServiceClient, c *roles.CreateOpts) (*roles.Role, error)
- func CreateService(t *testing.T, client *gophercloud.ServiceClient, c *services.CreateOpts) (*services.Service, error)
- func CreateTrust(t *testing.T, client *gophercloud.ServiceClient, createOpts trusts.CreateOpts) (*trusts.Trust, error)
- func CreateUser(t *testing.T, client *gophercloud.ServiceClient, c *users.CreateOpts) (*users.User, error)
- func DeleteDomain(t *testing.T, client *gophercloud.ServiceClient, domainID string)
- func DeleteGroup(t *testing.T, client *gophercloud.ServiceClient, groupID string)
- func DeleteProject(t *testing.T, client *gophercloud.ServiceClient, projectID string)
- func DeleteRegion(t *testing.T, client *gophercloud.ServiceClient, regionID string)
- func DeleteRole(t *testing.T, client *gophercloud.ServiceClient, roleID string)
- func DeleteService(t *testing.T, client *gophercloud.ServiceClient, serviceID string)
- func DeleteTrust(t *testing.T, client *gophercloud.ServiceClient, trustID string)
- func DeleteUser(t *testing.T, client *gophercloud.ServiceClient, userID string)
- func FindRole(t *testing.T, client *gophercloud.ServiceClient) (*roles.Role, error)
- func FindTrust(t *testing.T, client *gophercloud.ServiceClient) (*trusts.Trust, error)
- func UnassignRole(t *testing.T, client *gophercloud.ServiceClient, roleID string, ...)
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 ¶ added in v0.8.0
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 ¶ added in v0.8.0
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 ¶ added in v0.9.0
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.