Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // CreatePermission ... CreatePermission(ctx context.Context, rp *model.RolePermission) (int64, error) // DeletePermission ... DeletePermission(ctx context.Context, id int64) error // ListPermissions ... ListPermissions(ctx context.Context, query *q.Query) ([]*model.RolePermission, error) // DeletePermissionsByRole ... DeletePermissionsByRole(ctx context.Context, roleType string, roleID int64) error // CreateRbacPolicy ... CreateRbacPolicy(ctx context.Context, pp *model.PermissionPolicy) (int64, error) // DeleteRbacPolicy ... DeleteRbacPolicy(ctx context.Context, id int64) error // ListRbacPolicies list PermissionPolicy according to the query. ListRbacPolicies(ctx context.Context, query *q.Query) ([]*model.PermissionPolicy, error) // GetPermissionsByRole ... GetPermissionsByRole(ctx context.Context, roleType string, roleID int64) ([]*model.UniversalRolePermission, error) }
DAO is the data access object interface for rbac policy
Click to show internal directories.
Click to hide internal directories.