-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(organization): add organization and membership rules (#146)
Because - we need to add rules and constraints for organization and membership This commit - add organization and membership rules - refactor error handling
- Loading branch information
Showing
14 changed files
with
493 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package acl | ||
|
||
import "errors" | ||
|
||
var ErrMembershipNotFound = errors.New("membership not found") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package handler | ||
|
||
import "errors" | ||
|
||
var ErrCheckUpdateImmutableFields = errors.New("update immutable fields error") | ||
var ErrCheckOutputOnlyFields = errors.New("can not contain output only fields") | ||
var ErrCheckRequiredFields = errors.New("required fields missing") | ||
var ErrFieldMask = errors.New("field mask error") | ||
var ErrResourceID = errors.New("resource ID error") | ||
var ErrUpdateMask = errors.New("update mask error") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.