Documentation ¶
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
}
func NewAuthzController ¶
func NewAuthzController(getter authorization.PolicyGetter) *AuthzController
NewAuthzController 创建一个 authz controller.
func (*AuthzController) Authorize ¶
func (a *AuthzController) Authorize(c *gin.Context)
Authorize 返回一个资源是否被允许访问.
Click to show internal directories.
Click to hide internal directories.