github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/tenantnetworks/doc.go (about) 1 /* 2 Package tenantnetworks provides the ability for tenants to see information 3 about the networks they have access to. 4 5 This is a deprecated API and will be removed from the Nova API service in a 6 future version. 7 8 This API works in both Neutron and nova-network based OpenStack clouds. 9 10 Example to List Networks Available to a Tenant 11 12 allPages, err := tenantnetworks.List(computeClient).AllPages() 13 if err != nil { 14 panic(err) 15 } 16 17 allNetworks, err := tenantnetworks.ExtractNetworks(allPages) 18 if err != nil { 19 panic(err) 20 } 21 22 for _, network := range allNetworks { 23 fmt.Printf("%+v\n", network) 24 } 25 */ 26 package tenantnetworks