@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc-gen-go-grpc v1.5.1
// - protoc v4.24.4
// - protoc v5.29.3
// source: api/v2/api.proto
// source: api/v2/api.proto
package api
package api
@ -15,8 +15,8 @@ import (
// This is a compile-time assertion to ensure that this generated file
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32 .0 or later.
// Requires gRPC-Go v1.64 .0 or later.
const _ = grpc . SupportPackageIsVersion7
const _ = grpc . SupportPackageIsVersion9
const (
const (
Dex_GetClient_FullMethodName = "/api.Dex/GetClient"
Dex_GetClient_FullMethodName = "/api.Dex/GetClient"
@ -41,6 +41,8 @@ const (
// DexClient is the client API for Dex service.
// DexClient is the client API for Dex 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.
// 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.
//
// Dex represents the dex gRPC service.
type DexClient interface {
type DexClient interface {
// GetClient gets a client.
// GetClient gets a client.
GetClient ( ctx context . Context , in * GetClientReq , opts ... grpc . CallOption ) ( * GetClientResp , error )
GetClient ( ctx context . Context , in * GetClientReq , opts ... grpc . CallOption ) ( * GetClientResp , error )
@ -89,8 +91,9 @@ func NewDexClient(cc grpc.ClientConnInterface) DexClient {
}
}
func ( c * dexClient ) GetClient ( ctx context . Context , in * GetClientReq , opts ... grpc . CallOption ) ( * GetClientResp , error ) {
func ( c * dexClient ) GetClient ( ctx context . Context , in * GetClientReq , opts ... grpc . CallOption ) ( * GetClientResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( GetClientResp )
out := new ( GetClientResp )
err := c . cc . Invoke ( ctx , Dex_GetClient_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_GetClient_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -98,8 +101,9 @@ func (c *dexClient) GetClient(ctx context.Context, in *GetClientReq, opts ...grp
}
}
func ( c * dexClient ) CreateClient ( ctx context . Context , in * CreateClientReq , opts ... grpc . CallOption ) ( * CreateClientResp , error ) {
func ( c * dexClient ) CreateClient ( ctx context . Context , in * CreateClientReq , opts ... grpc . CallOption ) ( * CreateClientResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( CreateClientResp )
out := new ( CreateClientResp )
err := c . cc . Invoke ( ctx , Dex_CreateClient_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_CreateClient_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -107,8 +111,9 @@ func (c *dexClient) CreateClient(ctx context.Context, in *CreateClientReq, opts
}
}
func ( c * dexClient ) UpdateClient ( ctx context . Context , in * UpdateClientReq , opts ... grpc . CallOption ) ( * UpdateClientResp , error ) {
func ( c * dexClient ) UpdateClient ( ctx context . Context , in * UpdateClientReq , opts ... grpc . CallOption ) ( * UpdateClientResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( UpdateClientResp )
out := new ( UpdateClientResp )
err := c . cc . Invoke ( ctx , Dex_UpdateClient_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_UpdateClient_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -116,8 +121,9 @@ func (c *dexClient) UpdateClient(ctx context.Context, in *UpdateClientReq, opts
}
}
func ( c * dexClient ) DeleteClient ( ctx context . Context , in * DeleteClientReq , opts ... grpc . CallOption ) ( * DeleteClientResp , error ) {
func ( c * dexClient ) DeleteClient ( ctx context . Context , in * DeleteClientReq , opts ... grpc . CallOption ) ( * DeleteClientResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( DeleteClientResp )
out := new ( DeleteClientResp )
err := c . cc . Invoke ( ctx , Dex_DeleteClient_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_DeleteClient_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -125,8 +131,9 @@ func (c *dexClient) DeleteClient(ctx context.Context, in *DeleteClientReq, opts
}
}
func ( c * dexClient ) CreatePassword ( ctx context . Context , in * CreatePasswordReq , opts ... grpc . CallOption ) ( * CreatePasswordResp , error ) {
func ( c * dexClient ) CreatePassword ( ctx context . Context , in * CreatePasswordReq , opts ... grpc . CallOption ) ( * CreatePasswordResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( CreatePasswordResp )
out := new ( CreatePasswordResp )
err := c . cc . Invoke ( ctx , Dex_CreatePassword_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_CreatePassword_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -134,8 +141,9 @@ func (c *dexClient) CreatePassword(ctx context.Context, in *CreatePasswordReq, o
}
}
func ( c * dexClient ) UpdatePassword ( ctx context . Context , in * UpdatePasswordReq , opts ... grpc . CallOption ) ( * UpdatePasswordResp , error ) {
func ( c * dexClient ) UpdatePassword ( ctx context . Context , in * UpdatePasswordReq , opts ... grpc . CallOption ) ( * UpdatePasswordResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( UpdatePasswordResp )
out := new ( UpdatePasswordResp )
err := c . cc . Invoke ( ctx , Dex_UpdatePassword_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_UpdatePassword_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -143,8 +151,9 @@ func (c *dexClient) UpdatePassword(ctx context.Context, in *UpdatePasswordReq, o
}
}
func ( c * dexClient ) DeletePassword ( ctx context . Context , in * DeletePasswordReq , opts ... grpc . CallOption ) ( * DeletePasswordResp , error ) {
func ( c * dexClient ) DeletePassword ( ctx context . Context , in * DeletePasswordReq , opts ... grpc . CallOption ) ( * DeletePasswordResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( DeletePasswordResp )
out := new ( DeletePasswordResp )
err := c . cc . Invoke ( ctx , Dex_DeletePassword_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_DeletePassword_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -152,8 +161,9 @@ func (c *dexClient) DeletePassword(ctx context.Context, in *DeletePasswordReq, o
}
}
func ( c * dexClient ) ListPasswords ( ctx context . Context , in * ListPasswordReq , opts ... grpc . CallOption ) ( * ListPasswordResp , error ) {
func ( c * dexClient ) ListPasswords ( ctx context . Context , in * ListPasswordReq , opts ... grpc . CallOption ) ( * ListPasswordResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( ListPasswordResp )
out := new ( ListPasswordResp )
err := c . cc . Invoke ( ctx , Dex_ListPasswords_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_ListPasswords_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -161,8 +171,9 @@ func (c *dexClient) ListPasswords(ctx context.Context, in *ListPasswordReq, opts
}
}
func ( c * dexClient ) CreateConnector ( ctx context . Context , in * CreateConnectorReq , opts ... grpc . CallOption ) ( * CreateConnectorResp , error ) {
func ( c * dexClient ) CreateConnector ( ctx context . Context , in * CreateConnectorReq , opts ... grpc . CallOption ) ( * CreateConnectorResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( CreateConnectorResp )
out := new ( CreateConnectorResp )
err := c . cc . Invoke ( ctx , Dex_CreateConnector_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_CreateConnector_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -170,8 +181,9 @@ func (c *dexClient) CreateConnector(ctx context.Context, in *CreateConnectorReq,
}
}
func ( c * dexClient ) UpdateConnector ( ctx context . Context , in * UpdateConnectorReq , opts ... grpc . CallOption ) ( * UpdateConnectorResp , error ) {
func ( c * dexClient ) UpdateConnector ( ctx context . Context , in * UpdateConnectorReq , opts ... grpc . CallOption ) ( * UpdateConnectorResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( UpdateConnectorResp )
out := new ( UpdateConnectorResp )
err := c . cc . Invoke ( ctx , Dex_UpdateConnector_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_UpdateConnector_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -179,8 +191,9 @@ func (c *dexClient) UpdateConnector(ctx context.Context, in *UpdateConnectorReq,
}
}
func ( c * dexClient ) DeleteConnector ( ctx context . Context , in * DeleteConnectorReq , opts ... grpc . CallOption ) ( * DeleteConnectorResp , error ) {
func ( c * dexClient ) DeleteConnector ( ctx context . Context , in * DeleteConnectorReq , opts ... grpc . CallOption ) ( * DeleteConnectorResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( DeleteConnectorResp )
out := new ( DeleteConnectorResp )
err := c . cc . Invoke ( ctx , Dex_DeleteConnector_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_DeleteConnector_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -188,8 +201,9 @@ func (c *dexClient) DeleteConnector(ctx context.Context, in *DeleteConnectorReq,
}
}
func ( c * dexClient ) ListConnectors ( ctx context . Context , in * ListConnectorReq , opts ... grpc . CallOption ) ( * ListConnectorResp , error ) {
func ( c * dexClient ) ListConnectors ( ctx context . Context , in * ListConnectorReq , opts ... grpc . CallOption ) ( * ListConnectorResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( ListConnectorResp )
out := new ( ListConnectorResp )
err := c . cc . Invoke ( ctx , Dex_ListConnectors_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_ListConnectors_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -197,8 +211,9 @@ func (c *dexClient) ListConnectors(ctx context.Context, in *ListConnectorReq, op
}
}
func ( c * dexClient ) GetVersion ( ctx context . Context , in * VersionReq , opts ... grpc . CallOption ) ( * VersionResp , error ) {
func ( c * dexClient ) GetVersion ( ctx context . Context , in * VersionReq , opts ... grpc . CallOption ) ( * VersionResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( VersionResp )
out := new ( VersionResp )
err := c . cc . Invoke ( ctx , Dex_GetVersion_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_GetVersion_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -206,8 +221,9 @@ func (c *dexClient) GetVersion(ctx context.Context, in *VersionReq, opts ...grpc
}
}
func ( c * dexClient ) GetDiscovery ( ctx context . Context , in * DiscoveryReq , opts ... grpc . CallOption ) ( * DiscoveryResp , error ) {
func ( c * dexClient ) GetDiscovery ( ctx context . Context , in * DiscoveryReq , opts ... grpc . CallOption ) ( * DiscoveryResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( DiscoveryResp )
out := new ( DiscoveryResp )
err := c . cc . Invoke ( ctx , Dex_GetDiscovery_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_GetDiscovery_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -215,8 +231,9 @@ func (c *dexClient) GetDiscovery(ctx context.Context, in *DiscoveryReq, opts ...
}
}
func ( c * dexClient ) ListRefresh ( ctx context . Context , in * ListRefreshReq , opts ... grpc . CallOption ) ( * ListRefreshResp , error ) {
func ( c * dexClient ) ListRefresh ( ctx context . Context , in * ListRefreshReq , opts ... grpc . CallOption ) ( * ListRefreshResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( ListRefreshResp )
out := new ( ListRefreshResp )
err := c . cc . Invoke ( ctx , Dex_ListRefresh_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_ListRefresh_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -224,8 +241,9 @@ func (c *dexClient) ListRefresh(ctx context.Context, in *ListRefreshReq, opts ..
}
}
func ( c * dexClient ) RevokeRefresh ( ctx context . Context , in * RevokeRefreshReq , opts ... grpc . CallOption ) ( * RevokeRefreshResp , error ) {
func ( c * dexClient ) RevokeRefresh ( ctx context . Context , in * RevokeRefreshReq , opts ... grpc . CallOption ) ( * RevokeRefreshResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( RevokeRefreshResp )
out := new ( RevokeRefreshResp )
err := c . cc . Invoke ( ctx , Dex_RevokeRefresh_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_RevokeRefresh_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -233,8 +251,9 @@ func (c *dexClient) RevokeRefresh(ctx context.Context, in *RevokeRefreshReq, opt
}
}
func ( c * dexClient ) VerifyPassword ( ctx context . Context , in * VerifyPasswordReq , opts ... grpc . CallOption ) ( * VerifyPasswordResp , error ) {
func ( c * dexClient ) VerifyPassword ( ctx context . Context , in * VerifyPasswordReq , opts ... grpc . CallOption ) ( * VerifyPasswordResp , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( VerifyPasswordResp )
out := new ( VerifyPasswordResp )
err := c . cc . Invoke ( ctx , Dex_VerifyPassword_FullMethodName , in , out , o pts... )
err := c . cc . Invoke ( ctx , Dex_VerifyPassword_FullMethodName , in , out , cO pts... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -243,7 +262,9 @@ func (c *dexClient) VerifyPassword(ctx context.Context, in *VerifyPasswordReq, o
// DexServer is the server API for Dex service.
// DexServer is the server API for Dex service.
// All implementations must embed UnimplementedDexServer
// All implementations must embed UnimplementedDexServer
// for forward compatibility
// for forward compatibility.
//
// Dex represents the dex gRPC service.
type DexServer interface {
type DexServer interface {
// GetClient gets a client.
// GetClient gets a client.
GetClient ( context . Context , * GetClientReq ) ( * GetClientResp , error )
GetClient ( context . Context , * GetClientReq ) ( * GetClientResp , error )
@ -284,9 +305,12 @@ type DexServer interface {
mustEmbedUnimplementedDexServer ( )
mustEmbedUnimplementedDexServer ( )
}
}
// UnimplementedDexServer must be embedded to have forward compatible implementations.
// UnimplementedDexServer must be embedded to have
type UnimplementedDexServer struct {
// forward compatible implementations.
}
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedDexServer struct { }
func ( UnimplementedDexServer ) GetClient ( context . Context , * GetClientReq ) ( * GetClientResp , error ) {
func ( UnimplementedDexServer ) GetClient ( context . Context , * GetClientReq ) ( * GetClientResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetClient not implemented" )
return nil , status . Errorf ( codes . Unimplemented , "method GetClient not implemented" )
@ -340,6 +364,7 @@ func (UnimplementedDexServer) VerifyPassword(context.Context, *VerifyPasswordReq
return nil , status . Errorf ( codes . Unimplemented , "method VerifyPassword not implemented" )
return nil , status . Errorf ( codes . Unimplemented , "method VerifyPassword not implemented" )
}
}
func ( UnimplementedDexServer ) mustEmbedUnimplementedDexServer ( ) { }
func ( UnimplementedDexServer ) mustEmbedUnimplementedDexServer ( ) { }
func ( UnimplementedDexServer ) testEmbeddedByValue ( ) { }
// UnsafeDexServer may be embedded to opt out of forward compatibility for this service.
// UnsafeDexServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to DexServer will
// Use of this interface is not recommended, as added methods to DexServer will
@ -349,6 +374,13 @@ type UnsafeDexServer interface {
}
}
func RegisterDexServer ( s grpc . ServiceRegistrar , srv DexServer ) {
func RegisterDexServer ( s grpc . ServiceRegistrar , srv DexServer ) {
// If the following call pancis, it indicates UnimplementedDexServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t , ok := srv . ( interface { testEmbeddedByValue ( ) } ) ; ok {
t . testEmbeddedByValue ( )
}
s . RegisterService ( & Dex_ServiceDesc , srv )
s . RegisterService ( & Dex_ServiceDesc , srv )
}
}