github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/blockstorage/extensions/schedulerstats/doc.go (about) 1 /* 2 Package schedulerstats returns information about block storage pool capacity 3 and utilisation. Example: 4 5 listOpts := schedulerstats.ListOpts{ 6 Detail: true, 7 } 8 9 allPages, err := schedulerstats.List(client, listOpts).AllPages() 10 if err != nil { 11 panic(err) 12 } 13 14 allStats, err := schedulerstats.ExtractStoragePools(allPages) 15 if err != nil { 16 panic(err) 17 } 18 19 for _, stat := range allStats { 20 fmt.Printf("%+v\n", stat) 21 } 22 */ 23 package schedulerstats