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

     1  /*
     2  Package networks provides the ability to create and manage networks in cloud
     3  environments using nova-network.
     4  
     5  This package can also be used to retrieve network details of Neutron-based
     6  networks.
     7  
     8  Example to List Networks
     9  
    10  	allPages, err := networks.List(computeClient).AllPages()
    11  	if err != nil {
    12  		panic(err)
    13  	}
    14  
    15  	allNetworks, err := networks.ExtractNetworks(allPages)
    16  	if err != nil {
    17  		panic(err)
    18  	}
    19  
    20  	for _, network := range allNetworks {
    21  		fmt.Printf("%+v\n", network)
    22  	}
    23  */
    24  package networks