Documentation ¶
Overview ¶
Package authorize implements the authorize handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthzController ¶
type AuthzController struct {
// contains filtered or unexported fields
}
AuthzController create a authorize handler used to handle authorize request.
func NewAuthzController ¶
func NewAuthzController(store authorizer.PolicyGetter) *AuthzController
NewAuthzController creates a authorize handler.
func (*AuthzController) Authorize ¶
func (a *AuthzController) Authorize(c *gin.Context)
Authorize returns whether a request is allow or deny to access a resource and do some action under specified condition.
Click to show internal directories.
Click to hide internal directories.