Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRoleNotFound occurs when requested role is not found ErrRoleNotFound = errors.New("role not found") // ErrRoleInUse occurs when a role that is assigned to a user is attempted to delete ErrRoleInUse = errors.New("cannot delete assigned role") // ErrRoleAlreadyAssigned occurs when a role is reassigned to the user ErrRoleAlreadyAssigned = errors.New("role already assigned to the user") // ErrRoleNotAssigned occurs when a user is attempted to revoke from a role that is not assigned ErrRoleNotAssigned = errors.New("role not assigned to the user") // ErrRoleAlreadyExists occurs when role with existing name is attempted to create or update ErrRoleAlreadyExists = errors.New("role with the name already exists") // ErrPermissionNotFound occurs when requested permission is not found ErrPermissionNotFound = errors.New("permission not found") // ErrRErrPermissionInUseoleInUse occurs when a permission that is assigned to a user is attempted to delete ErrPermissionInUse = errors.New("cannot delete assigned permission") // ErrPermissionAlreadyAssigned occurs when a permission is reassigned to the user ErrPermissionAlreadyAssigned = errors.New("permission already assigned to the user") // ErrPermissionNotAssigned occurs when a user is attempted to revoke from a permission that is not assigned ErrPermissionNotAssigned = errors.New("permission not assigned to the user") // ErrPermissionAlreadyExists occurs when a permission with existing name is attempted to create or update ErrPermissionAlreadyExists = errors.New("permission with the name already exists") // ErrCategoryNotFound occurs when requested category is not found ErrCategoryNotFound = errors.New("category not found") // ErrCategoryAlreadyExists occurs when category with existing name is attempted to create or update ErrCategoryAlreadyExists = errors.New("category with the name already exists") // ErrUrlNotFound occurs when requested url is not found ErrUrlNotFound = errors.New("url not found") // ErrUrlAlreadyExists occurs when url with existing path name is attempted to create or update ErrUrlAlreadyExists = errors.New("url with the path already exists") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.