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

     1  /*
     2  Package services returns information about the compute services in the OpenStack
     3  cloud.
     4  
     5  Example of Retrieving list of all services
     6  
     7  	allPages, err := services.List(computeClient).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