-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: WIP slicing www out of registry
- Loading branch information
1 parent
bf18c03
commit f239e24
Showing
24 changed files
with
6,225 additions
and
199 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,45 @@ | ||
storageApi | ||
getProviders() | ||
[Provider] | ||
Provider.redirect | ||
getProvider(name) | ||
getAuthentication({remoteId, provider}) | ||
Authentication | ||
user: User | ||
signup({username, email, remoteAuth: {token, id, provider}}) | ||
* NOTE: bring email uniqueness check into signup | ||
* NOTE: err.code | ||
- "signup.email_taken" | ||
- "signup.username_taken" | ||
User | ||
getTokens({for: user, page: N}) | ||
[objects] | ||
createToken({for: user, description}) | ||
deleteToken({for: user, valueHashes: [String]}) -> { count } | ||
resolveCLISession({session, value}) | ||
fetchCLISession({session}) -> { description, value? } | ||
createCLISession({description}) -> id String | ||
getActiveMaintainers({namespace, host, name, page}) | ||
|
||
inviteMaintainer({namespace, host, name, from, to}) | ||
* NOTE: err.code | ||
- invite.invitee_dne | ||
- invite.package_dne | ||
- invite.already_accepted | ||
- invite.already_declined | ||
- I think the invite logic might be incorrect around | ||
maintainers.js L75, need to look into this. | ||
removeMaintainer({namespace, host, name, from, to}) | ||
* NOTE: err.code | ||
- invite.invitee_dne | ||
- invite.package_dne | ||
- invite.already_accepted | ||
- invite.already_declined | ||
- invite.invitee_not_maintainer (distinct from invitee_dne: namespace exists but is not a maintainer) | ||
acceptMaintainerInvite({namespace, host, name, member, bearer}) | ||
* NOTE: err.code | ||
- invite.invitee_dne | ||
- invite.package_dne | ||
- invite.already_accepted | ||
- invite.already_declined | ||
- invite.invitee_not_maintainer (distinct from invitee_dne: namespace exists but is not a maintainer) |
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 @@ | ||
'use strict' | ||
|
||
module.exports = class Client { | ||
constructor ({ host = process.env.STORAGE_HOST, requestId }) { | ||
this.host = host | ||
this.requestId = requestId | ||
} | ||
|
||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,15 @@ | ||
{ | ||
"name": "storage-api", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "Chris Dickinson <chris@neversaw.us> (http://neversaw.us/)", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"node-fetch": "^2.6.0" | ||
} | ||
} |
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
Oops, something went wrong.