github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/taurusdb/v3/configurations/requests.go (about) 1 package configurations 2 3 import ( 4 "github.com/huaweicloud/golangsdk" 5 ) 6 7 var RequestOpts golangsdk.RequestOpts = golangsdk.RequestOpts{ 8 MoreHeaders: map[string]string{"Content-Type": "application/json"}, 9 } 10 11 func List(client *golangsdk.ServiceClient) (r ListResult) { 12 _, r.Err = client.Get(listURL(client), &r.Body, &golangsdk.RequestOpts{ 13 OkCodes: []int{200}, 14 MoreHeaders: RequestOpts.MoreHeaders, JSONBody: nil, 15 }) 16 return 17 }