github.com/gophercloud/gophercloud@v1.11.0/openstack/loadbalancer/v2/amphorae/doc.go (about) 1 /* 2 Package amphorae provides information and interaction with Amphorae 3 of OpenStack Load-balancing service. 4 5 Example to List Amphorae 6 7 listOpts := amphorae.ListOpts{ 8 LoadbalancerID: "6bd55cd3-802e-447e-a518-1e74e23bb106", 9 } 10 11 allPages, err := amphorae.List(octaviaClient, listOpts).AllPages() 12 if err != nil { 13 panic(err) 14 } 15 16 allAmphorae, err := amphorae.ExtractAmphorae(allPages) 17 if err != nil { 18 panic(err) 19 } 20 21 for _, amphora := range allAmphorae { 22 fmt.Printf("%+v\n", amphora) 23 } 24 25 Example to Failover an amphora 26 27 ampID := "d67d56a6-4a86-4688-a282-f46444705c64" 28 29 err := amphorae.Failover(octaviaClient, ampID).ExtractErr() 30 if err != nil { 31 panic(err) 32 } 33 */ 34 package amphorae