Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HasPermissionQuery ¶
type HasRoleForGroupQuery ¶
type HasRoleQuery ¶
type ListRolePermissionsQuery ¶
type ListRolePermissionsQuery struct {
RoleName string
}
type PermissionRepo ¶
type RoleRepo ¶
type RoleRepo interface { CreateRole( ctx context.Context, logger logx.Logger, name string, permissions ...perm.Permission, ) (perm.Role, error) DeleteRole( context.Context, logx.Logger, string, ) error ListRolePermissions( ctx context.Context, logger logx.Logger, query ListRolePermissionsQuery, ) ([]perm.Permission, error) AssignRole( ctx context.Context, logger logx.Logger, roleName, domainID, namespace string, ) error AssignRoleToGroup( ctx context.Context, logger logx.Logger, roleName, groupID string, ) error UnassignRole( ctx context.Context, logger logx.Logger, roleName, domainID, namespace string, ) error UnassignRoleFromGroup( ctx context.Context, logger logx.Logger, roleName, groupID string, ) error HasRole( ctx context.Context, logger logx.Logger, query HasRoleQuery, ) (bool, error) HasRoleForGroup( ctx context.Context, logger logx.Logger, query HasRoleForGroupQuery, ) (bool, error) }
Click to show internal directories.
Click to hide internal directories.