Documentation
¶
Index ¶
- Variables
- func ApplyToGroup(groupID, userID uint64) error
- func DeleteCategory(entity *category.Entity) error
- func DeleteGroup(groupID uint64) error
- func DeleteMember(groupID, memberID uint64) error
- func ReplaceCategoryGrants(categoryID uint64, grants []GrantInput) error
- func ReviewApplication(groupID, memberID uint64, approve bool) error
- func SaveCategoryWithDefaults(entity *category.Entity, create bool) error
- func SaveGroup(input GroupInput) (accessGroups.Entity, error)
- func SaveMember(groupID, userID uint64, role string, actorID uint64) (accessGroupMembers.Entity, error)
- type CategoryRestrictionConflictError
- type GrantInput
- type GroupInput
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidGroup = errors.New("invalid access group") ErrSystemGroupImmutable = errors.New("system access group is immutable") ErrInvalidMember = errors.New("invalid access group member") ErrInvalidGrant = errors.New("invalid category grant") ErrApplicationNotAllowed = errors.New("access group does not accept applications") )
Functions ¶
func ApplyToGroup ¶
func DeleteCategory ¶
func DeleteGroup ¶
func DeleteMember ¶
func ReplaceCategoryGrants ¶
func ReplaceCategoryGrants(categoryID uint64, grants []GrantInput) error
ReplaceCategoryGrants swaps a category's grants. A public category cannot be made restricted while it is still attached to multi-category topics: the single-restricted-category invariant must hold before visibility narrows.
func ReviewApplication ¶
func SaveGroup ¶
func SaveGroup(input GroupInput) (accessGroups.Entity, error)
func SaveMember ¶
Types ¶
type CategoryRestrictionConflictError ¶
type CategoryRestrictionConflictError struct {
TopicCount int64
}
func (*CategoryRestrictionConflictError) Error ¶
func (err *CategoryRestrictionConflictError) Error() string
type GrantInput ¶
Click to show internal directories.
Click to hide internal directories.