commit | 21a3eb1cbabd83a27e3feacc05a6d30d99247e66 | [log] [tgz] |
---|---|---|
author | Jamie Hannaford <jamie.hannaford@rackspace.com> | Mon Nov 03 10:34:29 2014 +0100 |
committer | Jamie Hannaford <jamie.hannaford@rackspace.com> | Fri Nov 07 14:01:57 2014 +0100 |
tree | f123f2f948c89e9500158e5be5fc71005ca2d749 | |
parent | fba65af2cefe8ca169db2b6467c7ddb1aaa61786 [diff] |
Shifting LB dirs inside version
diff --git a/rackspace/lb/nodes/results.go b/rackspace/lb/nodes/results.go deleted file mode 100644 index 970f7f0..0000000 --- a/rackspace/lb/nodes/results.go +++ /dev/null
@@ -1 +0,0 @@ -package nodes
diff --git a/rackspace/lb/lbs/doc.go b/rackspace/lb/v1/lbs/doc.go similarity index 100% rename from rackspace/lb/lbs/doc.go rename to rackspace/lb/v1/lbs/doc.go
diff --git a/rackspace/lb/lbs/fixtures.go b/rackspace/lb/v1/lbs/fixtures.go similarity index 100% rename from rackspace/lb/lbs/fixtures.go rename to rackspace/lb/v1/lbs/fixtures.go
diff --git a/rackspace/lb/lbs/requests.go b/rackspace/lb/v1/lbs/requests.go similarity index 100% rename from rackspace/lb/lbs/requests.go rename to rackspace/lb/v1/lbs/requests.go
diff --git a/rackspace/lb/lbs/requests_test.go b/rackspace/lb/v1/lbs/requests_test.go similarity index 100% rename from rackspace/lb/lbs/requests_test.go rename to rackspace/lb/v1/lbs/requests_test.go
diff --git a/rackspace/lb/lbs/results.go b/rackspace/lb/v1/lbs/results.go similarity index 97% rename from rackspace/lb/lbs/results.go rename to rackspace/lb/v1/lbs/results.go index 384a1fc..42ccfae 100644 --- a/rackspace/lb/lbs/results.go +++ b/rackspace/lb/v1/lbs/results.go
@@ -5,6 +5,7 @@ "github.com/rackspace/gophercloud" "github.com/rackspace/gophercloud/pagination" + "github.com/rackspace/gophercloud/rackspace/lb/v1/nodes" ) type Protocol string @@ -141,7 +142,7 @@ Cluster Cluster - Nodes []Node + Nodes []nodes.Node ConnectionLogging ConnectionLogging @@ -178,15 +179,6 @@ Name string } -type Node struct { - Address string - ID int - Port int - Status Status - Condition string - Weight int -} - // LBPage is the page returned by a pager when traversing over a collection of // LBs. type LBPage struct {
diff --git a/rackspace/lb/lbs/urls.go b/rackspace/lb/v1/lbs/urls.go similarity index 100% rename from rackspace/lb/lbs/urls.go rename to rackspace/lb/v1/lbs/urls.go
diff --git a/rackspace/lb/nodes/doc.go b/rackspace/lb/v1/nodes/doc.go similarity index 100% rename from rackspace/lb/nodes/doc.go rename to rackspace/lb/v1/nodes/doc.go
diff --git a/rackspace/lb/nodes/fixtures.go b/rackspace/lb/v1/nodes/fixtures.go similarity index 100% rename from rackspace/lb/nodes/fixtures.go rename to rackspace/lb/v1/nodes/fixtures.go
diff --git a/rackspace/lb/nodes/requests.go b/rackspace/lb/v1/nodes/requests.go similarity index 100% rename from rackspace/lb/nodes/requests.go rename to rackspace/lb/v1/nodes/requests.go
diff --git a/rackspace/lb/nodes/requests_test.go b/rackspace/lb/v1/nodes/requests_test.go similarity index 100% rename from rackspace/lb/nodes/requests_test.go rename to rackspace/lb/v1/nodes/requests_test.go
diff --git a/rackspace/lb/v1/nodes/results.go b/rackspace/lb/v1/nodes/results.go new file mode 100644 index 0000000..08d4325 --- /dev/null +++ b/rackspace/lb/v1/nodes/results.go
@@ -0,0 +1,10 @@ +package nodes + +type Node struct { + Address string + ID int + Port int + Status Status + Condition string + Weight int +}
diff --git a/rackspace/lb/nodes/urls.go b/rackspace/lb/v1/nodes/urls.go similarity index 100% rename from rackspace/lb/nodes/urls.go rename to rackspace/lb/v1/nodes/urls.go