forked from gitpod-io/gitpod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[server] Unimplemented user service on internal port (gitpod-io#16999)
- Loading branch information
Showing
7 changed files
with
136 additions
and
0 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,56 @@ | ||
/** | ||
* Copyright (c) 2023 Gitpod GmbH. All rights reserved. | ||
* Licensed under the GNU Affero General Public License (AGPL). | ||
* See License.AGPL.txt in the project root for license information. | ||
*/ | ||
|
||
import { injectable } from "inversify"; | ||
import { ServiceImpl, ConnectError, Code } from "@bufbuild/connect"; | ||
import { UserService as UserServiceInterface } from "@gitpod/public-api/lib/gitpod/experimental/v1/user_connectweb"; | ||
import { | ||
GetAuthenticatedUserRequest, | ||
ListSSHKeysRequest, | ||
CreateSSHKeyRequest, | ||
GetSSHKeyRequest, | ||
DeleteSSHKeyRequest, | ||
GetGitTokenRequest, | ||
BlockUserRequest, | ||
GetAuthenticatedUserResponse, | ||
ListSSHKeysResponse, | ||
CreateSSHKeyResponse, | ||
GetSSHKeyResponse, | ||
DeleteSSHKeyResponse, | ||
GetGitTokenResponse, | ||
BlockUserResponse, | ||
} from "@gitpod/public-api/lib/gitpod/experimental/v1/user_pb"; | ||
|
||
@injectable() | ||
export class APIUserService implements ServiceImpl<typeof UserServiceInterface> { | ||
public async getAuthenticatedUser(req: GetAuthenticatedUserRequest): Promise<GetAuthenticatedUserResponse> { | ||
throw new ConnectError("unimplemented", Code.Unimplemented); | ||
} | ||
|
||
public async listSSHKeys(req: ListSSHKeysRequest): Promise<ListSSHKeysResponse> { | ||
throw new ConnectError("unimplemented", Code.Unimplemented); | ||
} | ||
|
||
public async createSSHKey(req: CreateSSHKeyRequest): Promise<CreateSSHKeyResponse> { | ||
throw new ConnectError("unimplemented", Code.Unimplemented); | ||
} | ||
|
||
public async getSSHKey(req: GetSSHKeyRequest): Promise<GetSSHKeyResponse> { | ||
throw new ConnectError("unimplemented", Code.Unimplemented); | ||
} | ||
|
||
public async deleteSSHKey(req: DeleteSSHKeyRequest): Promise<DeleteSSHKeyResponse> { | ||
throw new ConnectError("unimplemented", Code.Unimplemented); | ||
} | ||
|
||
public async getGitToken(req: GetGitTokenRequest): Promise<GetGitTokenResponse> { | ||
throw new ConnectError("unimplemented", Code.Unimplemented); | ||
} | ||
|
||
public async blockUser(req: BlockUserRequest): Promise<BlockUserResponse> { | ||
throw new ConnectError("unimplemented", Code.Unimplemented); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -1238,11 +1238,33 @@ | |
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" | ||
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== | ||
|
||
"@bufbuild/connect-express@^0.8.1": | ||
version "0.8.1" | ||
resolved "https://registry.yarnpkg.com/@bufbuild/connect-express/-/connect-express-0.8.1.tgz#54eb548896fad2488bc9cd16b968713e0799c955" | ||
integrity sha512-DZkPfMYmL1doR8XaeQdwHI0YmKyWz7sG9HaZYEOcBoag+lnlbqXGaakx5gbMnE1OSX7qkSVEqrv7kB/B1tSXOQ== | ||
dependencies: | ||
"@bufbuild/connect" "0.8.1" | ||
"@bufbuild/connect-node" "^0.8.1" | ||
"@types/express" "^4.17.17" | ||
|
||
"@bufbuild/connect-node@^0.8.1": | ||
version "0.8.1" | ||
resolved "https://registry.yarnpkg.com/@bufbuild/connect-node/-/connect-node-0.8.1.tgz#db371506a9c54cac78b0b73b25dd531d86dbe45a" | ||
integrity sha512-yIdXWekNaKDBFVWY6S6L0js6Szh2fhunmVxxCd5taOL4KekO5joIfuA9eLuunTDlp1ie0fPPm7Dc5KlxWgOn0Q== | ||
dependencies: | ||
"@bufbuild/connect" "0.8.1" | ||
headers-polyfill "^3.1.2" | ||
|
||
"@bufbuild/connect-web@^0.2.1": | ||
version "0.2.1" | ||
resolved "https://registry.yarnpkg.com/@bufbuild/connect-web/-/connect-web-0.2.1.tgz#a7ee2914bf1b77d640fc4ee3c3a89d626f3015fa" | ||
integrity sha512-L580cL9VZCXcjwXMCvIvdFBqdQofVBQcL+jmSis7m8ZxPj5NQ4p7fUhQRTsZMWHkyWINdlZnr7WsHQL0BT7wPQ== | ||
|
||
"@bufbuild/[email protected]", "@bufbuild/connect@^0.8.1": | ||
version "0.8.1" | ||
resolved "https://registry.yarnpkg.com/@bufbuild/connect/-/connect-0.8.1.tgz#71afa90bf56bb833a7f3e2a492e6f9f83c2bebeb" | ||
integrity sha512-cQA0jstYcLknJecTE7KbU4ePNBqiCNviBEcUCbFLve3x+vcSmtoH6jb8z39MeBqFy42ZoWhTGGc3RNCeOx2QUA== | ||
|
||
"@bufbuild/[email protected]", "@bufbuild/protobuf@^0.1.1": | ||
version "0.1.1" | ||
resolved "https://registry.yarnpkg.com/@bufbuild/protobuf/-/protobuf-0.1.1.tgz#163dee03af49e82d300dfa2bf60c8c0f04c80b4c" | ||
|
@@ -2880,6 +2902,15 @@ | |
"@types/qs" "*" | ||
"@types/range-parser" "*" | ||
|
||
"@types/express-serve-static-core@^4.17.33": | ||
version "4.17.33" | ||
resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.33.tgz#de35d30a9d637dc1450ad18dd583d75d5733d543" | ||
integrity sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA== | ||
dependencies: | ||
"@types/node" "*" | ||
"@types/qs" "*" | ||
"@types/range-parser" "*" | ||
|
||
"@types/express-session@*", "@types/[email protected]": | ||
version "1.17.4" | ||
resolved "https://registry.npmjs.org/@types/express-session/-/express-session-1.17.4.tgz" | ||
|
@@ -2897,6 +2928,16 @@ | |
"@types/qs" "*" | ||
"@types/serve-static" "*" | ||
|
||
"@types/express@^4.17.17": | ||
version "4.17.17" | ||
resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.17.tgz#01d5437f6ef9cfa8668e616e13c2f2ac9a491ae4" | ||
integrity sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q== | ||
dependencies: | ||
"@types/body-parser" "*" | ||
"@types/express-serve-static-core" "^4.17.33" | ||
"@types/qs" "*" | ||
"@types/serve-static" "*" | ||
|
||
"@types/fs-extra@^9.0.12": | ||
version "9.0.13" | ||
resolved "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz" | ||
|
@@ -9355,6 +9396,11 @@ he@^1.2.0: | |
resolved "https://registry.npmjs.org/he/-/he-1.2.0.tgz" | ||
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== | ||
|
||
headers-polyfill@^3.1.2: | ||
version "3.1.2" | ||
resolved "https://registry.yarnpkg.com/headers-polyfill/-/headers-polyfill-3.1.2.tgz#9a4dcb545c5b95d9569592ef7ec0708aab763fbe" | ||
integrity sha512-tWCK4biJ6hcLqTviLXVR9DTRfYGQMXEIUj3gwJ2rZ5wO/at3XtkI4g8mCvFdUF9l1KMBNCfmNAdnahm1cgavQA== | ||
|
||
heapdump@^0.3.15: | ||
version "0.3.15" | ||
resolved "https://registry.npmjs.org/heapdump/-/heapdump-0.3.15.tgz" | ||
|