Samuel A. Falvo II | 2e2b877 | 2013-07-04 15:40:15 -0700 | [diff] [blame^] | 1 | package gophercloud |
| 2 | |
| 3 | // genericCloudProvider structures provide the implementation for generic OpenStack-compatible |
| 4 | // ComputeProvider interfaces. |
| 5 | type genericCloudProvider struct { |
| 6 | // endpoint refers to the provider's API endpoint base URL. This will be used to construct |
| 7 | // and issue queries. |
| 8 | endpoint string |
| 9 | |
| 10 | // Test context (if any) in which to issue requests. |
| 11 | context *Context |
| 12 | } |
| 13 | |
| 14 | // See the ComputeProvider interface for details. |
| 15 | func (gcp *genericCloudProvider) ListServers() ([]Server, error) { |
| 16 | return nil, nil |
| 17 | } |
| 18 | |
| 19 | // Server structures provide data about a server running in your provider's cloud. |
| 20 | type Server struct { |
| 21 | Id string |
| 22 | } |