github.com/gophercloud/gophercloud@v1.11.0/openstack/clustering/v1/webhooks/results.go (about) 1 package webhooks 2 3 import ( 4 "github.com/gophercloud/gophercloud" 5 ) 6 7 type commonResult struct { 8 gophercloud.Result 9 } 10 11 type TriggerResult struct { 12 commonResult 13 } 14 15 // Extract retrieves the response action 16 func (r commonResult) Extract() (string, error) { 17 var s struct { 18 Action string `json:"action"` 19 } 20 err := r.ExtractInto(&s) 21 return s.Action, err 22 }