github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/startstop/doc.go (about) 1 /* 2 Package startstop provides functionality to start and stop servers that have 3 been provisioned by the OpenStack Compute service. 4 5 Example to Stop and Start a Server 6 7 serverID := "47b6b7b7-568d-40e4-868c-d5c41735532e" 8 9 err := startstop.Stop(computeClient, serverID).ExtractErr() 10 if err != nil { 11 panic(err) 12 } 13 14 err := startstop.Start(computeClient, serverID).ExtractErr() 15 if err != nil { 16 panic(err) 17 } 18 */ 19 package startstop