This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pkg structure for authorization (#344)
* updated pkg structure * group constants * rename repository * fix tests * add doc + comments * remove doc files * fix doc
- Loading branch information
1 parent
296489d
commit 067fb24
Showing
52 changed files
with
334 additions
and
304 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package authorization | ||
|
||
const ( | ||
// IdentityResourceTypeOrganization defines the string constant to be used for denoting an organization managed by the authorization framework | ||
IdentityResourceTypeOrganization = "identity/organization" | ||
|
||
// IdentityResourceTypeTeam defines the string constant to be used for denoting a team managed by the authorization framework | ||
IdentityResourceTypeTeam = "identity/team" | ||
|
||
// IdentityResourceTypeGroup defines the string constant to be used for denoting a group managed by the authorization framework | ||
IdentityResourceTypeGroup = "identity/group" | ||
|
||
// IdentityResourceTypeUser defines the string constant to be used for denoting a user managed by the authorization framework | ||
IdentityResourceTypeUser = "identity/user" | ||
) |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
// Package authorization provides the APIs for all available authorization concepts. | ||
package authorization |
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,2 @@ | ||
// Package group provides APIs for managing groups. | ||
package group |
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,2 @@ | ||
// Package organization provides the service, model and repository APIs for managing organizations. | ||
package organization |
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,2 @@ | ||
// Package model provides the code which encapsulates complex database interactions for managing organizations | ||
package model |
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,18 @@ | ||
package organization | ||
|
||
import ( | ||
uuid "github.com/satori/go.uuid" | ||
) | ||
|
||
const ( | ||
// OrganizationOwnerRole is the constant used to denotee the name of the owner's role | ||
OrganizationOwnerRole = "owner" | ||
) | ||
|
||
// IdentityOrganization is used to return the Organizations for which an Identity is associated | ||
type IdentityOrganization struct { | ||
OrganizationID uuid.UUID | ||
Name string | ||
Member bool | ||
Roles []string | ||
} |
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,2 @@ | ||
// Package service provides the code which handles the business logic for managing organizations | ||
package service |
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.