Versions in this module Expand all Collapse all v1 v1.0.0 Jul 17, 2018 Changes in this version + func Authentication() martini.Handler + func Authorization(action string) martini.Handler + func FakeKeystone(martini *martini.ClassicMartini) + func HTTPJSONError(res http.ResponseWriter, err string, code int) + func JSONURLs() martini.Handler + func Logging() martini.Handler + func Metrics() martini.Handler + func ReadJSON(r *http.Request) (map[string]interface{}, error) + func WithContext() martini.Handler + type CachedIdentityService struct + func (c *CachedIdentityService) GetClient() *gophercloud.ServiceClient + func (c *CachedIdentityService) GetServiceAuthorization() (schema.Authorization, error) + func (c *CachedIdentityService) GetTenantID(tenantName string) (string, error) + func (c *CachedIdentityService) GetTenantName(tenantID string) (string, error) + func (c *CachedIdentityService) VerifyToken(token string) (schema.Authorization, error) + type Context map[string]interface + type DefaultNobodyResourceService struct + func (nrs *DefaultNobodyResourceService) VerifyResourcePath(resourcePath string) bool + type FakeIdentity struct + func (*FakeIdentity) GetTenantID(tenantName string) (string, error) + func (*FakeIdentity) GetTenantName(tenantID string) (string, error) + func (*FakeIdentity) VerifyToken(tokenID string) (schema.Authorization, error) + func (identity *FakeIdentity) GetClient() *gophercloud.ServiceClient + func (identity *FakeIdentity) GetServiceAuthorization() (schema.Authorization, error) + type IdentityService interface + GetClient func() *gophercloud.ServiceClient + GetServiceAuthorization func() (schema.Authorization, error) + GetTenantID func(string) (string, error) + GetTenantName func(string) (string, error) + VerifyToken func(string) (schema.Authorization, error) + func CreateIdentityServiceFromConfig(config *util.Config) (IdentityService, error) + func NewCachedIdentityService(inner IdentityService, ttl time.Duration) IdentityService + type MockIdentityService struct + func NewMockIdentityService(ctrl *gomock.Controller) *MockIdentityService + func (m *MockIdentityService) EXPECT() *MockIdentityServiceMockRecorder + func (m *MockIdentityService) GetClient() *gophercloud.ServiceClient + func (m *MockIdentityService) GetServiceAuthorization() (schema.Authorization, error) + func (m *MockIdentityService) GetTenantID(arg0 string) (string, error) + func (m *MockIdentityService) GetTenantName(arg0 string) (string, error) + func (m *MockIdentityService) VerifyToken(arg0 string) (schema.Authorization, error) + type MockIdentityServiceMockRecorder struct + func (mr *MockIdentityServiceMockRecorder) GetClient() *gomock.Call + func (mr *MockIdentityServiceMockRecorder) GetServiceAuthorization() *gomock.Call + func (mr *MockIdentityServiceMockRecorder) GetTenantID(arg0 interface{}) *gomock.Call + func (mr *MockIdentityServiceMockRecorder) GetTenantName(arg0 interface{}) *gomock.Call + func (mr *MockIdentityServiceMockRecorder) VerifyToken(arg0 interface{}) *gomock.Call + type MockNobodyResourceService struct + func NewMockNobodyResourceService(ctrl *gomock.Controller) *MockNobodyResourceService + func (m *MockNobodyResourceService) EXPECT() *MockNobodyResourceServiceMockRecorder + func (m *MockNobodyResourceService) VerifyResourcePath(arg0 string) bool + type MockNobodyResourceServiceMockRecorder struct + func (mr *MockNobodyResourceServiceMockRecorder) VerifyResourcePath(arg0 interface{}) *gomock.Call + type NoIdentityService struct + func (i *NoIdentityService) GetClient() *gophercloud.ServiceClient + func (i *NoIdentityService) GetServiceAuthorization() (schema.Authorization, error) + func (i *NoIdentityService) GetTenantID(string) (string, error) + func (i *NoIdentityService) GetTenantName(string) (string, error) + func (i *NoIdentityService) VerifyToken(string) (schema.Authorization, error) + type NobodyIdentityService struct + func (i *NobodyIdentityService) GetClient() *gophercloud.ServiceClient + func (i *NobodyIdentityService) GetServiceAuthorization() (schema.Authorization, error) + func (i *NobodyIdentityService) GetTenantID(string) (string, error) + func (i *NobodyIdentityService) GetTenantName(string) (string, error) + func (i *NobodyIdentityService) VerifyToken(string) (schema.Authorization, error) + type NobodyResourceService interface + VerifyResourcePath func(string) bool + func NewNobodyResourceService(nobodyResourcePathRegexes []*regexp.Regexp) NobodyResourceService