Rename ComputeApi to ServerApi
ComputeApi never sat well with me. OpenStack documents prefer to call
their computing service "Cloud Server" API instead. So, I renamed all
public-facing types and procedure names to reflect this usage.
Fixes #33
diff --git a/servers.go b/servers.go
index e3bc547..586df8d 100644
--- a/servers.go
+++ b/servers.go
@@ -7,9 +7,9 @@
"github.com/racker/perigee"
)
-// genericCloudProvider structures provide the implementation for generic OpenStack-compatible
-// ComputeProvider interfaces.
-type genericCloudProvider struct {
+// genericServersProvider structures provide the implementation for generic OpenStack-compatible
+// CloudServersProvider interfaces.
+type genericServersProvider struct {
// endpoint refers to the provider's API endpoint base URL. This will be used to construct
// and issue queries.
endpoint string
@@ -22,8 +22,8 @@
access AccessProvider
}
-// See the ComputeProvider interface for details.
-func (gcp *genericCloudProvider) ListServers() ([]Server, error) {
+// See the CloudServersProvider interface for details.
+func (gcp *genericServersProvider) ListServers() ([]Server, error) {
var ss []Server
url := gcp.endpoint + "/servers"