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