1
package identityservice
5
// An IdentityService provides user authentication for an Openstack instance.
6
type IdentityService interface {
7
AddUser(user, secret, tenant string) *UserInfo
8
FindUser(token string) (*UserInfo, error)
9
RegisterServiceProvider(name, serviceType string, serviceProvider ServiceProvider)
10
AddService(service Service)
11
SetupHTTP(mux *http.ServeMux)
14
// Service wraps two possible Service versions
20
// ServiceProvider is an Openstack module which has service endpoints.
21
type ServiceProvider interface {
23
Endpoints() []Endpoint
25
V3Endpoints() []V3Endpoint