Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handle permission authorization http request.
func NewHandler ¶
func NewHandler(authz authorizer.Authorizer) *Handler
NewHandler creates new authorizer handler object.
func (*Handler) Authorize ¶
func (h *Handler) Authorize(request *restful.Request, response *restful.Response)
Authorize receive a subject access review request and determine the subject access.
func (*Handler) BatchAuthorize ¶
func (h *Handler) BatchAuthorize(request *restful.Request, response *restful.Response)
BatchAuthorize receive multiple subject access reviews request and return determine results.
func (*Handler) RestAuthorize ¶
func (h *Handler) RestAuthorize(request *restful.Request, response *restful.Response)
RestAuthorize receive a subject access review request and determine the subject access to be compatible with k8s restful attributes.
Click to show internal directories.
Click to hide internal directories.