package
0.0.0-20210831081626-d823fe11ceba
Repository: https://github.com/huaweicloud/golangsdk.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Create will create a new Share based on the values in CreateOpts.
Delete will delete an existing Share with the given UUID.
Deletes the Access Rule.
Expand will expand a Share based on the values in ExpandOpts.
ExtractShares accepts a Page struct, specifically a SharePage struct, and extracts the elements into a slice of share structs.
No description provided by the author
Get will get a single share with given UUID.
Gets the Mount/Export Locations of the SFS specified.
GrantAccess will grant access to a Share based on the values in GrantAccessOpts.
List returns a Pager which allows you to iterate over a collection of share resources.
ListAccessRights lists all access rules assigned to a Share based on its id.
Shrink will shrink a Share based on the values in ShrinkOpts.
Update allows shares to be updated.

# Variables

No description provided by the author
SortAsc is used to sort a list of Shares in ascending order.
SortCreatedAt is used to sort a list of Shares by date created.
SortDesc is used to sort a list of Shares in descending order.
SortHost is used to sort a list of Shares by host.
SortId is used to sort a list of Shares by id.
SortName is used to sort a list of Shares by name.
SortProjectId is used to sort a list of Shares by project_id.
SortShareNetworkId is used to sort a list of Shares by share_network_id.
SortShareProto is used to sort a list of Shares by share_proto.
SortShareTypeId is used to sort a list of Shares by share_type_id.
SortSize is used to sort a list of Shares by size.
SortSnapshotId is used to sort a list of Shares by snapshot_id.
SortStatus is used to sort a list of Shares by status.
SortUpdatedAt is used to sort a list of Shares by date updated.

# Structs

AccessRight contains all information associated with an OpenStack share Grant Access Response.
AccessRightsResult contains the result body and error from a AccessRight request.
CreateOpts contains the options for create a Share.
CreateResult contains the response body and error from a Create request.
No description provided by the author
DeleteAccessResult contains the response body from DeleteAccess rights.
DeleteResult contains the response body and error from a Delete request.
ExpandOpts contains the options for expanding a Share.
ExpandResult contains the response body and error from a Expand request.
ExportLocation contains all information associated with a share export location.
GetExportLocationsResult contains the response body from GetExportLocations.
GetResult contains the response body and error from a Get request.
GrantAccessOpts contains the options for creation of an GrantAccess request.
GrantAccessResult contains the result body and error from an GrantAccess request.
ListOpts allows the filtering and sorting of paginated collections through the API.
No description provided by the author
No description provided by the author
Share contains all information associated with an OpenStack Share.
SharePage is the page returned by a pager when traversing over a collection of Shares.
ShrinkOpts contains the options for shrinking a Share.
ShrinkResult contains the response body and error from a Shrink request.
UpdateOpts contains the values used when updating a Share.
UpdateResult contains the response body and error from a update request.

# Interfaces

CreateOptsBuilder allows extensions to add additional parameters to the Create request.
Delete the Access Rule.
ExpandOptsBuilder allows extensions to add additional parameters to the Expand request.
GrantAccessOptsBuilder allows extensions to add additional parameters to the GrantAccess request.
ListOptsBuilder allows extensions to add additional parameters to the List request.
ShrinkOptsBuilder allows extensions to add additional parameters to the Shrink request.
UpdateOptsBuilder allows extensions to add additional parameters to the Update request.

# Type aliases

SortDir is a type for specifying in which direction to sort a list of Shares.
SortKey is a type for specifying by which key to sort a list of Shares.