/
doc.go
48 lines (39 loc) · 1.09 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
Package shares provides information and interaction with the different
API versions for the Shared File System service, code-named Manila.
For more information, see:
https://docs.openstack.org/api-ref/shared-file-system/
Example to Revert a Share to a Snapshot ID
opts := &shares.RevertOpts{
// snapshot ID to revert to
SnapshotID: "ddeac769-9742-497f-b985-5bcfa94a3fd6",
}
manilaClient.Microversion = "2.27"
err := shares.Revert(manilaClient, shareID, opts).ExtractErr()
if err != nil {
panic(err)
}
Example to Reset a Share Status
opts := &shares.ResetStatusOpts{
// a new Share Status
Status: "available",
}
manilaClient.Microversion = "2.7"
err := shares.ResetStatus(manilaClient, shareID, opts).ExtractErr()
if err != nil {
panic(err)
}
Example to Force Delete a Share
manilaClient.Microversion = "2.7"
err := shares.ForceDelete(manilaClient, shareID).ExtractErr()
if err != nil {
panic(err)
}
Example to Unmanage a Share
manilaClient.Microversion = "2.7"
err := shares.Unmanage(manilaClient, shareID).ExtractErr()
if err != nil {
panic(err)
}
*/
package shares