v2

package
v0.0.0-...-74db0f9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func PrintShare(t *testing.T, share *shares.Share)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL