Switch license to AGPL

This commit is contained in:
Christian Weichel 2022-12-07 15:06:13 +00:00 committed by Robo Quat
parent 3c4b6676ee
commit 478a75e744
2397 changed files with 30616 additions and 30885 deletions

View File

@ -1,6 +1,6 @@
# Copyright (c) 2021 Gitpod GmbH. All rights reserved. # Copyright (c) 2021 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # 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: packages:
- name: all - name: all
@ -140,23 +140,10 @@ scripts:
deps: deps:
- dev/addlicense:app - dev/addlicense:app
script: | 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) # 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') 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 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
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
- name: dejson-log-output - name: dejson-log-output
script: |- script: |-
jq -Rr '. as $line | jq -Rr '. as $line |

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cmd

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cmd

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2022 Gitpod GmbH. All rights reserved. # Copyright (c) 2022 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # 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 set -Eeuo pipefail
source /workspace/gitpod/scripts/ws-deploy.sh deployment blobserve source /workspace/gitpod/scripts/ws-deploy.sh deployment blobserve

View File

@ -1,6 +1,6 @@
# Copyright (c) 2020 Gitpod GmbH. All rights reserved. # Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # 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 FROM alpine:3.16

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package main

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package blobserve

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package config

View File

@ -1,6 +1,6 @@
# Copyright (c) 2020 Gitpod GmbH. All rights reserved. # Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # 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: packages:
- name: lib - name: lib
@ -8,4 +8,4 @@ packages:
srcs: srcs:
- "**" - "**"
config: config:
packaging: library packaging: library

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package analytics

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package baseserver_test

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package baseserver

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cgroups

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cgroups

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cgroups_v1

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cgroups_v1

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cgroups_v2

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cgroups_v2

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cgroups_v2

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package cgroups_v2

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package experiments

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package experimentstest

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package experimentstest

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package experiments

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package experiments

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package experiments

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package experiments

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2020 Gitpod GmbH. All rights reserved. # Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL). # 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 # based on https://github.com/kubernetes/kubernetes/issues/79384

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package grpc

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package grpc

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package grpc

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package kubernetes

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package kubernetes

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package log

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package namegen

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package namegen_test

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 //go:build linux
// +build linux // +build linux

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package pprof

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package process

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package process

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package testing

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package tracing

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package tracing

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package util

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package util

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package util_test

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package util

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package watch

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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"; syntax = "proto3";

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 TypeFox GmbH. All rights reserved. // Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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"; syntax = "proto3";

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package config

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package api

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 TypeFox GmbH. All rights reserved. // Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package api

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package api_test

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:

View File

@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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 package api

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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"; syntax = "proto3";
@ -33,4 +33,4 @@ message ListLogsRequest {
} }
message ListLogsResponse { message ListLogsResponse {
repeated string task_id = 1; repeated string task_id = 1;
} }

View File

@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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"; syntax = "proto3";

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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 // package: contentservice
@ -19,7 +19,8 @@ interface IBlobServiceService extends grpc.ServiceDefinition<grpc.UntypedService
delete: IBlobServiceService_IDelete; 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"; path: "/contentservice.BlobService/UploadUrl";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -28,7 +29,8 @@ interface IBlobServiceService_IUploadUrl extends grpc.MethodDefinition<blobs_pb.
responseSerialize: grpc.serialize<blobs_pb.UploadUrlResponse>; responseSerialize: grpc.serialize<blobs_pb.UploadUrlResponse>;
responseDeserialize: grpc.deserialize<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"; path: "/contentservice.BlobService/DownloadUrl";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -56,26 +58,98 @@ export interface IBlobServiceServer extends grpc.UntypedServiceImplementation {
} }
export interface IBlobServiceClient { export interface IBlobServiceClient {
uploadUrl(request: blobs_pb.UploadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; uploadUrl(
uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; request: blobs_pb.UploadUrlRequest,
uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
downloadUrl(request: blobs_pb.DownloadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; uploadUrl(
downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; request: blobs_pb.UploadUrlRequest,
delete(request: blobs_pb.DeleteRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; metadata: grpc.Metadata,
delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; ): 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 { export class BlobServiceClient extends grpc.Client implements IBlobServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); 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(
public uploadUrl(request: blobs_pb.UploadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void): grpc.ClientUnaryCall; request: blobs_pb.UploadUrlRequest,
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; callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
public downloadUrl(request: blobs_pb.DownloadUrlRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
public downloadUrl(request: blobs_pb.DownloadUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DownloadUrlResponse) => void): grpc.ClientUnaryCall; public uploadUrl(
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; request: blobs_pb.UploadUrlRequest,
public delete(request: blobs_pb.DeleteRequest, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; metadata: grpc.Metadata,
public delete(request: blobs_pb.DeleteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: blobs_pb.DeleteResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: blobs_pb.UploadUrlResponse) => void,
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; ): 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;
} }

View File

@ -3,116 +3,115 @@
// Original file comments: // Original file comments:
// Copyright (c) 2020 Gitpod GmbH. All rights reserved. // Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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'; "use strict";
var grpc = require('@grpc/grpc-js'); var grpc = require("@grpc/grpc-js");
var blobs_pb = require('./blobs_pb.js'); var blobs_pb = require("./blobs_pb.js");
function serialize_contentservice_DeleteRequest(arg) { function serialize_contentservice_DeleteRequest(arg) {
if (!(arg instanceof blobs_pb.DeleteRequest)) { if (!(arg instanceof blobs_pb.DeleteRequest)) {
throw new Error('Expected argument of type contentservice.DeleteRequest'); throw new Error("Expected argument of type contentservice.DeleteRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_DeleteRequest(buffer_arg) { 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) { function serialize_contentservice_DeleteResponse(arg) {
if (!(arg instanceof blobs_pb.DeleteResponse)) { if (!(arg instanceof blobs_pb.DeleteResponse)) {
throw new Error('Expected argument of type contentservice.DeleteResponse'); throw new Error("Expected argument of type contentservice.DeleteResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_DeleteResponse(buffer_arg) { 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) { function serialize_contentservice_DownloadUrlRequest(arg) {
if (!(arg instanceof blobs_pb.DownloadUrlRequest)) { if (!(arg instanceof blobs_pb.DownloadUrlRequest)) {
throw new Error('Expected argument of type contentservice.DownloadUrlRequest'); throw new Error("Expected argument of type contentservice.DownloadUrlRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_DownloadUrlRequest(buffer_arg) { 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) { function serialize_contentservice_DownloadUrlResponse(arg) {
if (!(arg instanceof blobs_pb.DownloadUrlResponse)) { if (!(arg instanceof blobs_pb.DownloadUrlResponse)) {
throw new Error('Expected argument of type contentservice.DownloadUrlResponse'); throw new Error("Expected argument of type contentservice.DownloadUrlResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_DownloadUrlResponse(buffer_arg) { 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) { function serialize_contentservice_UploadUrlRequest(arg) {
if (!(arg instanceof blobs_pb.UploadUrlRequest)) { if (!(arg instanceof blobs_pb.UploadUrlRequest)) {
throw new Error('Expected argument of type contentservice.UploadUrlRequest'); throw new Error("Expected argument of type contentservice.UploadUrlRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_UploadUrlRequest(buffer_arg) { 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) { function serialize_contentservice_UploadUrlResponse(arg) {
if (!(arg instanceof blobs_pb.UploadUrlResponse)) { if (!(arg instanceof blobs_pb.UploadUrlResponse)) {
throw new Error('Expected argument of type contentservice.UploadUrlResponse'); throw new Error("Expected argument of type contentservice.UploadUrlResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_UploadUrlResponse(buffer_arg) { 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 = {
var BlobServiceService = exports.BlobServiceService = { // UploadUrl provides a URL to which clients can upload the content via HTTP PUT.
// UploadUrl provides a URL to which clients can upload the content via HTTP PUT. uploadUrl: {
uploadUrl: { path: "/contentservice.BlobService/UploadUrl",
path: '/contentservice.BlobService/UploadUrl', requestStream: false,
requestStream: false, responseStream: false,
responseStream: false, requestType: blobs_pb.UploadUrlRequest,
requestType: blobs_pb.UploadUrlRequest, responseType: blobs_pb.UploadUrlResponse,
responseType: blobs_pb.UploadUrlResponse, requestSerialize: serialize_contentservice_UploadUrlRequest,
requestSerialize: serialize_contentservice_UploadUrlRequest, requestDeserialize: deserialize_contentservice_UploadUrlRequest,
requestDeserialize: deserialize_contentservice_UploadUrlRequest, responseSerialize: serialize_contentservice_UploadUrlResponse,
responseSerialize: serialize_contentservice_UploadUrlResponse, responseDeserialize: deserialize_contentservice_UploadUrlResponse,
responseDeserialize: deserialize_contentservice_UploadUrlResponse, },
}, // DownloadUrl provides a URL from which clients can download the content via HTTP GET.
// DownloadUrl provides a URL from which clients can download the content via HTTP GET. downloadUrl: {
downloadUrl: { path: "/contentservice.BlobService/DownloadUrl",
path: '/contentservice.BlobService/DownloadUrl', requestStream: false,
requestStream: false, responseStream: false,
responseStream: false, requestType: blobs_pb.DownloadUrlRequest,
requestType: blobs_pb.DownloadUrlRequest, responseType: blobs_pb.DownloadUrlResponse,
responseType: blobs_pb.DownloadUrlResponse, requestSerialize: serialize_contentservice_DownloadUrlRequest,
requestSerialize: serialize_contentservice_DownloadUrlRequest, requestDeserialize: deserialize_contentservice_DownloadUrlRequest,
requestDeserialize: deserialize_contentservice_DownloadUrlRequest, responseSerialize: serialize_contentservice_DownloadUrlResponse,
responseSerialize: serialize_contentservice_DownloadUrlResponse, responseDeserialize: deserialize_contentservice_DownloadUrlResponse,
responseDeserialize: deserialize_contentservice_DownloadUrlResponse, },
}, // Delete deletes the uploaded content.
// Delete deletes the uploaded content. delete: {
delete: { path: "/contentservice.BlobService/Delete",
path: '/contentservice.BlobService/Delete', requestStream: false,
requestStream: false, responseStream: false,
responseStream: false, requestType: blobs_pb.DeleteRequest,
requestType: blobs_pb.DeleteRequest, responseType: blobs_pb.DeleteResponse,
responseType: blobs_pb.DeleteResponse, requestSerialize: serialize_contentservice_DeleteRequest,
requestSerialize: serialize_contentservice_DeleteRequest, requestDeserialize: deserialize_contentservice_DeleteRequest,
requestDeserialize: deserialize_contentservice_DeleteRequest, responseSerialize: serialize_contentservice_DeleteResponse,
responseSerialize: serialize_contentservice_DeleteResponse, responseDeserialize: deserialize_contentservice_DeleteResponse,
responseDeserialize: deserialize_contentservice_DeleteResponse, },
}, });
};
exports.BlobServiceClient = grpc.makeGenericClientConstructor(BlobServiceService); exports.BlobServiceClient = grpc.makeGenericClientConstructor(BlobServiceService);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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 // package: contentservice
@ -23,8 +23,8 @@ export class UploadUrlRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UploadUrlRequest.AsObject; toObject(includeInstance?: boolean): UploadUrlRequest.AsObject;
static toObject(includeInstance: boolean, msg: UploadUrlRequest): UploadUrlRequest.AsObject; static toObject(includeInstance: boolean, msg: UploadUrlRequest): UploadUrlRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: UploadUrlRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: UploadUrlRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UploadUrlRequest; static deserializeBinary(bytes: Uint8Array): UploadUrlRequest;
static deserializeBinaryFromReader(message: UploadUrlRequest, reader: jspb.BinaryReader): UploadUrlRequest; static deserializeBinaryFromReader(message: UploadUrlRequest, reader: jspb.BinaryReader): UploadUrlRequest;
@ -32,10 +32,10 @@ export class UploadUrlRequest extends jspb.Message {
export namespace UploadUrlRequest { export namespace UploadUrlRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
name: string, name: string;
contentType: string, contentType: string;
} };
} }
export class UploadUrlResponse extends jspb.Message { export class UploadUrlResponse extends jspb.Message {
@ -45,8 +45,8 @@ export class UploadUrlResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UploadUrlResponse.AsObject; toObject(includeInstance?: boolean): UploadUrlResponse.AsObject;
static toObject(includeInstance: boolean, msg: UploadUrlResponse): UploadUrlResponse.AsObject; static toObject(includeInstance: boolean, msg: UploadUrlResponse): UploadUrlResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: UploadUrlResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: UploadUrlResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UploadUrlResponse; static deserializeBinary(bytes: Uint8Array): UploadUrlResponse;
static deserializeBinaryFromReader(message: UploadUrlResponse, reader: jspb.BinaryReader): UploadUrlResponse; static deserializeBinaryFromReader(message: UploadUrlResponse, reader: jspb.BinaryReader): UploadUrlResponse;
@ -54,8 +54,8 @@ export class UploadUrlResponse extends jspb.Message {
export namespace UploadUrlResponse { export namespace UploadUrlResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class DownloadUrlRequest extends jspb.Message { export class DownloadUrlRequest extends jspb.Message {
@ -69,8 +69,8 @@ export class DownloadUrlRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DownloadUrlRequest.AsObject; toObject(includeInstance?: boolean): DownloadUrlRequest.AsObject;
static toObject(includeInstance: boolean, msg: DownloadUrlRequest): DownloadUrlRequest.AsObject; static toObject(includeInstance: boolean, msg: DownloadUrlRequest): DownloadUrlRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DownloadUrlRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DownloadUrlRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DownloadUrlRequest; static deserializeBinary(bytes: Uint8Array): DownloadUrlRequest;
static deserializeBinaryFromReader(message: DownloadUrlRequest, reader: jspb.BinaryReader): DownloadUrlRequest; static deserializeBinaryFromReader(message: DownloadUrlRequest, reader: jspb.BinaryReader): DownloadUrlRequest;
@ -78,10 +78,10 @@ export class DownloadUrlRequest extends jspb.Message {
export namespace DownloadUrlRequest { export namespace DownloadUrlRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
name: string, name: string;
contentType: string, contentType: string;
} };
} }
export class DownloadUrlResponse extends jspb.Message { export class DownloadUrlResponse extends jspb.Message {
@ -91,8 +91,8 @@ export class DownloadUrlResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DownloadUrlResponse.AsObject; toObject(includeInstance?: boolean): DownloadUrlResponse.AsObject;
static toObject(includeInstance: boolean, msg: DownloadUrlResponse): DownloadUrlResponse.AsObject; static toObject(includeInstance: boolean, msg: DownloadUrlResponse): DownloadUrlResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DownloadUrlResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DownloadUrlResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DownloadUrlResponse; static deserializeBinary(bytes: Uint8Array): DownloadUrlResponse;
static deserializeBinaryFromReader(message: DownloadUrlResponse, reader: jspb.BinaryReader): DownloadUrlResponse; static deserializeBinaryFromReader(message: DownloadUrlResponse, reader: jspb.BinaryReader): DownloadUrlResponse;
@ -100,8 +100,8 @@ export class DownloadUrlResponse extends jspb.Message {
export namespace DownloadUrlResponse { export namespace DownloadUrlResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class DeleteRequest extends jspb.Message { export class DeleteRequest extends jspb.Message {
@ -123,8 +123,8 @@ export class DeleteRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteRequest.AsObject; toObject(includeInstance?: boolean): DeleteRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteRequest): DeleteRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteRequest): DeleteRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DeleteRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteRequest; static deserializeBinary(bytes: Uint8Array): DeleteRequest;
static deserializeBinaryFromReader(message: DeleteRequest, reader: jspb.BinaryReader): DeleteRequest; static deserializeBinaryFromReader(message: DeleteRequest, reader: jspb.BinaryReader): DeleteRequest;
@ -132,32 +132,29 @@ export class DeleteRequest extends jspb.Message {
export namespace DeleteRequest { export namespace DeleteRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
exact: string, exact: string;
prefix: string, prefix: string;
} };
export enum NameCase { export enum NameCase {
NAME_NOT_SET = 0, NAME_NOT_SET = 0,
EXACT = 2, EXACT = 2,
PREFIX = 3, PREFIX = 3,
} }
} }
export class DeleteResponse extends jspb.Message { export class DeleteResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteResponse.AsObject; toObject(includeInstance?: boolean): DeleteResponse.AsObject;
static toObject(includeInstance: boolean, msg: DeleteResponse): DeleteResponse.AsObject; static toObject(includeInstance: boolean, msg: DeleteResponse): DeleteResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DeleteResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteResponse; static deserializeBinary(bytes: Uint8Array): DeleteResponse;
static deserializeBinaryFromReader(message: DeleteResponse, reader: jspb.BinaryReader): DeleteResponse; static deserializeBinaryFromReader(message: DeleteResponse, reader: jspb.BinaryReader): DeleteResponse;
} }
export namespace DeleteResponse { export namespace DeleteResponse {
export type AsObject = { export type AsObject = {};
}
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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 // package: contentservice
@ -17,7 +17,8 @@ interface IContentServiceService extends grpc.ServiceDefinition<grpc.UntypedServ
deleteUserContent: IContentServiceService_IDeleteUserContent; 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"; path: "/contentservice.ContentService/DeleteUserContent";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -34,14 +35,38 @@ export interface IContentServiceServer extends grpc.UntypedServiceImplementation
} }
export interface IContentServiceClient { export interface IContentServiceClient {
deleteUserContent(request: content_pb.DeleteUserContentRequest, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; deleteUserContent(
deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; request: content_pb.DeleteUserContentRequest,
deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; 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 { export class ContentServiceClient extends grpc.Client implements IContentServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); 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(
public deleteUserContent(request: content_pb.DeleteUserContentRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: content_pb.DeleteUserContentResponse) => void): grpc.ClientUnaryCall; request: content_pb.DeleteUserContentRequest,
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; 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;
} }

View File

@ -3,48 +3,47 @@
// Original file comments: // Original file comments:
// Copyright (c) 2020 TypeFox GmbH. All rights reserved. // Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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'; "use strict";
var grpc = require('@grpc/grpc-js'); var grpc = require("@grpc/grpc-js");
var content_pb = require('./content_pb.js'); var content_pb = require("./content_pb.js");
function serialize_contentservice_DeleteUserContentRequest(arg) { function serialize_contentservice_DeleteUserContentRequest(arg) {
if (!(arg instanceof content_pb.DeleteUserContentRequest)) { if (!(arg instanceof content_pb.DeleteUserContentRequest)) {
throw new Error('Expected argument of type contentservice.DeleteUserContentRequest'); throw new Error("Expected argument of type contentservice.DeleteUserContentRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_DeleteUserContentRequest(buffer_arg) { 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) { function serialize_contentservice_DeleteUserContentResponse(arg) {
if (!(arg instanceof content_pb.DeleteUserContentResponse)) { if (!(arg instanceof content_pb.DeleteUserContentResponse)) {
throw new Error('Expected argument of type contentservice.DeleteUserContentResponse'); throw new Error("Expected argument of type contentservice.DeleteUserContentResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_DeleteUserContentResponse(buffer_arg) { 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 = {
var ContentServiceService = exports.ContentServiceService = { // DeleteUserContent deletes all content associated with a user.
// DeleteUserContent deletes all content associated with a user. deleteUserContent: {
deleteUserContent: { path: "/contentservice.ContentService/DeleteUserContent",
path: '/contentservice.ContentService/DeleteUserContent', requestStream: false,
requestStream: false, responseStream: false,
responseStream: false, requestType: content_pb.DeleteUserContentRequest,
requestType: content_pb.DeleteUserContentRequest, responseType: content_pb.DeleteUserContentResponse,
responseType: content_pb.DeleteUserContentResponse, requestSerialize: serialize_contentservice_DeleteUserContentRequest,
requestSerialize: serialize_contentservice_DeleteUserContentRequest, requestDeserialize: deserialize_contentservice_DeleteUserContentRequest,
requestDeserialize: deserialize_contentservice_DeleteUserContentRequest, responseSerialize: serialize_contentservice_DeleteUserContentResponse,
responseSerialize: serialize_contentservice_DeleteUserContentResponse, responseDeserialize: deserialize_contentservice_DeleteUserContentResponse,
responseDeserialize: deserialize_contentservice_DeleteUserContentResponse, },
}, });
};
exports.ContentServiceClient = grpc.makeGenericClientConstructor(ContentServiceService); exports.ContentServiceClient = grpc.makeGenericClientConstructor(ContentServiceService);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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 // package: contentservice
@ -19,32 +19,36 @@ export class DeleteUserContentRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteUserContentRequest.AsObject; toObject(includeInstance?: boolean): DeleteUserContentRequest.AsObject;
static toObject(includeInstance: boolean, msg: DeleteUserContentRequest): DeleteUserContentRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteUserContentRequest): DeleteUserContentRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteUserContentRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DeleteUserContentRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteUserContentRequest; 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 namespace DeleteUserContentRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
} };
} }
export class DeleteUserContentResponse extends jspb.Message { export class DeleteUserContentResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteUserContentResponse.AsObject; toObject(includeInstance?: boolean): DeleteUserContentResponse.AsObject;
static toObject(includeInstance: boolean, msg: DeleteUserContentResponse): DeleteUserContentResponse.AsObject; static toObject(includeInstance: boolean, msg: DeleteUserContentResponse): DeleteUserContentResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: DeleteUserContentResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: DeleteUserContentResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeleteUserContentResponse; 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 namespace DeleteUserContentResponse {
export type AsObject = { export type AsObject = {};
}
} }

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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 // source: content.proto
@ -17,12 +17,14 @@
/* eslint-disable */ /* eslint-disable */
// @ts-nocheck // @ts-nocheck
var jspb = require('google-protobuf'); var jspb = require("google-protobuf");
var goog = jspb; 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.DeleteUserContentRequest", null, global);
goog.exportSymbol('proto.contentservice.DeleteUserContentResponse', null, global); goog.exportSymbol("proto.contentservice.DeleteUserContentResponse", null, global);
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a * @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} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.contentservice.DeleteUserContentRequest = function(opt_data) { proto.contentservice.DeleteUserContentRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.contentservice.DeleteUserContentRequest, jspb.Message); goog.inherits(proto.contentservice.DeleteUserContentRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.contentservice.DeleteUserContentRequest.displayName = 'proto.contentservice.DeleteUserContentRequest'; proto.contentservice.DeleteUserContentRequest.displayName = "proto.contentservice.DeleteUserContentRequest";
} }
/** /**
* Generated by JsPbCodeGenerator. * Generated by JsPbCodeGenerator.
@ -54,72 +56,68 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message} * @extends {jspb.Message}
* @constructor * @constructor
*/ */
proto.contentservice.DeleteUserContentResponse = function(opt_data) { proto.contentservice.DeleteUserContentResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null); jspb.Message.initialize(this, opt_data, 0, -1, null, null);
}; };
goog.inherits(proto.contentservice.DeleteUserContentResponse, jspb.Message); goog.inherits(proto.contentservice.DeleteUserContentResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) { if (goog.DEBUG && !COMPILED) {
/** /**
* @public * @public
* @override * @override
*/ */
proto.contentservice.DeleteUserContentResponse.displayName = 'proto.contentservice.DeleteUserContentResponse'; proto.contentservice.DeleteUserContentResponse.displayName = "proto.contentservice.DeleteUserContentResponse";
} }
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * 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. * Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see: * For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the * @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support: * JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.contentservice.DeleteUserContentRequest.prototype.toObject = function(opt_includeInstance) { proto.contentservice.DeleteUserContentRequest.prototype.toObject = function (opt_includeInstance) {
return proto.contentservice.DeleteUserContentRequest.toObject(opt_includeInstance, this); 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, ""),
};
/** if (includeInstance) {
* Static version of the {@see toObject} method. obj.$jspbMessageInstance = msg;
* @param {boolean|undefined} includeInstance Deprecated. Whether to include }
* the JSPB instance for transitional soy proto support: return obj;
* 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;
};
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.contentservice.DeleteUserContentRequest} * @return {!proto.contentservice.DeleteUserContentRequest}
*/ */
proto.contentservice.DeleteUserContentRequest.deserializeBinary = function(bytes) { proto.contentservice.DeleteUserContentRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.DeleteUserContentRequest; var msg = new proto.contentservice.DeleteUserContentRequest();
return proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader(msg, reader); return proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * 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. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.contentservice.DeleteUserContentRequest} * @return {!proto.contentservice.DeleteUserContentRequest}
*/ */
proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader = function(msg, reader) { proto.contentservice.DeleteUserContentRequest.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; 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(); return msg;
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setOwnerId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = function() { proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter(this, writer); proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -165,91 +161,78 @@ proto.contentservice.DeleteUserContentRequest.prototype.serializeBinary = functi
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter = function(message, writer) { proto.contentservice.DeleteUserContentRequest.serializeBinaryToWriter = function (message, writer) {
var f = undefined; var f = undefined;
f = message.getOwnerId(); f = message.getOwnerId();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(1, f);
1, }
f
);
}
}; };
/** /**
* optional string owner_id = 1; * optional string owner_id = 1;
* @return {string} * @return {string}
*/ */
proto.contentservice.DeleteUserContentRequest.prototype.getOwnerId = function() { proto.contentservice.DeleteUserContentRequest.prototype.getOwnerId = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
}; };
/** /**
* @param {string} value * @param {string} value
* @return {!proto.contentservice.DeleteUserContentRequest} returns this * @return {!proto.contentservice.DeleteUserContentRequest} returns this
*/ */
proto.contentservice.DeleteUserContentRequest.prototype.setOwnerId = function(value) { proto.contentservice.DeleteUserContentRequest.prototype.setOwnerId = function (value) {
return jspb.Message.setProto3StringField(this, 1, value); return jspb.Message.setProto3StringField(this, 1, value);
}; };
if (jspb.Message.GENERATE_TO_OBJECT) { if (jspb.Message.GENERATE_TO_OBJECT) {
/** /**
* Creates an object representation of this proto. * Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name. * 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. * Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see: * For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the * @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support: * JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration * http://goto/soy-param-migration
* @return {!Object} * @return {!Object}
*/ */
proto.contentservice.DeleteUserContentResponse.prototype.toObject = function(opt_includeInstance) { proto.contentservice.DeleteUserContentResponse.prototype.toObject = function (opt_includeInstance) {
return proto.contentservice.DeleteUserContentResponse.toObject(opt_includeInstance, this); 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 = {};
/** if (includeInstance) {
* Static version of the {@see toObject} method. obj.$jspbMessageInstance = msg;
* @param {boolean|undefined} includeInstance Deprecated. Whether to include }
* the JSPB instance for transitional soy proto support: return obj;
* 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;
};
} }
/** /**
* Deserializes binary data (in protobuf wire format). * Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize. * @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.contentservice.DeleteUserContentResponse} * @return {!proto.contentservice.DeleteUserContentResponse}
*/ */
proto.contentservice.DeleteUserContentResponse.deserializeBinary = function(bytes) { proto.contentservice.DeleteUserContentResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes); var reader = new jspb.BinaryReader(bytes);
var msg = new proto.contentservice.DeleteUserContentResponse; var msg = new proto.contentservice.DeleteUserContentResponse();
return proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader(msg, reader); return proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader(msg, reader);
}; };
/** /**
* Deserializes binary data (in protobuf wire format) from the * Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object. * 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. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.contentservice.DeleteUserContentResponse} * @return {!proto.contentservice.DeleteUserContentResponse}
*/ */
proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader = function(msg, reader) { proto.contentservice.DeleteUserContentResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) { while (reader.nextField()) {
if (reader.isEndGroup()) { if (reader.isEndGroup()) {
break; break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
} }
var field = reader.getFieldNumber(); return msg;
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
}; };
/** /**
* Serializes the message to binary data (in protobuf wire format). * Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array} * @return {!Uint8Array}
*/ */
proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = function() { proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter(); var writer = new jspb.BinaryWriter();
proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter(this, writer); proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer(); return writer.getResultBuffer();
}; };
/** /**
* Serializes the given message to binary data (in protobuf wire * Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter. * format), writing to the given BinaryWriter.
@ -291,9 +272,8 @@ proto.contentservice.DeleteUserContentResponse.prototype.serializeBinary = funct
* @param {!jspb.BinaryWriter} writer * @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages * @suppress {unusedLocalVariables} f is only used for nested messages
*/ */
proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter = function(message, writer) { proto.contentservice.DeleteUserContentResponse.serializeBinaryToWriter = function (message, writer) {
var f = undefined; var f = undefined;
}; };
goog.object.extend(exports, proto.contentservice); goog.object.extend(exports, proto.contentservice);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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 // package: contentservice
@ -18,7 +18,8 @@ interface IHeadlessLogServiceService extends grpc.ServiceDefinition<grpc.Untyped
listLogs: IHeadlessLogServiceService_IListLogs; 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"; path: "/contentservice.HeadlessLogService/LogDownloadURL";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -27,7 +28,8 @@ interface IHeadlessLogServiceService_ILogDownloadURL extends grpc.MethodDefiniti
responseSerialize: grpc.serialize<headless_log_pb.LogDownloadURLResponse>; responseSerialize: grpc.serialize<headless_log_pb.LogDownloadURLResponse>;
responseDeserialize: grpc.deserialize<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"; path: "/contentservice.HeadlessLogService/ListLogs";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -45,20 +47,68 @@ export interface IHeadlessLogServiceServer extends grpc.UntypedServiceImplementa
} }
export interface IHeadlessLogServiceClient { export interface IHeadlessLogServiceClient {
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall; logDownloadURL(
logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall; request: headless_log_pb.LogDownloadURLRequest,
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; callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
listLogs(request: headless_log_pb.ListLogsRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
listLogs(request: headless_log_pb.ListLogsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall; logDownloadURL(
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; 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 { export class HeadlessLogServiceClient extends grpc.Client implements IHeadlessLogServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); 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(
public logDownloadURL(request: headless_log_pb.LogDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void): grpc.ClientUnaryCall; request: headless_log_pb.LogDownloadURLRequest,
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; callback: (error: grpc.ServiceError | null, response: headless_log_pb.LogDownloadURLResponse) => void,
public listLogs(request: headless_log_pb.ListLogsRequest, callback: (error: grpc.ServiceError | null, response: headless_log_pb.ListLogsResponse) => void): grpc.ClientUnaryCall; ): 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 logDownloadURL(
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; 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;
} }

View File

@ -3,82 +3,81 @@
// Original file comments: // Original file comments:
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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'; "use strict";
var grpc = require('@grpc/grpc-js'); var grpc = require("@grpc/grpc-js");
var headless$log_pb = require('./headless-log_pb.js'); var headless$log_pb = require("./headless-log_pb.js");
function serialize_contentservice_ListLogsRequest(arg) { function serialize_contentservice_ListLogsRequest(arg) {
if (!(arg instanceof headless$log_pb.ListLogsRequest)) { if (!(arg instanceof headless$log_pb.ListLogsRequest)) {
throw new Error('Expected argument of type contentservice.ListLogsRequest'); throw new Error("Expected argument of type contentservice.ListLogsRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_ListLogsRequest(buffer_arg) { 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) { function serialize_contentservice_ListLogsResponse(arg) {
if (!(arg instanceof headless$log_pb.ListLogsResponse)) { if (!(arg instanceof headless$log_pb.ListLogsResponse)) {
throw new Error('Expected argument of type contentservice.ListLogsResponse'); throw new Error("Expected argument of type contentservice.ListLogsResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_ListLogsResponse(buffer_arg) { 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) { function serialize_contentservice_LogDownloadURLRequest(arg) {
if (!(arg instanceof headless$log_pb.LogDownloadURLRequest)) { if (!(arg instanceof headless$log_pb.LogDownloadURLRequest)) {
throw new Error('Expected argument of type contentservice.LogDownloadURLRequest'); throw new Error("Expected argument of type contentservice.LogDownloadURLRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_LogDownloadURLRequest(buffer_arg) { 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) { function serialize_contentservice_LogDownloadURLResponse(arg) {
if (!(arg instanceof headless$log_pb.LogDownloadURLResponse)) { if (!(arg instanceof headless$log_pb.LogDownloadURLResponse)) {
throw new Error('Expected argument of type contentservice.LogDownloadURLResponse'); throw new Error("Expected argument of type contentservice.LogDownloadURLResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_contentservice_LogDownloadURLResponse(buffer_arg) { 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 = {
var HeadlessLogServiceService = exports.HeadlessLogServiceService = { // LogDownloadURL provides a URL from where the content of a workspace can be downloaded from
// LogDownloadURL provides a URL from where the content of a workspace can be downloaded from logDownloadURL: {
logDownloadURL: { path: "/contentservice.HeadlessLogService/LogDownloadURL",
path: '/contentservice.HeadlessLogService/LogDownloadURL', requestStream: false,
requestStream: false, responseStream: false,
responseStream: false, requestType: headless$log_pb.LogDownloadURLRequest,
requestType: headless$log_pb.LogDownloadURLRequest, responseType: headless$log_pb.LogDownloadURLResponse,
responseType: headless$log_pb.LogDownloadURLResponse, requestSerialize: serialize_contentservice_LogDownloadURLRequest,
requestSerialize: serialize_contentservice_LogDownloadURLRequest, requestDeserialize: deserialize_contentservice_LogDownloadURLRequest,
requestDeserialize: deserialize_contentservice_LogDownloadURLRequest, responseSerialize: serialize_contentservice_LogDownloadURLResponse,
responseSerialize: serialize_contentservice_LogDownloadURLResponse, responseDeserialize: deserialize_contentservice_LogDownloadURLResponse,
responseDeserialize: deserialize_contentservice_LogDownloadURLResponse, },
}, // ListLogs returns a list of taskIds for the specified workspace instance
// ListLogs returns a list of taskIds for the specified workspace instance listLogs: {
listLogs: { path: "/contentservice.HeadlessLogService/ListLogs",
path: '/contentservice.HeadlessLogService/ListLogs', requestStream: false,
requestStream: false, responseStream: false,
responseStream: false, requestType: headless$log_pb.ListLogsRequest,
requestType: headless$log_pb.ListLogsRequest, responseType: headless$log_pb.ListLogsResponse,
responseType: headless$log_pb.ListLogsResponse, requestSerialize: serialize_contentservice_ListLogsRequest,
requestSerialize: serialize_contentservice_ListLogsRequest, requestDeserialize: deserialize_contentservice_ListLogsRequest,
requestDeserialize: deserialize_contentservice_ListLogsRequest, responseSerialize: serialize_contentservice_ListLogsResponse,
responseSerialize: serialize_contentservice_ListLogsResponse, responseDeserialize: deserialize_contentservice_ListLogsResponse,
responseDeserialize: deserialize_contentservice_ListLogsResponse, },
}, });
};
exports.HeadlessLogServiceClient = grpc.makeGenericClientConstructor(HeadlessLogServiceService); exports.HeadlessLogServiceClient = grpc.makeGenericClientConstructor(HeadlessLogServiceService);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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 // package: contentservice
@ -25,20 +25,23 @@ export class LogDownloadURLRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): LogDownloadURLRequest.AsObject; toObject(includeInstance?: boolean): LogDownloadURLRequest.AsObject;
static toObject(includeInstance: boolean, msg: LogDownloadURLRequest): LogDownloadURLRequest.AsObject; static toObject(includeInstance: boolean, msg: LogDownloadURLRequest): LogDownloadURLRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: LogDownloadURLRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: LogDownloadURLRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): LogDownloadURLRequest; 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 namespace LogDownloadURLRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
workspaceId: string, workspaceId: string;
instanceId: string, instanceId: string;
taskId: string, taskId: string;
} };
} }
export class LogDownloadURLResponse extends jspb.Message { export class LogDownloadURLResponse extends jspb.Message {
@ -48,17 +51,20 @@ export class LogDownloadURLResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): LogDownloadURLResponse.AsObject; toObject(includeInstance?: boolean): LogDownloadURLResponse.AsObject;
static toObject(includeInstance: boolean, msg: LogDownloadURLResponse): LogDownloadURLResponse.AsObject; static toObject(includeInstance: boolean, msg: LogDownloadURLResponse): LogDownloadURLResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: LogDownloadURLResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: LogDownloadURLResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): LogDownloadURLResponse; 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 namespace LogDownloadURLResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class ListLogsRequest extends jspb.Message { export class ListLogsRequest extends jspb.Message {
@ -72,8 +78,8 @@ export class ListLogsRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListLogsRequest.AsObject; toObject(includeInstance?: boolean): ListLogsRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListLogsRequest): ListLogsRequest.AsObject; static toObject(includeInstance: boolean, msg: ListLogsRequest): ListLogsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: ListLogsRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: ListLogsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListLogsRequest; static deserializeBinary(bytes: Uint8Array): ListLogsRequest;
static deserializeBinaryFromReader(message: ListLogsRequest, reader: jspb.BinaryReader): ListLogsRequest; static deserializeBinaryFromReader(message: ListLogsRequest, reader: jspb.BinaryReader): ListLogsRequest;
@ -81,10 +87,10 @@ export class ListLogsRequest extends jspb.Message {
export namespace ListLogsRequest { export namespace ListLogsRequest {
export type AsObject = { export type AsObject = {
ownerId: string, ownerId: string;
workspaceId: string, workspaceId: string;
instanceId: string, instanceId: string;
} };
} }
export class ListLogsResponse extends jspb.Message { export class ListLogsResponse extends jspb.Message {
@ -96,8 +102,8 @@ export class ListLogsResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListLogsResponse.AsObject; toObject(includeInstance?: boolean): ListLogsResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListLogsResponse): ListLogsResponse.AsObject; static toObject(includeInstance: boolean, msg: ListLogsResponse): ListLogsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: ListLogsResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: ListLogsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListLogsResponse; static deserializeBinary(bytes: Uint8Array): ListLogsResponse;
static deserializeBinaryFromReader(message: ListLogsResponse, reader: jspb.BinaryReader): ListLogsResponse; static deserializeBinaryFromReader(message: ListLogsResponse, reader: jspb.BinaryReader): ListLogsResponse;
@ -105,6 +111,6 @@ export class ListLogsResponse extends jspb.Message {
export namespace ListLogsResponse { export namespace ListLogsResponse {
export type AsObject = { export type AsObject = {
taskIdList: Array<string>, taskIdList: Array<string>;
} };
} }

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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 // package: ideplugin
@ -19,7 +19,8 @@ interface IIDEPluginServiceService extends grpc.ServiceDefinition<grpc.UntypedSe
pluginHash: IIDEPluginServiceService_IPluginHash; 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"; path: "/ideplugin.IDEPluginService/UploadURL";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -28,7 +29,8 @@ interface IIDEPluginServiceService_IUploadURL extends grpc.MethodDefinition<idep
responseSerialize: grpc.serialize<ideplugin_pb.PluginUploadURLResponse>; responseSerialize: grpc.serialize<ideplugin_pb.PluginUploadURLResponse>;
responseDeserialize: grpc.deserialize<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"; path: "/ideplugin.IDEPluginService/DownloadURL";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -37,7 +39,8 @@ interface IIDEPluginServiceService_IDownloadURL extends grpc.MethodDefinition<id
responseSerialize: grpc.serialize<ideplugin_pb.PluginDownloadURLResponse>; responseSerialize: grpc.serialize<ideplugin_pb.PluginDownloadURLResponse>;
responseDeserialize: grpc.deserialize<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"; path: "/ideplugin.IDEPluginService/PluginHash";
requestStream: false; requestStream: false;
responseStream: false; responseStream: false;
@ -56,26 +59,98 @@ export interface IIDEPluginServiceServer extends grpc.UntypedServiceImplementati
} }
export interface IIDEPluginServiceClient { export interface IIDEPluginServiceClient {
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; uploadURL(
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; request: ideplugin_pb.PluginUploadURLRequest,
uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; uploadURL(
downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; request: ideplugin_pb.PluginUploadURLRequest,
pluginHash(request: ideplugin_pb.PluginHashRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; metadata: grpc.Metadata,
pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; ): 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 { export class IDEPluginServiceClient extends grpc.Client implements IIDEPluginServiceClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); 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(
public uploadURL(request: ideplugin_pb.PluginUploadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void): grpc.ClientUnaryCall; request: ideplugin_pb.PluginUploadURLRequest,
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; callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
public downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; ): grpc.ClientUnaryCall;
public downloadURL(request: ideplugin_pb.PluginDownloadURLRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginDownloadURLResponse) => void): grpc.ClientUnaryCall; public uploadURL(
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; request: ideplugin_pb.PluginUploadURLRequest,
public pluginHash(request: ideplugin_pb.PluginHashRequest, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; metadata: grpc.Metadata,
public pluginHash(request: ideplugin_pb.PluginHashRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginHashResponse) => void): grpc.ClientUnaryCall; callback: (error: grpc.ServiceError | null, response: ideplugin_pb.PluginUploadURLResponse) => void,
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; ): 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;
} }

View File

@ -3,116 +3,115 @@
// Original file comments: // Original file comments:
// Copyright (c) 2021 Gitpod GmbH. All rights reserved. // Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL). // 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'; "use strict";
var grpc = require('@grpc/grpc-js'); var grpc = require("@grpc/grpc-js");
var ideplugin_pb = require('./ideplugin_pb.js'); var ideplugin_pb = require("./ideplugin_pb.js");
function serialize_ideplugin_PluginDownloadURLRequest(arg) { function serialize_ideplugin_PluginDownloadURLRequest(arg) {
if (!(arg instanceof ideplugin_pb.PluginDownloadURLRequest)) { if (!(arg instanceof ideplugin_pb.PluginDownloadURLRequest)) {
throw new Error('Expected argument of type ideplugin.PluginDownloadURLRequest'); throw new Error("Expected argument of type ideplugin.PluginDownloadURLRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_ideplugin_PluginDownloadURLRequest(buffer_arg) { 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) { function serialize_ideplugin_PluginDownloadURLResponse(arg) {
if (!(arg instanceof ideplugin_pb.PluginDownloadURLResponse)) { if (!(arg instanceof ideplugin_pb.PluginDownloadURLResponse)) {
throw new Error('Expected argument of type ideplugin.PluginDownloadURLResponse'); throw new Error("Expected argument of type ideplugin.PluginDownloadURLResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_ideplugin_PluginDownloadURLResponse(buffer_arg) { 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) { function serialize_ideplugin_PluginHashRequest(arg) {
if (!(arg instanceof ideplugin_pb.PluginHashRequest)) { if (!(arg instanceof ideplugin_pb.PluginHashRequest)) {
throw new Error('Expected argument of type ideplugin.PluginHashRequest'); throw new Error("Expected argument of type ideplugin.PluginHashRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_ideplugin_PluginHashRequest(buffer_arg) { 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) { function serialize_ideplugin_PluginHashResponse(arg) {
if (!(arg instanceof ideplugin_pb.PluginHashResponse)) { if (!(arg instanceof ideplugin_pb.PluginHashResponse)) {
throw new Error('Expected argument of type ideplugin.PluginHashResponse'); throw new Error("Expected argument of type ideplugin.PluginHashResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_ideplugin_PluginHashResponse(buffer_arg) { 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) { function serialize_ideplugin_PluginUploadURLRequest(arg) {
if (!(arg instanceof ideplugin_pb.PluginUploadURLRequest)) { if (!(arg instanceof ideplugin_pb.PluginUploadURLRequest)) {
throw new Error('Expected argument of type ideplugin.PluginUploadURLRequest'); throw new Error("Expected argument of type ideplugin.PluginUploadURLRequest");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_ideplugin_PluginUploadURLRequest(buffer_arg) { 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) { function serialize_ideplugin_PluginUploadURLResponse(arg) {
if (!(arg instanceof ideplugin_pb.PluginUploadURLResponse)) { if (!(arg instanceof ideplugin_pb.PluginUploadURLResponse)) {
throw new Error('Expected argument of type ideplugin.PluginUploadURLResponse'); throw new Error("Expected argument of type ideplugin.PluginUploadURLResponse");
} }
return Buffer.from(arg.serializeBinary()); return Buffer.from(arg.serializeBinary());
} }
function deserialize_ideplugin_PluginUploadURLResponse(buffer_arg) { 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 = {
var IDEPluginServiceService = exports.IDEPluginServiceService = { // UploadURL provides a URL to which clients can upload the content via HTTP PUT.
// UploadURL provides a URL to which clients can upload the content via HTTP PUT. uploadURL: {
uploadURL: { path: "/ideplugin.IDEPluginService/UploadURL",
path: '/ideplugin.IDEPluginService/UploadURL', requestStream: false,
requestStream: false, responseStream: false,
responseStream: false, requestType: ideplugin_pb.PluginUploadURLRequest,
requestType: ideplugin_pb.PluginUploadURLRequest, responseType: ideplugin_pb.PluginUploadURLResponse,
responseType: ideplugin_pb.PluginUploadURLResponse, requestSerialize: serialize_ideplugin_PluginUploadURLRequest,
requestSerialize: serialize_ideplugin_PluginUploadURLRequest, requestDeserialize: deserialize_ideplugin_PluginUploadURLRequest,
requestDeserialize: deserialize_ideplugin_PluginUploadURLRequest, responseSerialize: serialize_ideplugin_PluginUploadURLResponse,
responseSerialize: serialize_ideplugin_PluginUploadURLResponse, responseDeserialize: deserialize_ideplugin_PluginUploadURLResponse,
responseDeserialize: deserialize_ideplugin_PluginUploadURLResponse, },
}, // DownloadURL provides a URL from which clients can download the content via HTTP GET.
// DownloadURL provides a URL from which clients can download the content via HTTP GET. downloadURL: {
downloadURL: { path: "/ideplugin.IDEPluginService/DownloadURL",
path: '/ideplugin.IDEPluginService/DownloadURL', requestStream: false,
requestStream: false, responseStream: false,
responseStream: false, requestType: ideplugin_pb.PluginDownloadURLRequest,
requestType: ideplugin_pb.PluginDownloadURLRequest, responseType: ideplugin_pb.PluginDownloadURLResponse,
responseType: ideplugin_pb.PluginDownloadURLResponse, requestSerialize: serialize_ideplugin_PluginDownloadURLRequest,
requestSerialize: serialize_ideplugin_PluginDownloadURLRequest, requestDeserialize: deserialize_ideplugin_PluginDownloadURLRequest,
requestDeserialize: deserialize_ideplugin_PluginDownloadURLRequest, responseSerialize: serialize_ideplugin_PluginDownloadURLResponse,
responseSerialize: serialize_ideplugin_PluginDownloadURLResponse, responseDeserialize: deserialize_ideplugin_PluginDownloadURLResponse,
responseDeserialize: deserialize_ideplugin_PluginDownloadURLResponse, },
}, // PluginHash provides a hash of the plugin
// PluginHash provides a hash of the plugin pluginHash: {
pluginHash: { path: "/ideplugin.IDEPluginService/PluginHash",
path: '/ideplugin.IDEPluginService/PluginHash', requestStream: false,
requestStream: false, responseStream: false,
responseStream: false, requestType: ideplugin_pb.PluginHashRequest,
requestType: ideplugin_pb.PluginHashRequest, responseType: ideplugin_pb.PluginHashResponse,
responseType: ideplugin_pb.PluginHashResponse, requestSerialize: serialize_ideplugin_PluginHashRequest,
requestSerialize: serialize_ideplugin_PluginHashRequest, requestDeserialize: deserialize_ideplugin_PluginHashRequest,
requestDeserialize: deserialize_ideplugin_PluginHashRequest, responseSerialize: serialize_ideplugin_PluginHashResponse,
responseSerialize: serialize_ideplugin_PluginHashResponse, responseDeserialize: deserialize_ideplugin_PluginHashResponse,
responseDeserialize: deserialize_ideplugin_PluginHashResponse, },
}, });
};
exports.IDEPluginServiceClient = grpc.makeGenericClientConstructor(IDEPluginServiceService); exports.IDEPluginServiceClient = grpc.makeGenericClientConstructor(IDEPluginServiceService);

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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 // package: ideplugin
@ -21,18 +21,21 @@ export class PluginUploadURLRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginUploadURLRequest.AsObject; toObject(includeInstance?: boolean): PluginUploadURLRequest.AsObject;
static toObject(includeInstance: boolean, msg: PluginUploadURLRequest): PluginUploadURLRequest.AsObject; static toObject(includeInstance: boolean, msg: PluginUploadURLRequest): PluginUploadURLRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginUploadURLRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginUploadURLRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginUploadURLRequest; 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 namespace PluginUploadURLRequest {
export type AsObject = { export type AsObject = {
bucket: string, bucket: string;
name: string, name: string;
} };
} }
export class PluginUploadURLResponse extends jspb.Message { export class PluginUploadURLResponse extends jspb.Message {
@ -42,17 +45,20 @@ export class PluginUploadURLResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginUploadURLResponse.AsObject; toObject(includeInstance?: boolean): PluginUploadURLResponse.AsObject;
static toObject(includeInstance: boolean, msg: PluginUploadURLResponse): PluginUploadURLResponse.AsObject; static toObject(includeInstance: boolean, msg: PluginUploadURLResponse): PluginUploadURLResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginUploadURLResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginUploadURLResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginUploadURLResponse; 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 namespace PluginUploadURLResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class PluginDownloadURLRequest extends jspb.Message { export class PluginDownloadURLRequest extends jspb.Message {
@ -64,18 +70,21 @@ export class PluginDownloadURLRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginDownloadURLRequest.AsObject; toObject(includeInstance?: boolean): PluginDownloadURLRequest.AsObject;
static toObject(includeInstance: boolean, msg: PluginDownloadURLRequest): PluginDownloadURLRequest.AsObject; static toObject(includeInstance: boolean, msg: PluginDownloadURLRequest): PluginDownloadURLRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginDownloadURLRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginDownloadURLRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginDownloadURLRequest; 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 namespace PluginDownloadURLRequest {
export type AsObject = { export type AsObject = {
bucket: string, bucket: string;
name: string, name: string;
} };
} }
export class PluginDownloadURLResponse extends jspb.Message { export class PluginDownloadURLResponse extends jspb.Message {
@ -85,17 +94,20 @@ export class PluginDownloadURLResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginDownloadURLResponse.AsObject; toObject(includeInstance?: boolean): PluginDownloadURLResponse.AsObject;
static toObject(includeInstance: boolean, msg: PluginDownloadURLResponse): PluginDownloadURLResponse.AsObject; static toObject(includeInstance: boolean, msg: PluginDownloadURLResponse): PluginDownloadURLResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginDownloadURLResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginDownloadURLResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginDownloadURLResponse; 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 namespace PluginDownloadURLResponse {
export type AsObject = { export type AsObject = {
url: string, url: string;
} };
} }
export class PluginHashRequest extends jspb.Message { export class PluginHashRequest extends jspb.Message {
@ -107,8 +119,8 @@ export class PluginHashRequest extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginHashRequest.AsObject; toObject(includeInstance?: boolean): PluginHashRequest.AsObject;
static toObject(includeInstance: boolean, msg: PluginHashRequest): PluginHashRequest.AsObject; static toObject(includeInstance: boolean, msg: PluginHashRequest): PluginHashRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginHashRequest, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginHashRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginHashRequest; static deserializeBinary(bytes: Uint8Array): PluginHashRequest;
static deserializeBinaryFromReader(message: PluginHashRequest, reader: jspb.BinaryReader): PluginHashRequest; static deserializeBinaryFromReader(message: PluginHashRequest, reader: jspb.BinaryReader): PluginHashRequest;
@ -116,9 +128,9 @@ export class PluginHashRequest extends jspb.Message {
export namespace PluginHashRequest { export namespace PluginHashRequest {
export type AsObject = { export type AsObject = {
bucket: string, bucket: string;
name: string, name: string;
} };
} }
export class PluginHashResponse extends jspb.Message { export class PluginHashResponse extends jspb.Message {
@ -128,8 +140,8 @@ export class PluginHashResponse extends jspb.Message {
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PluginHashResponse.AsObject; toObject(includeInstance?: boolean): PluginHashResponse.AsObject;
static toObject(includeInstance: boolean, msg: PluginHashResponse): PluginHashResponse.AsObject; static toObject(includeInstance: boolean, msg: PluginHashResponse): PluginHashResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static extensionsBinary: { [key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message> };
static serializeBinaryToWriter(message: PluginHashResponse, writer: jspb.BinaryWriter): void; static serializeBinaryToWriter(message: PluginHashResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PluginHashResponse; static deserializeBinary(bytes: Uint8Array): PluginHashResponse;
static deserializeBinaryFromReader(message: PluginHashResponse, reader: jspb.BinaryReader): PluginHashResponse; static deserializeBinaryFromReader(message: PluginHashResponse, reader: jspb.BinaryReader): PluginHashResponse;
@ -137,6 +149,6 @@ export class PluginHashResponse extends jspb.Message {
export namespace PluginHashResponse { export namespace PluginHashResponse {
export type AsObject = { export type AsObject = {
hash: string, hash: string;
} };
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/** /**
* Copyright (c) 2020 Gitpod GmbH. All rights reserved. * Copyright (c) 2020 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL). * 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