commit | e51454107a4bfc6d0fba2db201548b4c45a403ea | [log] [tgz] |
---|---|---|
author | Jamie Hannaford <jamie.hannaford@rackspace.com> | Thu Nov 06 12:35:59 2014 +0100 |
committer | Jamie Hannaford <jamie.hannaford@rackspace.com> | Fri Nov 07 14:02:00 2014 +0100 |
tree | be52fbcc9eabeb17e2699d9432eb8a2ef8df4c77 | |
parent | 2592f1f161534c5d7eac3df6435bdac7aa38157b [diff] [blame] |
Adding session persistence
diff --git a/rackspace/lb/v1/sessions/urls.go b/rackspace/lb/v1/sessions/urls.go new file mode 100644 index 0000000..c4a896d --- /dev/null +++ b/rackspace/lb/v1/sessions/urls.go
@@ -0,0 +1,16 @@ +package sessions + +import ( + "strconv" + + "github.com/rackspace/gophercloud" +) + +const ( + path = "loadbalancers" + spPath = "sessionpersistence" +) + +func rootURL(c *gophercloud.ServiceClient, id int) string { + return c.ServiceURL(path, strconv.Itoa(id), spPath) +}