Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectManager ¶
func GetProjectManager(req *http.Request) (promgr.ProjectManager, error)
GetProjectManager tries to get project manager from request and returns it
func GetSecurityContext ¶
GetSecurityContext tries to get security context from request and returns it
func MediaTypeFilter ¶
MediaTypeFilter filters the POST request, it returns 415 if the content type of the request doesn't match the preset ones.
func SecurityFilter ¶
SecurityFilter authenticates the request and passes a security context and a project manager with it which can be used to do some authN & authZ
Types ¶
type ReqCtxModifier ¶
ReqCtxModifier modifies the context of request
Click to show internal directories.
Click to hide internal directories.