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 CreateSnapshot(t *testing.T, client *gophercloud.ServiceClient, shareID string) (*snapshots.Snapshot, 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, shareNetworkID string)
- func DeleteShareType(t *testing.T, client *gophercloud.ServiceClient, ...)
- func DeleteSnapshot(t *testing.T, client *gophercloud.ServiceClient, snapshot *snapshots.Snapshot)
- func ExtendShare(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share, ...) error
- func GetAccessRightsSlice(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share) ([]shares.AccessRight, error)
- func GrantAccess(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share) (*shares.AccessRight, error)
- func ListShares(t *testing.T, client *gophercloud.ServiceClient) ([]shares.Share, error)
- func ListSnapshots(t *testing.T, client *gophercloud.ServiceClient) ([]snapshots.Snapshot, error)
- func PrintMessages(t *testing.T, c *gophercloud.ServiceClient, id string) error
- func RevokeAccess(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share, ...) error
- func ShrinkShare(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share, ...) error
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 ¶
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 CreateSnapshot ¶
func CreateSnapshot(t *testing.T, client *gophercloud.ServiceClient, shareID string) (*snapshots.Snapshot, error)
CreateSnapshot will create a snapshot from the share ID with a name. An error will be returned if the snapshot could not 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 ¶
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 ¶
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 DeleteSnapshot ¶
DeleteSnapshot will delete a snapshot. A fatal error will occur if the snapshot failed to be deleted. This works best when used as a deferred function.
func ExtendShare ¶
func ExtendShare(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share, newSize int) error
ExtendShare extends the capacity of an existing share
func GetAccessRightsSlice ¶
func GetAccessRightsSlice(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share) ([]shares.AccessRight, error)
GetAccessRightsSlice will retrieve all access rules assigned to a share. A fatal error will occur if this operation fails.
func GrantAccess ¶
func GrantAccess(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share) (*shares.AccessRight, error)
GrantAccess will grant access to an existing share. A fatal error will occur if this operation fails.
func ListShares ¶
ListShares lists all shares that belong to this tenant's project. An error will be returned if the shares could not be listed..
func ListSnapshots ¶
ListSnapshots lists all snapshots that belong to this tenant's project. An error will be returned if the snapshots could not be listed..
func PrintMessages ¶
func RevokeAccess ¶
func RevokeAccess(t *testing.T, client *gophercloud.ServiceClient, share *shares.Share, accessRight *shares.AccessRight) error
RevokeAccess will revoke an exisiting access of a share. A fatal error will occur if this operation fails.
Types ¶
This section is empty.