File: doc.go

package info (click to toggle)
golang-github-gophercloud-gophercloud 0.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, bullseye-backports
  • size: 10,224 kB
  • sloc: sh: 125; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
Package tenantnetworks provides the ability for tenants to see information
about the networks they have access to.

This is a deprecated API and will be removed from the Nova API service in a
future version.

This API works in both Neutron and nova-network based OpenStack clouds.

Example to List Networks Available to a Tenant

	allPages, err := tenantnetworks.List(computeClient).AllPages()
	if err != nil {
		panic(err)
	}

	allNetworks, err := tenantnetworks.ExtractNetworks(allPages)
	if err != nil {
		panic(err)
	}

	for _, network := range allNetworks {
		fmt.Printf("%+v\n", network)
	}
*/
package tenantnetworks