package
1.0.0
Repository: https://github.com/cloudwan/gohan.git
Documentation: pkg.go.dev

# Functions

Authentication authenticates user using keystone.
Authorization checks user permissions against policy.
CreateIdentityServiceFromConfig creates keystone identity from config.
FakeKeystone server for only test purpose.
HTTPJSONError helper for returning JSON errors.
JSONURLs strips ".json" suffixes added to URLs.
Logging logs requests and responses.
No description provided by the author
No description provided by the author
NewMockIdentityService creates a new mock instance.
NewMockNobodyResourceService creates a new mock instance.
NewNobodyResourceService is a constructor for NobodyResourceService.
ReadJSON reads JSON from http request.
WithContext injects new empty context object.

# Structs

No description provided by the author
DefaultNobodyResourceService contains a definition of default nobody resources.
FakeIdentity middleware.
MockIdentityService is a mock of IdentityService interface.
MockIdentityServiceMockRecorder is the mock recorder for MockIdentityService.
MockNobodyResourceService is a mock of NobodyResourceService interface.
MockNobodyResourceServiceMockRecorder is the mock recorder for MockNobodyResourceService.
NobodyIdentityService for nobody auth.
NoIdentityService for disabled auth.

# Interfaces

IdentityService for user authentication & authorization.
NobodyResourceService contains a definition of nobody resources (that do not require authorization).

# Type aliases

Context type.