-
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 role in body
Signed-off-by: Rewant Soni <[email protected]>
- Loading branch information
1 parent
21a603a
commit e3be1e2
Showing
4 changed files
with
40 additions
and
14 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 Role string | ||
|
||
const ( | ||
ClientRole Role = "client" | ||
MirroringPeerRole Role = "mirroring-peer" | ||
) | ||
|
||
type OnboardingTicket struct { | ||
ID string `json:"id"` | ||
ExpirationDate int64 `json:"expirationDate,string"` | ||
StorageQuotaInGiB uint `json:"storageQuotaInGiB,omitempty"` | ||
// Role can be either client or mirroring-peer | ||
Role Role `json:"role,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