github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/blockstorage/extensions/services/doc.go (about)

     1  /*
     2  Package services returns information about the blockstorage services in the
     3  OpenStack cloud.
     4  
     5  Example of Retrieving list of all services
     6  
     7  	allPages, err := services.List(blockstorageClient, services.ListOpts{}).AllPages()
     8  	if err != nil {
     9  		panic(err)
    10  	}
    11  
    12  	allServices, err := services.ExtractServices(allPages)
    13  	if err != nil {
    14  		panic(err)
    15  	}
    16  
    17  	for _, service := range allServices {
    18  		fmt.Printf("%+v\n", service)
    19  	}
    20  */
    21  
    22  package services