Adding support for get node operation
diff --git a/rackspace/lb/v1/nodes/results.go b/rackspace/lb/v1/nodes/results.go
index 449d7f6..b514217 100644
--- a/rackspace/lb/v1/nodes/results.go
+++ b/rackspace/lb/v1/nodes/results.go
@@ -130,3 +130,25 @@
type DeleteResult struct {
gophercloud.ErrResult
}
+
+type commonResult struct {
+ gophercloud.Result
+}
+
+type GetResult struct {
+ commonResult
+}
+
+func (r commonResult) Extract() (*Node, error) {
+ if r.Err != nil {
+ return nil, r.Err
+ }
+
+ var response struct {
+ Node Node `mapstructure:"node"`
+ }
+
+ err := mapstructure.Decode(r.Body, &response)
+
+ return &response.Node, err
+}