mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
* UI reorg * generated stuffs * Make it woooooooork * Classier placeholder * Remove unneeded fragment * Introduce `enterprise_onboarding_enabled` flag * move things properly * add ipv6 localhost
113 lines
4.6 KiB
Go
113 lines
4.6 KiB
Go
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.
|
|
// Licensed under the GNU Affero General Public License (AGPL).
|
|
// See License.AGPL.txt in the project root for license information.
|
|
|
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.2.0
|
|
// - protoc (unknown)
|
|
// source: gitpod/experimental/v1/identityprovider.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
// IdentityProviderServiceClient is the client API for IdentityProviderService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
type IdentityProviderServiceClient interface {
|
|
// GetIDToken produces a new OIDC ID token (https://openid.net/specs/openid-connect-core-1_0.html#ImplicitIDToken)
|
|
GetIDToken(ctx context.Context, in *GetIDTokenRequest, opts ...grpc.CallOption) (*GetIDTokenResponse, error)
|
|
}
|
|
|
|
type identityProviderServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewIdentityProviderServiceClient(cc grpc.ClientConnInterface) IdentityProviderServiceClient {
|
|
return &identityProviderServiceClient{cc}
|
|
}
|
|
|
|
func (c *identityProviderServiceClient) GetIDToken(ctx context.Context, in *GetIDTokenRequest, opts ...grpc.CallOption) (*GetIDTokenResponse, error) {
|
|
out := new(GetIDTokenResponse)
|
|
err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.IdentityProviderService/GetIDToken", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// IdentityProviderServiceServer is the server API for IdentityProviderService service.
|
|
// All implementations must embed UnimplementedIdentityProviderServiceServer
|
|
// for forward compatibility
|
|
type IdentityProviderServiceServer interface {
|
|
// GetIDToken produces a new OIDC ID token (https://openid.net/specs/openid-connect-core-1_0.html#ImplicitIDToken)
|
|
GetIDToken(context.Context, *GetIDTokenRequest) (*GetIDTokenResponse, error)
|
|
mustEmbedUnimplementedIdentityProviderServiceServer()
|
|
}
|
|
|
|
// UnimplementedIdentityProviderServiceServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedIdentityProviderServiceServer struct {
|
|
}
|
|
|
|
func (UnimplementedIdentityProviderServiceServer) GetIDToken(context.Context, *GetIDTokenRequest) (*GetIDTokenResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetIDToken not implemented")
|
|
}
|
|
func (UnimplementedIdentityProviderServiceServer) mustEmbedUnimplementedIdentityProviderServiceServer() {
|
|
}
|
|
|
|
// UnsafeIdentityProviderServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to IdentityProviderServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeIdentityProviderServiceServer interface {
|
|
mustEmbedUnimplementedIdentityProviderServiceServer()
|
|
}
|
|
|
|
func RegisterIdentityProviderServiceServer(s grpc.ServiceRegistrar, srv IdentityProviderServiceServer) {
|
|
s.RegisterService(&IdentityProviderService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _IdentityProviderService_GetIDToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetIDTokenRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(IdentityProviderServiceServer).GetIDToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/gitpod.experimental.v1.IdentityProviderService/GetIDToken",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(IdentityProviderServiceServer).GetIDToken(ctx, req.(*GetIDTokenRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// IdentityProviderService_ServiceDesc is the grpc.ServiceDesc for IdentityProviderService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var IdentityProviderService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "gitpod.experimental.v1.IdentityProviderService",
|
|
HandlerType: (*IdentityProviderServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetIDToken",
|
|
Handler: _IdentityProviderService_GetIDToken_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "gitpod/experimental/v1/identityprovider.proto",
|
|
}
|