Documentation ¶
Index ¶
- type Enforcer
- func (_m *Enforcer) Enforce(user string, resource string, action string) (*bool, error)
- func (_m *Enforcer) FilterAuthorizedResource(user string, resources []string, action string) ([]string, error)
- func (_m *Enforcer) GetPolicy(policyName string) (*types.Policy, error)
- func (_m *Enforcer) GetRole(roleName string) (*types.Role, error)
- func (_m *Enforcer) UpsertPolicy(policyName string, roles []string, users []string, resources []string, ...) (*types.Policy, error)
- func (_m *Enforcer) UpsertRole(roleName string, users []string) (*types.Role, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enforcer ¶
Enforcer is an autogenerated mock type for the Enforcer type
func (*Enforcer) Enforce ¶
Enforce provides a mock function with given fields: user, resource, action
func (*Enforcer) FilterAuthorizedResource ¶
func (_m *Enforcer) FilterAuthorizedResource(user string, resources []string, action string) ([]string, error)
FilterAuthorizedResource provides a mock function with given fields: user, resources, action
Click to show internal directories.
Click to hide internal directories.