Skip to content

Commit 77b8f98

Browse files
committed
fix doc
1 parent 1c31206 commit 77b8f98

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

  • openstack/compute/v2/extensions/services

openstack/compute/v2/extensions/services/doc.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@
22
Package services returns information about the compute services in the OpenStack
33
cloud.
44
5-
Example of Retrieving list of all services
6-
7-
opts := services.ListOpts{
8-
Binary: "nova-compute",
9-
}
10-
11-
allPages, err := services.List(computeClient, opts).AllPages()
12-
if err != nil {
13-
panic(err)
14-
}
15-
16-
allServices, err := services.ExtractServices(allPages)
17-
if err != nil {
18-
panic(err)
19-
}
20-
21-
for _, service := range allServices {
22-
fmt.Printf("%+v\n", service)
23-
}
24-
255
Example of Retrieving list of all services
266
277
opts := services.ListOpts{

0 commit comments

Comments
 (0)