-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes to onboarding token to include subjectRole in body
Signed-off-by: Rewant Soni <[email protected]>
- Loading branch information
1 parent
6ed794c
commit 96050c1
Showing
4 changed files
with
43 additions
and
17 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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
package services | ||
|
||
type OnboardingSubjectRole string | ||
|
||
const ( | ||
ClientRole OnboardingSubjectRole = "ocs-client" | ||
PeerRole OnboardingSubjectRole = "ocs-peer" | ||
) | ||
|
||
type OnboardingTicket struct { | ||
ID string `json:"id"` | ||
ExpirationDate int64 `json:"expirationDate,string"` | ||
StorageQuotaInGiB uint `json:"storageQuotaInGiB,omitempty"` | ||
// OnboardingSubjectRole can be either ocs-client or ocs-peer | ||
SubjectRole OnboardingSubjectRole `json:"subjectRole,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