Documentation ¶
Index ¶
- func CreateSecurityService(t *testing.T, client *gophercloud.ServiceClient) (*securityservices.SecurityService, error)
- func CreateShare(t *testing.T, client *gophercloud.ServiceClient) (*shares.Share, error)
- func CreateShareNetwork(t *testing.T, client *gophercloud.ServiceClient) (*sharenetworks.ShareNetwork, error)
- func CreateShareType(t *testing.T, client *gophercloud.ServiceClient) (*sharetypes.ShareType, error)
- func DeleteSecurityService(t *testing.T, client *gophercloud.ServiceClient, ...)
- func DeleteShare(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share)
- func DeleteShareNetwork(t *testing.T, client *gophercloud.ServiceClient, ...)
- func DeleteShareType(t *testing.T, client *gophercloud.ServiceClient, ...)
- func PrintSecurityService(t *testing.T, securityService *securityservices.SecurityService)
- func PrintShare(t *testing.T, share *shares.Share)
- func PrintShareNetwork(t *testing.T, sharenetwork *sharenetworks.ShareNetwork)
- func PrintShareType(t *testing.T, shareType *sharetypes.ShareType)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecurityService ¶
func CreateSecurityService(t *testing.T, client *gophercloud.ServiceClient) (*securityservices.SecurityService, error)
CreateSecurityService will create a security service with a random name. An error will be returned if the security service was unable to be created.
func CreateShare ¶
func CreateShare(t *testing.T, client *gophercloud.ServiceClient) (*shares.Share, error)
CreateShare will create a share with a name, and a size of 1Gb. An error will be returned if the share could not be created
func CreateShareNetwork ¶
func CreateShareNetwork(t *testing.T, client *gophercloud.ServiceClient) (*sharenetworks.ShareNetwork, error)
CreateShareNetwork will create a share network with a random name. An error will be returned if the share network was unable to be created.
func CreateShareType ¶
func CreateShareType(t *testing.T, client *gophercloud.ServiceClient) (*sharetypes.ShareType, error)
CreateShareType will create a share type with a random name. An error will be returned if the share type was unable to be created.
func DeleteSecurityService ¶
func DeleteSecurityService(t *testing.T, client *gophercloud.ServiceClient, securityService *securityservices.SecurityService)
DeleteSecurityService will delete a security service. An error will occur if the security service was unable to be deleted.
func DeleteShare ¶
func DeleteShare(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share)
DeleteShare will delete a share. A fatal error will occur if the share failed to be deleted. This works best when used as a deferred function.
func DeleteShareNetwork ¶
func DeleteShareNetwork(t *testing.T, client *gophercloud.ServiceClient, shareNetwork *sharenetworks.ShareNetwork)
DeleteShareNetwork will delete a share network. An error will occur if the share network was unable to be deleted.
func DeleteShareType ¶
func DeleteShareType(t *testing.T, client *gophercloud.ServiceClient, shareType *sharetypes.ShareType)
DeleteShareType will delete a share type. An error will occur if the share type was unable to be deleted.
func PrintSecurityService ¶
func PrintSecurityService(t *testing.T, securityService *securityservices.SecurityService)
PrintSecurityService will print a security service and all of its attributes.
func PrintShare ¶
PrintShare prints some information of the share
func PrintShareNetwork ¶
func PrintShareNetwork(t *testing.T, sharenetwork *sharenetworks.ShareNetwork)
PrintShareNetwork will print a share network and all of its attributes.
func PrintShareType ¶
func PrintShareType(t *testing.T, shareType *sharetypes.ShareType)
PrintShareType will print a share type and all of its attributes.
Types ¶
This section is empty.