blob: 3243cd821dd4ee13fa05e6d55b549e2156c9cd7a [file] [log] [blame]
Ash Wilsonbdfc3302014-09-04 10:16:28 -04001package endpoints
2
3import "github.com/rackspace/gophercloud"
4
5// Endpoint describes the entry point for another service's API.
6type Endpoint struct {
7 ID string `json:"id"`
8 Interface Interface `json:"interface"`
9 Name string `json:"name"`
10 Region string `json:"region"`
11 ServiceID string `json:"service_id"`
12 URL string `json:"url"`
13}
14
15// EndpointList contains a page of Endpoint results.
16type EndpointList struct {
Ash Wilson8df23c82014-09-05 14:18:20 -040017 gophercloud.PaginationLinks `json:"links"`
18
Ash Wilson74b12ce2014-09-05 13:46:53 -040019 service *gophercloud.ServiceClient
Ash Wilson8df23c82014-09-05 14:18:20 -040020 Endpoints []Endpoint `json:"endpoints"`
Ash Wilsonbdfc3302014-09-04 10:16:28 -040021}