mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
Switch license to AGPL
This commit is contained in:
parent
3c4b6676ee
commit
478a75e744
@ -1,6 +1,6 @@
|
||||
# Copyright (c) 2021 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.
|
||||
# See License.AGPL.txt in the project root for license information.
|
||||
|
||||
packages:
|
||||
- name: all
|
||||
@ -140,23 +140,10 @@ scripts:
|
||||
deps:
|
||||
- dev/addlicense:app
|
||||
script: |
|
||||
tmpdir=$(mktemp -d)
|
||||
echo "Temp Dir: $tmpdir"
|
||||
|
||||
leeway collect files --format-string '{{ range . }}{{ .Name }}{{"\n"}}{{ end }}' | uniq > $tmpdir/all
|
||||
leeway collect files --variant oss --format-string '{{ range . }}{{ .Name }}{{"\n"}}{{ end }}' | uniq > $tmpdir/oss
|
||||
|
||||
grep -v -f $tmpdir/oss $tmpdir/all > $tmpdir/ee
|
||||
grep -E "^components\/ee\/" $tmpdir/oss >> $tmpdir/ee
|
||||
grep -v -E "^chart\/" $tmpdir/oss | grep -v -E "^install\/" > $tmpdir/agpl
|
||||
grep -v -f $tmpdir/agpl $tmpdir/oss > $tmpdir/mit
|
||||
|
||||
# set `export LICENCE_HEADER_CHECK_ONLY=true` to just check if all headers are there (and exit with status code 1 if not)
|
||||
check=$([ "$LICENCE_HEADER_CHECK_ONLY" = true ] && printf "%s" '-check')
|
||||
|
||||
cat $tmpdir/ee | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l gpshf . || exit 1
|
||||
cat $tmpdir/agpl | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l agpl . || exit 1
|
||||
cat $tmpdir/mit | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l mit . || exit 1
|
||||
leeway collect files --format-string '{{ range . }}{{ .Name }}{{"\n"}}{{ end }}' | sort | uniq | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l agpl . || exit 1
|
||||
- name: dejson-log-output
|
||||
script: |-
|
||||
jq -Rr '. as $line |
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cmd
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cmd
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2022 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.
|
||||
# See License.AGPL.txt in the project root for license information.
|
||||
|
||||
set -Eeuo pipefail
|
||||
source /workspace/gitpod/scripts/ws-deploy.sh deployment blobserve
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) 2020 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.
|
||||
# See License.AGPL.txt in the project root for license information.
|
||||
|
||||
FROM alpine:3.16
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package main
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package blobserve
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package blobserve
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package blobserve
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package blobserve
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package blobserve
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package config
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) 2020 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.
|
||||
# See License.AGPL.txt in the project root for license information.
|
||||
|
||||
packages:
|
||||
- name: lib
|
||||
@ -8,4 +8,4 @@ packages:
|
||||
srcs:
|
||||
- "**"
|
||||
config:
|
||||
packaging: library
|
||||
packaging: library
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package analytics
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package baseserver
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package baseserver
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package baseserver
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package baseserver
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package baseserver
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package baseserver_test
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package baseserver
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cgroups
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cgroups
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cgroups_v1
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cgroups_v1
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cgroups_v2
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cgroups_v2
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cgroups_v2
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package cgroups_v2
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package experiments
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package experimentstest
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package experimentstest
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package experiments
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package experiments
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package experiments
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package experiments
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2020 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.
|
||||
# See License.AGPL.txt in the project root for license information.
|
||||
|
||||
|
||||
# based on https://github.com/kubernetes/kubernetes/issues/79384
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package grpc
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package grpc
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package grpc
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package kubernetes
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package kubernetes
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package log
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package namegen
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package namegen_test
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package pprof
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package process
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package process
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package testing
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package tracing
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package tracing
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package util
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package util
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package util_test
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package util
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package watch
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 TypeFox GmbH. All rights reserved.
|
||||
// Licensed under the GNU Affero General Public License (AGPL).
|
||||
// See License-AGPL.txt in the project root for license information.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package config
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package api
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 TypeFox GmbH. All rights reserved.
|
||||
// Licensed under the GNU Affero General Public License (AGPL).
|
||||
// See License-AGPL.txt in the project root for license information.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package api
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package api_test
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2022 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
package api
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
@ -33,4 +33,4 @@ message ListLogsRequest {
|
||||
}
|
||||
message ListLogsResponse {
|
||||
repeated string task_id = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2022 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
// package: contentservice
|
||||
@ -19,7 +19,8 @@ interface IBlobServiceService extends grpc.ServiceDefinition<grpc.UntypedService
|
||||
delete: IBlobServiceService_IDelete;
|
||||
}
|
||||
|
||||
interface IBlobServiceService_IUploadUrl extends grpc.MethodDefinition<blobs_pb.UploadUrlRequest, blobs_pb.UploadUrlResponse> {
|
||||
interface IBlobServiceService_IUploadUrl
|
||||
extends grpc.MethodDefinition<blobs_pb.UploadUrlRequest, blobs_pb.UploadUrlResponse> {
|
||||
path: "/contentservice.BlobService/UploadUrl";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
@ -28,7 +29,8 @@ interface IBlobServiceService_IUploadUrl extends grpc.MethodDefinition<blobs_pb.
|
||||
responseSerialize: grpc.serialize<blobs_pb.UploadUrlResponse>;
|
||||
responseDeserialize: grpc.deserialize<blobs_pb.UploadUrlResponse>;
|
||||
}
|
||||
interface IBlobServiceService_IDownloadUrl extends grpc.MethodDefinition<blobs_pb.DownloadUrlRequest, blobs_pb.DownloadUrlResponse> {
|
||||
interface IBlobServiceService_IDownloadUrl
|
||||
extends grpc.MethodDefinition<blobs_pb.DownloadUrlRequest, blobs_pb.DownloadUrlResponse> {
|
||||
path: "/contentservice.BlobService/DownloadUrl";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
@ -56,26 +58,98 @@ export interface IBlobServiceServer extends grpc.UntypedServiceImplementation {
|
||||
}
|
||||
|
||||
export interface IBlobServiceClient {
|
||||
uploadUrl(request: blobs_pb.UploadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
downloadUrl(request: blobs_pb.DownloadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
delete(request: blobs_pb.DeleteRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
uploadUrl(
|
||||
request: blobs_pb.UploadUrlRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
uploadUrl(
|
||||
request: blobs_pb.UploadUrlRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
uploadUrl(
|
||||
request: blobs_pb.UploadUrlRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
downloadUrl(
|
||||
request: blobs_pb.DownloadUrlRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
downloadUrl(
|
||||
request: blobs_pb.DownloadUrlRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
downloadUrl(
|
||||
request: blobs_pb.DownloadUrlRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
delete(
|
||||
request: blobs_pb.DeleteRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
delete(
|
||||
request: blobs_pb.DeleteRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
delete(
|
||||
request: blobs_pb.DeleteRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
export class BlobServiceClient extends grpc.Client implements IBlobServiceClient {
|
||||
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
||||
public uploadUrl(request: blobs_pb.UploadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
public uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
public uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
public downloadUrl(request: blobs_pb.DownloadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
public downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
public downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall;
|
||||
public delete(request: blobs_pb.DeleteRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
public delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
public delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall;
|
||||
public uploadUrl(
|
||||
request: blobs_pb.UploadUrlRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public uploadUrl(
|
||||
request: blobs_pb.UploadUrlRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public uploadUrl(
|
||||
request: blobs_pb.UploadUrlRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public downloadUrl(
|
||||
request: blobs_pb.DownloadUrlRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public downloadUrl(
|
||||
request: blobs_pb.DownloadUrlRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public downloadUrl(
|
||||
request: blobs_pb.DownloadUrlRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public delete(
|
||||
request: blobs_pb.DeleteRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public delete(
|
||||
request: blobs_pb.DeleteRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public delete(
|
||||
request: blobs_pb.DeleteRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
@ -3,116 +3,115 @@
|
||||
// Original file comments:
|
||||
// Copyright (c) 2020 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
//
|
||||
'use strict';
|
||||
var grpc = require('@grpc/grpc-js');
|
||||
var blobs_pb = require('./blobs_pb.js');
|
||||
"use strict";
|
||||
var grpc = require("@grpc/grpc-js");
|
||||
var blobs_pb = require("./blobs_pb.js");
|
||||
|
||||
function serialize_contentservice_DeleteRequest(arg) {
|
||||
if (!(arg instanceof blobs_pb.DeleteRequest)) {
|
||||
throw new Error('Expected argument of type contentservice.DeleteRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof blobs_pb.DeleteRequest)) {
|
||||
throw new Error("Expected argument of type contentservice.DeleteRequest");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_DeleteRequest(buffer_arg) {
|
||||
return blobs_pb.DeleteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return blobs_pb.DeleteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_contentservice_DeleteResponse(arg) {
|
||||
if (!(arg instanceof blobs_pb.DeleteResponse)) {
|
||||
throw new Error('Expected argument of type contentservice.DeleteResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof blobs_pb.DeleteResponse)) {
|
||||
throw new Error("Expected argument of type contentservice.DeleteResponse");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_DeleteResponse(buffer_arg) {
|
||||
return blobs_pb.DeleteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return blobs_pb.DeleteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_contentservice_DownloadUrlRequest(arg) {
|
||||
if (!(arg instanceof blobs_pb.DownloadUrlRequest)) {
|
||||
throw new Error('Expected argument of type contentservice.DownloadUrlRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof blobs_pb.DownloadUrlRequest)) {
|
||||
throw new Error("Expected argument of type contentservice.DownloadUrlRequest");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_DownloadUrlRequest(buffer_arg) {
|
||||
return blobs_pb.DownloadUrlRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return blobs_pb.DownloadUrlRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_contentservice_DownloadUrlResponse(arg) {
|
||||
if (!(arg instanceof blobs_pb.DownloadUrlResponse)) {
|
||||
throw new Error('Expected argument of type contentservice.DownloadUrlResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof blobs_pb.DownloadUrlResponse)) {
|
||||
throw new Error("Expected argument of type contentservice.DownloadUrlResponse");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_DownloadUrlResponse(buffer_arg) {
|
||||
return blobs_pb.DownloadUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return blobs_pb.DownloadUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_contentservice_UploadUrlRequest(arg) {
|
||||
if (!(arg instanceof blobs_pb.UploadUrlRequest)) {
|
||||
throw new Error('Expected argument of type contentservice.UploadUrlRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof blobs_pb.UploadUrlRequest)) {
|
||||
throw new Error("Expected argument of type contentservice.UploadUrlRequest");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_UploadUrlRequest(buffer_arg) {
|
||||
return blobs_pb.UploadUrlRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return blobs_pb.UploadUrlRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_contentservice_UploadUrlResponse(arg) {
|
||||
if (!(arg instanceof blobs_pb.UploadUrlResponse)) {
|
||||
throw new Error('Expected argument of type contentservice.UploadUrlResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof blobs_pb.UploadUrlResponse)) {
|
||||
throw new Error("Expected argument of type contentservice.UploadUrlResponse");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_UploadUrlResponse(buffer_arg) {
|
||||
return blobs_pb.UploadUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return blobs_pb.UploadUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
|
||||
var BlobServiceService = exports.BlobServiceService = {
|
||||
// UploadUrl provides a URL to which clients can upload the content via HTTP PUT.
|
||||
uploadUrl: {
|
||||
path: '/contentservice.BlobService/UploadUrl',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: blobs_pb.UploadUrlRequest,
|
||||
responseType: blobs_pb.UploadUrlResponse,
|
||||
requestSerialize: serialize_contentservice_UploadUrlRequest,
|
||||
requestDeserialize: deserialize_contentservice_UploadUrlRequest,
|
||||
responseSerialize: serialize_contentservice_UploadUrlResponse,
|
||||
responseDeserialize: deserialize_contentservice_UploadUrlResponse,
|
||||
},
|
||||
// DownloadUrl provides a URL from which clients can download the content via HTTP GET.
|
||||
downloadUrl: {
|
||||
path: '/contentservice.BlobService/DownloadUrl',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: blobs_pb.DownloadUrlRequest,
|
||||
responseType: blobs_pb.DownloadUrlResponse,
|
||||
requestSerialize: serialize_contentservice_DownloadUrlRequest,
|
||||
requestDeserialize: deserialize_contentservice_DownloadUrlRequest,
|
||||
responseSerialize: serialize_contentservice_DownloadUrlResponse,
|
||||
responseDeserialize: deserialize_contentservice_DownloadUrlResponse,
|
||||
},
|
||||
// Delete deletes the uploaded content.
|
||||
delete: {
|
||||
path: '/contentservice.BlobService/Delete',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: blobs_pb.DeleteRequest,
|
||||
responseType: blobs_pb.DeleteResponse,
|
||||
requestSerialize: serialize_contentservice_DeleteRequest,
|
||||
requestDeserialize: deserialize_contentservice_DeleteRequest,
|
||||
responseSerialize: serialize_contentservice_DeleteResponse,
|
||||
responseDeserialize: deserialize_contentservice_DeleteResponse,
|
||||
},
|
||||
};
|
||||
var BlobServiceService = (exports.BlobServiceService = {
|
||||
// UploadUrl provides a URL to which clients can upload the content via HTTP PUT.
|
||||
uploadUrl: {
|
||||
path: "/contentservice.BlobService/UploadUrl",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: blobs_pb.UploadUrlRequest,
|
||||
responseType: blobs_pb.UploadUrlResponse,
|
||||
requestSerialize: serialize_contentservice_UploadUrlRequest,
|
||||
requestDeserialize: deserialize_contentservice_UploadUrlRequest,
|
||||
responseSerialize: serialize_contentservice_UploadUrlResponse,
|
||||
responseDeserialize: deserialize_contentservice_UploadUrlResponse,
|
||||
},
|
||||
// DownloadUrl provides a URL from which clients can download the content via HTTP GET.
|
||||
downloadUrl: {
|
||||
path: "/contentservice.BlobService/DownloadUrl",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: blobs_pb.DownloadUrlRequest,
|
||||
responseType: blobs_pb.DownloadUrlResponse,
|
||||
requestSerialize: serialize_contentservice_DownloadUrlRequest,
|
||||
requestDeserialize: deserialize_contentservice_DownloadUrlRequest,
|
||||
responseSerialize: serialize_contentservice_DownloadUrlResponse,
|
||||
responseDeserialize: deserialize_contentservice_DownloadUrlResponse,
|
||||
},
|
||||
// Delete deletes the uploaded content.
|
||||
delete: {
|
||||
path: "/contentservice.BlobService/Delete",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: blobs_pb.DeleteRequest,
|
||||
responseType: blobs_pb.DeleteResponse,
|
||||
requestSerialize: serialize_contentservice_DeleteRequest,
|
||||
requestDeserialize: deserialize_contentservice_DeleteRequest,
|
||||
responseSerialize: serialize_contentservice_DeleteResponse,
|
||||
responseDeserialize: deserialize_contentservice_DeleteResponse,
|
||||
},
|
||||
});
|
||||
|
||||
exports.BlobServiceClient = grpc.makeGenericClientConstructor(BlobServiceService);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2022 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
// package: contentservice
|
||||
@ -23,8 +23,8 @@ export class UploadUrlRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UploadUrlRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UploadUrlRequest): UploadUrlRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: UploadUrlRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UploadUrlRequest;
|
||||
static deserializeBinaryFromReader(message: UploadUrlRequest, reader: jspb.BinaryReader): UploadUrlRequest;
|
||||
@ -32,10 +32,10 @@ export class UploadUrlRequest extends jspb.Message {
|
||||
|
||||
export namespace UploadUrlRequest {
|
||||
export type AsObject = {
|
||||
ownerId: string,
|
||||
name: string,
|
||||
contentType: string,
|
||||
}
|
||||
ownerId: string;
|
||||
name: string;
|
||||
contentType: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class UploadUrlResponse extends jspb.Message {
|
||||
@ -45,8 +45,8 @@ export class UploadUrlResponse extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UploadUrlResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: UploadUrlResponse): UploadUrlResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: UploadUrlResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UploadUrlResponse;
|
||||
static deserializeBinaryFromReader(message: UploadUrlResponse, reader: jspb.BinaryReader): UploadUrlResponse;
|
||||
@ -54,8 +54,8 @@ export class UploadUrlResponse extends jspb.Message {
|
||||
|
||||
export namespace UploadUrlResponse {
|
||||
export type AsObject = {
|
||||
url: string,
|
||||
}
|
||||
url: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class DownloadUrlRequest extends jspb.Message {
|
||||
@ -69,8 +69,8 @@ export class DownloadUrlRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DownloadUrlRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DownloadUrlRequest): DownloadUrlRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: DownloadUrlRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DownloadUrlRequest;
|
||||
static deserializeBinaryFromReader(message: DownloadUrlRequest, reader: jspb.BinaryReader): DownloadUrlRequest;
|
||||
@ -78,10 +78,10 @@ export class DownloadUrlRequest extends jspb.Message {
|
||||
|
||||
export namespace DownloadUrlRequest {
|
||||
export type AsObject = {
|
||||
ownerId: string,
|
||||
name: string,
|
||||
contentType: string,
|
||||
}
|
||||
ownerId: string;
|
||||
name: string;
|
||||
contentType: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class DownloadUrlResponse extends jspb.Message {
|
||||
@ -91,8 +91,8 @@ export class DownloadUrlResponse extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DownloadUrlResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DownloadUrlResponse): DownloadUrlResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: DownloadUrlResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DownloadUrlResponse;
|
||||
static deserializeBinaryFromReader(message: DownloadUrlResponse, reader: jspb.BinaryReader): DownloadUrlResponse;
|
||||
@ -100,8 +100,8 @@ export class DownloadUrlResponse extends jspb.Message {
|
||||
|
||||
export namespace DownloadUrlResponse {
|
||||
export type AsObject = {
|
||||
url: string,
|
||||
}
|
||||
url: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class DeleteRequest extends jspb.Message {
|
||||
@ -123,8 +123,8 @@ export class DeleteRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteRequest): DeleteRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: DeleteRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteRequest, reader: jspb.BinaryReader): DeleteRequest;
|
||||
@ -132,32 +132,29 @@ export class DeleteRequest extends jspb.Message {
|
||||
|
||||
export namespace DeleteRequest {
|
||||
export type AsObject = {
|
||||
ownerId: string,
|
||||
exact: string,
|
||||
prefix: string,
|
||||
}
|
||||
ownerId: string;
|
||||
exact: string;
|
||||
prefix: string;
|
||||
};
|
||||
|
||||
export enum NameCase {
|
||||
NAME_NOT_SET = 0,
|
||||
EXACT = 2,
|
||||
PREFIX = 3,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class DeleteResponse extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteResponse): DeleteResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: DeleteResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteResponse;
|
||||
static deserializeBinaryFromReader(message: DeleteResponse, reader: jspb.BinaryReader): DeleteResponse;
|
||||
}
|
||||
|
||||
export namespace DeleteResponse {
|
||||
export type AsObject = {
|
||||
}
|
||||
export type AsObject = {};
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2022 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
// package: contentservice
|
||||
@ -17,7 +17,8 @@ interface IContentServiceService extends grpc.ServiceDefinition<grpc.UntypedServ
|
||||
deleteUserContent: IContentServiceService_IDeleteUserContent;
|
||||
}
|
||||
|
||||
interface IContentServiceService_IDeleteUserContent extends grpc.MethodDefinition<content_pb.DeleteUserContentRequest, content_pb.DeleteUserContentResponse> {
|
||||
interface IContentServiceService_IDeleteUserContent
|
||||
extends grpc.MethodDefinition<content_pb.DeleteUserContentRequest, content_pb.DeleteUserContentResponse> {
|
||||
path: "/contentservice.ContentService/DeleteUserContent";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
@ -34,14 +35,38 @@ export interface IContentServiceServer extends grpc.UntypedServiceImplementation
|
||||
}
|
||||
|
||||
export interface IContentServiceClient {
|
||||
deleteUserContent(request: content_pb.DeleteUserContentRequest, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall;
|
||||
deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall;
|
||||
deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall;
|
||||
deleteUserContent(
|
||||
request: content_pb.DeleteUserContentRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
deleteUserContent(
|
||||
request: content_pb.DeleteUserContentRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
deleteUserContent(
|
||||
request: content_pb.DeleteUserContentRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
export class ContentServiceClient extends grpc.Client implements IContentServiceClient {
|
||||
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
||||
public deleteUserContent(request: content_pb.DeleteUserContentRequest, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall;
|
||||
public deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall;
|
||||
public deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall;
|
||||
public deleteUserContent(
|
||||
request: content_pb.DeleteUserContentRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public deleteUserContent(
|
||||
request: content_pb.DeleteUserContentRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public deleteUserContent(
|
||||
request: content_pb.DeleteUserContentRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
@ -3,48 +3,47 @@
|
||||
// Original file comments:
|
||||
// Copyright (c) 2020 TypeFox GmbH. All rights reserved.
|
||||
// Licensed under the GNU Affero General Public License (AGPL).
|
||||
// See License-AGPL.txt in the project root for license information.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
//
|
||||
'use strict';
|
||||
var grpc = require('@grpc/grpc-js');
|
||||
var content_pb = require('./content_pb.js');
|
||||
"use strict";
|
||||
var grpc = require("@grpc/grpc-js");
|
||||
var content_pb = require("./content_pb.js");
|
||||
|
||||
function serialize_contentservice_DeleteUserContentRequest(arg) {
|
||||
if (!(arg instanceof content_pb.DeleteUserContentRequest)) {
|
||||
throw new Error('Expected argument of type contentservice.DeleteUserContentRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof content_pb.DeleteUserContentRequest)) {
|
||||
throw new Error("Expected argument of type contentservice.DeleteUserContentRequest");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_DeleteUserContentRequest(buffer_arg) {
|
||||
return content_pb.DeleteUserContentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return content_pb.DeleteUserContentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_contentservice_DeleteUserContentResponse(arg) {
|
||||
if (!(arg instanceof content_pb.DeleteUserContentResponse)) {
|
||||
throw new Error('Expected argument of type contentservice.DeleteUserContentResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof content_pb.DeleteUserContentResponse)) {
|
||||
throw new Error("Expected argument of type contentservice.DeleteUserContentResponse");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_DeleteUserContentResponse(buffer_arg) {
|
||||
return content_pb.DeleteUserContentResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return content_pb.DeleteUserContentResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
|
||||
var ContentServiceService = exports.ContentServiceService = {
|
||||
// DeleteUserContent deletes all content associated with a user.
|
||||
deleteUserContent: {
|
||||
path: '/contentservice.ContentService/DeleteUserContent',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: content_pb.DeleteUserContentRequest,
|
||||
responseType: content_pb.DeleteUserContentResponse,
|
||||
requestSerialize: serialize_contentservice_DeleteUserContentRequest,
|
||||
requestDeserialize: deserialize_contentservice_DeleteUserContentRequest,
|
||||
responseSerialize: serialize_contentservice_DeleteUserContentResponse,
|
||||
responseDeserialize: deserialize_contentservice_DeleteUserContentResponse,
|
||||
},
|
||||
};
|
||||
var ContentServiceService = (exports.ContentServiceService = {
|
||||
// DeleteUserContent deletes all content associated with a user.
|
||||
deleteUserContent: {
|
||||
path: "/contentservice.ContentService/DeleteUserContent",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: content_pb.DeleteUserContentRequest,
|
||||
responseType: content_pb.DeleteUserContentResponse,
|
||||
requestSerialize: serialize_contentservice_DeleteUserContentRequest,
|
||||
requestDeserialize: deserialize_contentservice_DeleteUserContentRequest,
|
||||
responseSerialize: serialize_contentservice_DeleteUserContentResponse,
|
||||
responseDeserialize: deserialize_contentservice_DeleteUserContentResponse,
|
||||
},
|
||||
});
|
||||
|
||||
exports.ContentServiceClient = grpc.makeGenericClientConstructor(ContentServiceService);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2022 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
// package: contentservice
|
||||
@ -19,32 +19,36 @@ export class DeleteUserContentRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteUserContentRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteUserContentRequest): DeleteUserContentRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: DeleteUserContentRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteUserContentRequest;
|
||||
static deserializeBinaryFromReader(message: DeleteUserContentRequest, reader: jspb.BinaryReader): DeleteUserContentRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: DeleteUserContentRequest,
|
||||
reader: jspb.BinaryReader,
|
||||
): DeleteUserContentRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteUserContentRequest {
|
||||
export type AsObject = {
|
||||
ownerId: string,
|
||||
}
|
||||
ownerId: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class DeleteUserContentResponse extends jspb.Message {
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteUserContentResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteUserContentResponse): DeleteUserContentResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: DeleteUserContentResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteUserContentResponse;
|
||||
static deserializeBinaryFromReader(message: DeleteUserContentResponse, reader: jspb.BinaryReader): DeleteUserContentResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: DeleteUserContentResponse,
|
||||
reader: jspb.BinaryReader,
|
||||
): DeleteUserContentResponse;
|
||||
}
|
||||
|
||||
export namespace DeleteUserContentResponse {
|
||||
export type AsObject = {
|
||||
}
|
||||
export type AsObject = {};
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2022 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
// source: content.proto
|
||||
@ -17,12 +17,14 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var jspb = require("google-protobuf");
|
||||
var goog = jspb;
|
||||
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
||||
var global = function () {
|
||||
return this || window || global || self || Function("return this")();
|
||||
}.call(null);
|
||||
|
||||
goog.exportSymbol('proto.contentservice.DeleteUserContentRequest', null, global);
|
||||
goog.exportSymbol('proto.contentservice.DeleteUserContentResponse', null, global);
|
||||
goog.exportSymbol("proto.contentservice.DeleteUserContentRequest", null, global);
|
||||
goog.exportSymbol("proto.contentservice.DeleteUserContentResponse", null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -33,16 +35,16 @@ goog.exportSymbol('proto.contentservice.DeleteUserContentResponse', null, global
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
proto.contentservice.DeleteUserContentRequest = function (opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.contentservice.DeleteUserContentRequest, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.displayName = 'proto.contentservice.DeleteUserContentRequest';
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.displayName = "proto.contentservice.DeleteUserContentRequest";
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
@ -54,72 +56,68 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
proto.contentservice.DeleteUserContentResponse = function (opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.contentservice.DeleteUserContentResponse, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.displayName = 'proto.contentservice.DeleteUserContentResponse';
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.displayName = "proto.contentservice.DeleteUserContentResponse";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.contentservice.DeleteUserContentRequest.toObject(opt_includeInstance, this);
|
||||
};
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.prototype.toObject = function (opt_includeInstance) {
|
||||
return proto.contentservice.DeleteUserContentRequest.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.contentservice.DeleteUserContentRequest} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.toObject = function (includeInstance, msg) {
|
||||
var f,
|
||||
obj = {
|
||||
ownerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
};
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.contentservice.DeleteUserContentRequest} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
ownerId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.contentservice.DeleteUserContentRequest}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.contentservice.DeleteUserContentRequest;
|
||||
return proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader(msg, reader);
|
||||
proto.contentservice.DeleteUserContentRequest.deserializeBinary = function (bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.contentservice.DeleteUserContentRequest();
|
||||
return proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
@ -127,37 +125,35 @@ proto.contentservice.DeleteUserContentRequest.deserializeBinary = function(bytes
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.contentservice.DeleteUserContentRequest}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader = function (msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setOwnerId(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setOwnerId(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = function () {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
@ -165,91 +161,78 @@ proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = functi
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getOwnerId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter = function (message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getOwnerId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(1, f);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string owner_id = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.prototype.getOwnerId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
proto.contentservice.DeleteUserContentRequest.prototype.getOwnerId = function () {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.contentservice.DeleteUserContentRequest} returns this
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentRequest.prototype.setOwnerId = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
proto.contentservice.DeleteUserContentRequest.prototype.setOwnerId = function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.contentservice.DeleteUserContentResponse.toObject(opt_includeInstance, this);
|
||||
};
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.prototype.toObject = function (opt_includeInstance) {
|
||||
return proto.contentservice.DeleteUserContentResponse.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.contentservice.DeleteUserContentResponse} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.toObject = function (includeInstance, msg) {
|
||||
var f,
|
||||
obj = {};
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.contentservice.DeleteUserContentResponse} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.contentservice.DeleteUserContentResponse}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.contentservice.DeleteUserContentResponse;
|
||||
return proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader(msg, reader);
|
||||
proto.contentservice.DeleteUserContentResponse.deserializeBinary = function (bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.contentservice.DeleteUserContentResponse();
|
||||
return proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
@ -257,33 +240,31 @@ proto.contentservice.DeleteUserContentResponse.deserializeBinary = function(byte
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.contentservice.DeleteUserContentResponse}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader = function (msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = function () {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
@ -291,9 +272,8 @@ proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = funct
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter = function (message, writer) {
|
||||
var f = undefined;
|
||||
};
|
||||
|
||||
|
||||
goog.object.extend(exports, proto.contentservice);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2022 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
// package: contentservice
|
||||
@ -18,7 +18,8 @@ interface IHeadlessLogServiceService extends grpc.ServiceDefinition<grpc.Untyped
|
||||
listLogs: IHeadlessLogServiceService_IListLogs;
|
||||
}
|
||||
|
||||
interface IHeadlessLogServiceService_ILogDownloadURL extends grpc.MethodDefinition<headless_log_pb.LogDownloadURLRequest, headless_log_pb.LogDownloadURLResponse> {
|
||||
interface IHeadlessLogServiceService_ILogDownloadURL
|
||||
extends grpc.MethodDefinition<headless_log_pb.LogDownloadURLRequest, headless_log_pb.LogDownloadURLResponse> {
|
||||
path: "/contentservice.HeadlessLogService/LogDownloadURL";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
@ -27,7 +28,8 @@ interface IHeadlessLogServiceService_ILogDownloadURL extends grpc.MethodDefiniti
|
||||
responseSerialize: grpc.serialize<headless_log_pb.LogDownloadURLResponse>;
|
||||
responseDeserialize: grpc.deserialize<headless_log_pb.LogDownloadURLResponse>;
|
||||
}
|
||||
interface IHeadlessLogServiceService_IListLogs extends grpc.MethodDefinition<headless_log_pb.ListLogsRequest, headless_log_pb.ListLogsResponse> {
|
||||
interface IHeadlessLogServiceService_IListLogs
|
||||
extends grpc.MethodDefinition<headless_log_pb.ListLogsRequest, headless_log_pb.ListLogsResponse> {
|
||||
path: "/contentservice.HeadlessLogService/ListLogs";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
@ -45,20 +47,68 @@ export interface IHeadlessLogServiceServer extends grpc.UntypedServiceImplementa
|
||||
}
|
||||
|
||||
export interface IHeadlessLogServiceClient {
|
||||
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
listLogs(request: headless_log_pb.ListLogsRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
|
||||
listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
|
||||
listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
|
||||
logDownloadURL(
|
||||
request: headless_log_pb.LogDownloadURLRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
logDownloadURL(
|
||||
request: headless_log_pb.LogDownloadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
logDownloadURL(
|
||||
request: headless_log_pb.LogDownloadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
listLogs(
|
||||
request: headless_log_pb.ListLogsRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
listLogs(
|
||||
request: headless_log_pb.ListLogsRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
listLogs(
|
||||
request: headless_log_pb.ListLogsRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
export class HeadlessLogServiceClient extends grpc.Client implements IHeadlessLogServiceClient {
|
||||
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
||||
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
public listLogs(request: headless_log_pb.ListLogsRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
|
||||
public listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
|
||||
public listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall;
|
||||
public logDownloadURL(
|
||||
request: headless_log_pb.LogDownloadURLRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public logDownloadURL(
|
||||
request: headless_log_pb.LogDownloadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public logDownloadURL(
|
||||
request: headless_log_pb.LogDownloadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public listLogs(
|
||||
request: headless_log_pb.ListLogsRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public listLogs(
|
||||
request: headless_log_pb.ListLogsRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public listLogs(
|
||||
request: headless_log_pb.ListLogsRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
@ -3,82 +3,81 @@
|
||||
// Original file comments:
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
//
|
||||
'use strict';
|
||||
var grpc = require('@grpc/grpc-js');
|
||||
var headless$log_pb = require('./headless-log_pb.js');
|
||||
"use strict";
|
||||
var grpc = require("@grpc/grpc-js");
|
||||
var headless$log_pb = require("./headless-log_pb.js");
|
||||
|
||||
function serialize_contentservice_ListLogsRequest(arg) {
|
||||
if (!(arg instanceof headless$log_pb.ListLogsRequest)) {
|
||||
throw new Error('Expected argument of type contentservice.ListLogsRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof headless$log_pb.ListLogsRequest)) {
|
||||
throw new Error("Expected argument of type contentservice.ListLogsRequest");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_ListLogsRequest(buffer_arg) {
|
||||
return headless$log_pb.ListLogsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return headless$log_pb.ListLogsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_contentservice_ListLogsResponse(arg) {
|
||||
if (!(arg instanceof headless$log_pb.ListLogsResponse)) {
|
||||
throw new Error('Expected argument of type contentservice.ListLogsResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof headless$log_pb.ListLogsResponse)) {
|
||||
throw new Error("Expected argument of type contentservice.ListLogsResponse");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_ListLogsResponse(buffer_arg) {
|
||||
return headless$log_pb.ListLogsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return headless$log_pb.ListLogsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_contentservice_LogDownloadURLRequest(arg) {
|
||||
if (!(arg instanceof headless$log_pb.LogDownloadURLRequest)) {
|
||||
throw new Error('Expected argument of type contentservice.LogDownloadURLRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof headless$log_pb.LogDownloadURLRequest)) {
|
||||
throw new Error("Expected argument of type contentservice.LogDownloadURLRequest");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_LogDownloadURLRequest(buffer_arg) {
|
||||
return headless$log_pb.LogDownloadURLRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return headless$log_pb.LogDownloadURLRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_contentservice_LogDownloadURLResponse(arg) {
|
||||
if (!(arg instanceof headless$log_pb.LogDownloadURLResponse)) {
|
||||
throw new Error('Expected argument of type contentservice.LogDownloadURLResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof headless$log_pb.LogDownloadURLResponse)) {
|
||||
throw new Error("Expected argument of type contentservice.LogDownloadURLResponse");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_contentservice_LogDownloadURLResponse(buffer_arg) {
|
||||
return headless$log_pb.LogDownloadURLResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return headless$log_pb.LogDownloadURLResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
|
||||
var HeadlessLogServiceService = exports.HeadlessLogServiceService = {
|
||||
// LogDownloadURL provides a URL from where the content of a workspace can be downloaded from
|
||||
logDownloadURL: {
|
||||
path: '/contentservice.HeadlessLogService/LogDownloadURL',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: headless$log_pb.LogDownloadURLRequest,
|
||||
responseType: headless$log_pb.LogDownloadURLResponse,
|
||||
requestSerialize: serialize_contentservice_LogDownloadURLRequest,
|
||||
requestDeserialize: deserialize_contentservice_LogDownloadURLRequest,
|
||||
responseSerialize: serialize_contentservice_LogDownloadURLResponse,
|
||||
responseDeserialize: deserialize_contentservice_LogDownloadURLResponse,
|
||||
},
|
||||
// ListLogs returns a list of taskIds for the specified workspace instance
|
||||
listLogs: {
|
||||
path: '/contentservice.HeadlessLogService/ListLogs',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: headless$log_pb.ListLogsRequest,
|
||||
responseType: headless$log_pb.ListLogsResponse,
|
||||
requestSerialize: serialize_contentservice_ListLogsRequest,
|
||||
requestDeserialize: deserialize_contentservice_ListLogsRequest,
|
||||
responseSerialize: serialize_contentservice_ListLogsResponse,
|
||||
responseDeserialize: deserialize_contentservice_ListLogsResponse,
|
||||
},
|
||||
};
|
||||
var HeadlessLogServiceService = (exports.HeadlessLogServiceService = {
|
||||
// LogDownloadURL provides a URL from where the content of a workspace can be downloaded from
|
||||
logDownloadURL: {
|
||||
path: "/contentservice.HeadlessLogService/LogDownloadURL",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: headless$log_pb.LogDownloadURLRequest,
|
||||
responseType: headless$log_pb.LogDownloadURLResponse,
|
||||
requestSerialize: serialize_contentservice_LogDownloadURLRequest,
|
||||
requestDeserialize: deserialize_contentservice_LogDownloadURLRequest,
|
||||
responseSerialize: serialize_contentservice_LogDownloadURLResponse,
|
||||
responseDeserialize: deserialize_contentservice_LogDownloadURLResponse,
|
||||
},
|
||||
// ListLogs returns a list of taskIds for the specified workspace instance
|
||||
listLogs: {
|
||||
path: "/contentservice.HeadlessLogService/ListLogs",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: headless$log_pb.ListLogsRequest,
|
||||
responseType: headless$log_pb.ListLogsResponse,
|
||||
requestSerialize: serialize_contentservice_ListLogsRequest,
|
||||
requestDeserialize: deserialize_contentservice_ListLogsRequest,
|
||||
responseSerialize: serialize_contentservice_ListLogsResponse,
|
||||
responseDeserialize: deserialize_contentservice_ListLogsResponse,
|
||||
},
|
||||
});
|
||||
|
||||
exports.HeadlessLogServiceClient = grpc.makeGenericClientConstructor(HeadlessLogServiceService);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2022 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
// package: contentservice
|
||||
@ -25,20 +25,23 @@ export class LogDownloadURLRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LogDownloadURLRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LogDownloadURLRequest): LogDownloadURLRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: LogDownloadURLRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LogDownloadURLRequest;
|
||||
static deserializeBinaryFromReader(message: LogDownloadURLRequest, reader: jspb.BinaryReader): LogDownloadURLRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: LogDownloadURLRequest,
|
||||
reader: jspb.BinaryReader,
|
||||
): LogDownloadURLRequest;
|
||||
}
|
||||
|
||||
export namespace LogDownloadURLRequest {
|
||||
export type AsObject = {
|
||||
ownerId: string,
|
||||
workspaceId: string,
|
||||
instanceId: string,
|
||||
taskId: string,
|
||||
}
|
||||
ownerId: string;
|
||||
workspaceId: string;
|
||||
instanceId: string;
|
||||
taskId: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class LogDownloadURLResponse extends jspb.Message {
|
||||
@ -48,17 +51,20 @@ export class LogDownloadURLResponse extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LogDownloadURLResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LogDownloadURLResponse): LogDownloadURLResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: LogDownloadURLResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LogDownloadURLResponse;
|
||||
static deserializeBinaryFromReader(message: LogDownloadURLResponse, reader: jspb.BinaryReader): LogDownloadURLResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: LogDownloadURLResponse,
|
||||
reader: jspb.BinaryReader,
|
||||
): LogDownloadURLResponse;
|
||||
}
|
||||
|
||||
export namespace LogDownloadURLResponse {
|
||||
export type AsObject = {
|
||||
url: string,
|
||||
}
|
||||
url: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class ListLogsRequest extends jspb.Message {
|
||||
@ -72,8 +78,8 @@ export class ListLogsRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListLogsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListLogsRequest): ListLogsRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: ListLogsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListLogsRequest;
|
||||
static deserializeBinaryFromReader(message: ListLogsRequest, reader: jspb.BinaryReader): ListLogsRequest;
|
||||
@ -81,10 +87,10 @@ export class ListLogsRequest extends jspb.Message {
|
||||
|
||||
export namespace ListLogsRequest {
|
||||
export type AsObject = {
|
||||
ownerId: string,
|
||||
workspaceId: string,
|
||||
instanceId: string,
|
||||
}
|
||||
ownerId: string;
|
||||
workspaceId: string;
|
||||
instanceId: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class ListLogsResponse extends jspb.Message {
|
||||
@ -96,8 +102,8 @@ export class ListLogsResponse extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListLogsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ListLogsResponse): ListLogsResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: ListLogsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListLogsResponse;
|
||||
static deserializeBinaryFromReader(message: ListLogsResponse, reader: jspb.BinaryReader): ListLogsResponse;
|
||||
@ -105,6 +111,6 @@ export class ListLogsResponse extends jspb.Message {
|
||||
|
||||
export namespace ListLogsResponse {
|
||||
export type AsObject = {
|
||||
taskIdList: Array<string>,
|
||||
}
|
||||
taskIdList: Array<string>;
|
||||
};
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2022 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
// package: ideplugin
|
||||
@ -19,7 +19,8 @@ interface IIDEPluginServiceService extends grpc.ServiceDefinition<grpc.UntypedSe
|
||||
pluginHash: IIDEPluginServiceService_IPluginHash;
|
||||
}
|
||||
|
||||
interface IIDEPluginServiceService_IUploadURL extends grpc.MethodDefinition<ideplugin_pb.PluginUploadURLRequest, ideplugin_pb.PluginUploadURLResponse> {
|
||||
interface IIDEPluginServiceService_IUploadURL
|
||||
extends grpc.MethodDefinition<ideplugin_pb.PluginUploadURLRequest, ideplugin_pb.PluginUploadURLResponse> {
|
||||
path: "/ideplugin.IDEPluginService/UploadURL";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
@ -28,7 +29,8 @@ interface IIDEPluginServiceService_IUploadURL extends grpc.MethodDefinition<idep
|
||||
responseSerialize: grpc.serialize<ideplugin_pb.PluginUploadURLResponse>;
|
||||
responseDeserialize: grpc.deserialize<ideplugin_pb.PluginUploadURLResponse>;
|
||||
}
|
||||
interface IIDEPluginServiceService_IDownloadURL extends grpc.MethodDefinition<ideplugin_pb.PluginDownloadURLRequest, ideplugin_pb.PluginDownloadURLResponse> {
|
||||
interface IIDEPluginServiceService_IDownloadURL
|
||||
extends grpc.MethodDefinition<ideplugin_pb.PluginDownloadURLRequest, ideplugin_pb.PluginDownloadURLResponse> {
|
||||
path: "/ideplugin.IDEPluginService/DownloadURL";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
@ -37,7 +39,8 @@ interface IIDEPluginServiceService_IDownloadURL extends grpc.MethodDefinition<id
|
||||
responseSerialize: grpc.serialize<ideplugin_pb.PluginDownloadURLResponse>;
|
||||
responseDeserialize: grpc.deserialize<ideplugin_pb.PluginDownloadURLResponse>;
|
||||
}
|
||||
interface IIDEPluginServiceService_IPluginHash extends grpc.MethodDefinition<ideplugin_pb.PluginHashRequest, ideplugin_pb.PluginHashResponse> {
|
||||
interface IIDEPluginServiceService_IPluginHash
|
||||
extends grpc.MethodDefinition<ideplugin_pb.PluginHashRequest, ideplugin_pb.PluginHashResponse> {
|
||||
path: "/ideplugin.IDEPluginService/PluginHash";
|
||||
requestStream: false;
|
||||
responseStream: false;
|
||||
@ -56,26 +59,98 @@ export interface IIDEPluginServiceServer extends grpc.UntypedServiceImplementati
|
||||
}
|
||||
|
||||
export interface IIDEPluginServiceClient {
|
||||
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
pluginHash(request: ideplugin_pb.PluginHashRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall;
|
||||
pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall;
|
||||
pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall;
|
||||
uploadURL(
|
||||
request: ideplugin_pb.PluginUploadURLRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
uploadURL(
|
||||
request: ideplugin_pb.PluginUploadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
uploadURL(
|
||||
request: ideplugin_pb.PluginUploadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
downloadURL(
|
||||
request: ideplugin_pb.PluginDownloadURLRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
downloadURL(
|
||||
request: ideplugin_pb.PluginDownloadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
downloadURL(
|
||||
request: ideplugin_pb.PluginDownloadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
pluginHash(
|
||||
request: ideplugin_pb.PluginHashRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
pluginHash(
|
||||
request: ideplugin_pb.PluginHashRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
pluginHash(
|
||||
request: ideplugin_pb.PluginHashRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
export class IDEPluginServiceClient extends grpc.Client implements IIDEPluginServiceClient {
|
||||
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
||||
public uploadURL(request: ideplugin_pb.PluginUploadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
public uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
public uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
public downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
public downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
public downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall;
|
||||
public pluginHash(request: ideplugin_pb.PluginHashRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall;
|
||||
public pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall;
|
||||
public pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall;
|
||||
public uploadURL(
|
||||
request: ideplugin_pb.PluginUploadURLRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public uploadURL(
|
||||
request: ideplugin_pb.PluginUploadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public uploadURL(
|
||||
request: ideplugin_pb.PluginUploadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public downloadURL(
|
||||
request: ideplugin_pb.PluginDownloadURLRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public downloadURL(
|
||||
request: ideplugin_pb.PluginDownloadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public downloadURL(
|
||||
request: ideplugin_pb.PluginDownloadURLRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public pluginHash(
|
||||
request: ideplugin_pb.PluginHashRequest,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public pluginHash(
|
||||
request: ideplugin_pb.PluginHashRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
public pluginHash(
|
||||
request: ideplugin_pb.PluginHashRequest,
|
||||
metadata: grpc.Metadata,
|
||||
options: Partial<grpc.CallOptions>,
|
||||
callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void,
|
||||
): grpc.ClientUnaryCall;
|
||||
}
|
||||
|
||||
@ -3,116 +3,115 @@
|
||||
// Original file comments:
|
||||
// Copyright (c) 2021 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.
|
||||
// See License.AGPL.txt in the project root for license information.
|
||||
//
|
||||
'use strict';
|
||||
var grpc = require('@grpc/grpc-js');
|
||||
var ideplugin_pb = require('./ideplugin_pb.js');
|
||||
"use strict";
|
||||
var grpc = require("@grpc/grpc-js");
|
||||
var ideplugin_pb = require("./ideplugin_pb.js");
|
||||
|
||||
function serialize_ideplugin_PluginDownloadURLRequest(arg) {
|
||||
if (!(arg instanceof ideplugin_pb.PluginDownloadURLRequest)) {
|
||||
throw new Error('Expected argument of type ideplugin.PluginDownloadURLRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof ideplugin_pb.PluginDownloadURLRequest)) {
|
||||
throw new Error("Expected argument of type ideplugin.PluginDownloadURLRequest");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_ideplugin_PluginDownloadURLRequest(buffer_arg) {
|
||||
return ideplugin_pb.PluginDownloadURLRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return ideplugin_pb.PluginDownloadURLRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_ideplugin_PluginDownloadURLResponse(arg) {
|
||||
if (!(arg instanceof ideplugin_pb.PluginDownloadURLResponse)) {
|
||||
throw new Error('Expected argument of type ideplugin.PluginDownloadURLResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof ideplugin_pb.PluginDownloadURLResponse)) {
|
||||
throw new Error("Expected argument of type ideplugin.PluginDownloadURLResponse");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_ideplugin_PluginDownloadURLResponse(buffer_arg) {
|
||||
return ideplugin_pb.PluginDownloadURLResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return ideplugin_pb.PluginDownloadURLResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_ideplugin_PluginHashRequest(arg) {
|
||||
if (!(arg instanceof ideplugin_pb.PluginHashRequest)) {
|
||||
throw new Error('Expected argument of type ideplugin.PluginHashRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof ideplugin_pb.PluginHashRequest)) {
|
||||
throw new Error("Expected argument of type ideplugin.PluginHashRequest");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_ideplugin_PluginHashRequest(buffer_arg) {
|
||||
return ideplugin_pb.PluginHashRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return ideplugin_pb.PluginHashRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_ideplugin_PluginHashResponse(arg) {
|
||||
if (!(arg instanceof ideplugin_pb.PluginHashResponse)) {
|
||||
throw new Error('Expected argument of type ideplugin.PluginHashResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof ideplugin_pb.PluginHashResponse)) {
|
||||
throw new Error("Expected argument of type ideplugin.PluginHashResponse");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_ideplugin_PluginHashResponse(buffer_arg) {
|
||||
return ideplugin_pb.PluginHashResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return ideplugin_pb.PluginHashResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_ideplugin_PluginUploadURLRequest(arg) {
|
||||
if (!(arg instanceof ideplugin_pb.PluginUploadURLRequest)) {
|
||||
throw new Error('Expected argument of type ideplugin.PluginUploadURLRequest');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof ideplugin_pb.PluginUploadURLRequest)) {
|
||||
throw new Error("Expected argument of type ideplugin.PluginUploadURLRequest");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_ideplugin_PluginUploadURLRequest(buffer_arg) {
|
||||
return ideplugin_pb.PluginUploadURLRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return ideplugin_pb.PluginUploadURLRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_ideplugin_PluginUploadURLResponse(arg) {
|
||||
if (!(arg instanceof ideplugin_pb.PluginUploadURLResponse)) {
|
||||
throw new Error('Expected argument of type ideplugin.PluginUploadURLResponse');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
if (!(arg instanceof ideplugin_pb.PluginUploadURLResponse)) {
|
||||
throw new Error("Expected argument of type ideplugin.PluginUploadURLResponse");
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_ideplugin_PluginUploadURLResponse(buffer_arg) {
|
||||
return ideplugin_pb.PluginUploadURLResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return ideplugin_pb.PluginUploadURLResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
|
||||
var IDEPluginServiceService = exports.IDEPluginServiceService = {
|
||||
// UploadURL provides a URL to which clients can upload the content via HTTP PUT.
|
||||
uploadURL: {
|
||||
path: '/ideplugin.IDEPluginService/UploadURL',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: ideplugin_pb.PluginUploadURLRequest,
|
||||
responseType: ideplugin_pb.PluginUploadURLResponse,
|
||||
requestSerialize: serialize_ideplugin_PluginUploadURLRequest,
|
||||
requestDeserialize: deserialize_ideplugin_PluginUploadURLRequest,
|
||||
responseSerialize: serialize_ideplugin_PluginUploadURLResponse,
|
||||
responseDeserialize: deserialize_ideplugin_PluginUploadURLResponse,
|
||||
},
|
||||
// DownloadURL provides a URL from which clients can download the content via HTTP GET.
|
||||
downloadURL: {
|
||||
path: '/ideplugin.IDEPluginService/DownloadURL',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: ideplugin_pb.PluginDownloadURLRequest,
|
||||
responseType: ideplugin_pb.PluginDownloadURLResponse,
|
||||
requestSerialize: serialize_ideplugin_PluginDownloadURLRequest,
|
||||
requestDeserialize: deserialize_ideplugin_PluginDownloadURLRequest,
|
||||
responseSerialize: serialize_ideplugin_PluginDownloadURLResponse,
|
||||
responseDeserialize: deserialize_ideplugin_PluginDownloadURLResponse,
|
||||
},
|
||||
// PluginHash provides a hash of the plugin
|
||||
pluginHash: {
|
||||
path: '/ideplugin.IDEPluginService/PluginHash',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: ideplugin_pb.PluginHashRequest,
|
||||
responseType: ideplugin_pb.PluginHashResponse,
|
||||
requestSerialize: serialize_ideplugin_PluginHashRequest,
|
||||
requestDeserialize: deserialize_ideplugin_PluginHashRequest,
|
||||
responseSerialize: serialize_ideplugin_PluginHashResponse,
|
||||
responseDeserialize: deserialize_ideplugin_PluginHashResponse,
|
||||
},
|
||||
};
|
||||
var IDEPluginServiceService = (exports.IDEPluginServiceService = {
|
||||
// UploadURL provides a URL to which clients can upload the content via HTTP PUT.
|
||||
uploadURL: {
|
||||
path: "/ideplugin.IDEPluginService/UploadURL",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: ideplugin_pb.PluginUploadURLRequest,
|
||||
responseType: ideplugin_pb.PluginUploadURLResponse,
|
||||
requestSerialize: serialize_ideplugin_PluginUploadURLRequest,
|
||||
requestDeserialize: deserialize_ideplugin_PluginUploadURLRequest,
|
||||
responseSerialize: serialize_ideplugin_PluginUploadURLResponse,
|
||||
responseDeserialize: deserialize_ideplugin_PluginUploadURLResponse,
|
||||
},
|
||||
// DownloadURL provides a URL from which clients can download the content via HTTP GET.
|
||||
downloadURL: {
|
||||
path: "/ideplugin.IDEPluginService/DownloadURL",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: ideplugin_pb.PluginDownloadURLRequest,
|
||||
responseType: ideplugin_pb.PluginDownloadURLResponse,
|
||||
requestSerialize: serialize_ideplugin_PluginDownloadURLRequest,
|
||||
requestDeserialize: deserialize_ideplugin_PluginDownloadURLRequest,
|
||||
responseSerialize: serialize_ideplugin_PluginDownloadURLResponse,
|
||||
responseDeserialize: deserialize_ideplugin_PluginDownloadURLResponse,
|
||||
},
|
||||
// PluginHash provides a hash of the plugin
|
||||
pluginHash: {
|
||||
path: "/ideplugin.IDEPluginService/PluginHash",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: ideplugin_pb.PluginHashRequest,
|
||||
responseType: ideplugin_pb.PluginHashResponse,
|
||||
requestSerialize: serialize_ideplugin_PluginHashRequest,
|
||||
requestDeserialize: deserialize_ideplugin_PluginHashRequest,
|
||||
responseSerialize: serialize_ideplugin_PluginHashResponse,
|
||||
responseDeserialize: deserialize_ideplugin_PluginHashResponse,
|
||||
},
|
||||
});
|
||||
|
||||
exports.IDEPluginServiceClient = grpc.makeGenericClientConstructor(IDEPluginServiceService);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2022 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
// package: ideplugin
|
||||
@ -21,18 +21,21 @@ export class PluginUploadURLRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PluginUploadURLRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PluginUploadURLRequest): PluginUploadURLRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: PluginUploadURLRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PluginUploadURLRequest;
|
||||
static deserializeBinaryFromReader(message: PluginUploadURLRequest, reader: jspb.BinaryReader): PluginUploadURLRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: PluginUploadURLRequest,
|
||||
reader: jspb.BinaryReader,
|
||||
): PluginUploadURLRequest;
|
||||
}
|
||||
|
||||
export namespace PluginUploadURLRequest {
|
||||
export type AsObject = {
|
||||
bucket: string,
|
||||
name: string,
|
||||
}
|
||||
bucket: string;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class PluginUploadURLResponse extends jspb.Message {
|
||||
@ -42,17 +45,20 @@ export class PluginUploadURLResponse extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PluginUploadURLResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PluginUploadURLResponse): PluginUploadURLResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: PluginUploadURLResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PluginUploadURLResponse;
|
||||
static deserializeBinaryFromReader(message: PluginUploadURLResponse, reader: jspb.BinaryReader): PluginUploadURLResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: PluginUploadURLResponse,
|
||||
reader: jspb.BinaryReader,
|
||||
): PluginUploadURLResponse;
|
||||
}
|
||||
|
||||
export namespace PluginUploadURLResponse {
|
||||
export type AsObject = {
|
||||
url: string,
|
||||
}
|
||||
url: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class PluginDownloadURLRequest extends jspb.Message {
|
||||
@ -64,18 +70,21 @@ export class PluginDownloadURLRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PluginDownloadURLRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PluginDownloadURLRequest): PluginDownloadURLRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: PluginDownloadURLRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PluginDownloadURLRequest;
|
||||
static deserializeBinaryFromReader(message: PluginDownloadURLRequest, reader: jspb.BinaryReader): PluginDownloadURLRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: PluginDownloadURLRequest,
|
||||
reader: jspb.BinaryReader,
|
||||
): PluginDownloadURLRequest;
|
||||
}
|
||||
|
||||
export namespace PluginDownloadURLRequest {
|
||||
export type AsObject = {
|
||||
bucket: string,
|
||||
name: string,
|
||||
}
|
||||
bucket: string;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class PluginDownloadURLResponse extends jspb.Message {
|
||||
@ -85,17 +94,20 @@ export class PluginDownloadURLResponse extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PluginDownloadURLResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PluginDownloadURLResponse): PluginDownloadURLResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: PluginDownloadURLResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PluginDownloadURLResponse;
|
||||
static deserializeBinaryFromReader(message: PluginDownloadURLResponse, reader: jspb.BinaryReader): PluginDownloadURLResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: PluginDownloadURLResponse,
|
||||
reader: jspb.BinaryReader,
|
||||
): PluginDownloadURLResponse;
|
||||
}
|
||||
|
||||
export namespace PluginDownloadURLResponse {
|
||||
export type AsObject = {
|
||||
url: string,
|
||||
}
|
||||
url: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class PluginHashRequest extends jspb.Message {
|
||||
@ -107,8 +119,8 @@ export class PluginHashRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PluginHashRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PluginHashRequest): PluginHashRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: PluginHashRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PluginHashRequest;
|
||||
static deserializeBinaryFromReader(message: PluginHashRequest, reader: jspb.BinaryReader): PluginHashRequest;
|
||||
@ -116,9 +128,9 @@ export class PluginHashRequest extends jspb.Message {
|
||||
|
||||
export namespace PluginHashRequest {
|
||||
export type AsObject = {
|
||||
bucket: string,
|
||||
name: string,
|
||||
}
|
||||
bucket: string;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class PluginHashResponse extends jspb.Message {
|
||||
@ -128,8 +140,8 @@ export class PluginHashResponse extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PluginHashResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PluginHashResponse): PluginHashResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
|
||||
static serializeBinaryToWriter(message: PluginHashResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PluginHashResponse;
|
||||
static deserializeBinaryFromReader(message: PluginHashResponse, reader: jspb.BinaryReader): PluginHashResponse;
|
||||
@ -137,6 +149,6 @@ export class PluginHashResponse extends jspb.Message {
|
||||
|
||||
export namespace PluginHashResponse {
|
||||
export type AsObject = {
|
||||
hash: string,
|
||||
}
|
||||
hash: string;
|
||||
};
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2020 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.
|
||||
* See License.AGPL.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
export * from './initializer_pb';
|
||||
export * from "./initializer_pb";
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user