@ -19,18 +19,22 @@ import (
const _ = grpc . SupportPackageIsVersion7
const _ = grpc . SupportPackageIsVersion7
const (
const (
Dex_GetClient_FullMethodName = "/api.Dex/GetClient"
Dex_GetClient_FullMethodName = "/api.Dex/GetClient"
Dex_CreateClient_FullMethodName = "/api.Dex/CreateClient"
Dex_CreateClient_FullMethodName = "/api.Dex/CreateClient"
Dex_UpdateClient_FullMethodName = "/api.Dex/UpdateClient"
Dex_UpdateClient_FullMethodName = "/api.Dex/UpdateClient"
Dex_DeleteClient_FullMethodName = "/api.Dex/DeleteClient"
Dex_DeleteClient_FullMethodName = "/api.Dex/DeleteClient"
Dex_CreatePassword_FullMethodName = "/api.Dex/CreatePassword"
Dex_CreatePassword_FullMethodName = "/api.Dex/CreatePassword"
Dex_UpdatePassword_FullMethodName = "/api.Dex/UpdatePassword"
Dex_UpdatePassword_FullMethodName = "/api.Dex/UpdatePassword"
Dex_DeletePassword_FullMethodName = "/api.Dex/DeletePassword"
Dex_DeletePassword_FullMethodName = "/api.Dex/DeletePassword"
Dex_ListPasswords_FullMethodName = "/api.Dex/ListPasswords"
Dex_ListPasswords_FullMethodName = "/api.Dex/ListPasswords"
Dex_GetVersion_FullMethodName = "/api.Dex/GetVersion"
Dex_CreateConnector_FullMethodName = "/api.Dex/CreateConnector"
Dex_ListRefresh_FullMethodName = "/api.Dex/ListRefresh"
Dex_UpdateConnector_FullMethodName = "/api.Dex/UpdateConnector"
Dex_RevokeRefresh_FullMethodName = "/api.Dex/RevokeRefresh"
Dex_DeleteConnector_FullMethodName = "/api.Dex/DeleteConnector"
Dex_VerifyPassword_FullMethodName = "/api.Dex/VerifyPassword"
Dex_ListConnectors_FullMethodName = "/api.Dex/ListConnectors"
Dex_GetVersion_FullMethodName = "/api.Dex/GetVersion"
Dex_ListRefresh_FullMethodName = "/api.Dex/ListRefresh"
Dex_RevokeRefresh_FullMethodName = "/api.Dex/RevokeRefresh"
Dex_VerifyPassword_FullMethodName = "/api.Dex/VerifyPassword"
)
)
// DexClient is the client API for Dex service.
// DexClient is the client API for Dex service.
@ -53,6 +57,14 @@ type DexClient interface {
DeletePassword ( ctx context . Context , in * DeletePasswordReq , opts ... grpc . CallOption ) ( * DeletePasswordResp , error )
DeletePassword ( ctx context . Context , in * DeletePasswordReq , opts ... grpc . CallOption ) ( * DeletePasswordResp , error )
// ListPassword lists all password entries.
// ListPassword lists all password entries.
ListPasswords ( ctx context . Context , in * ListPasswordReq , opts ... grpc . CallOption ) ( * ListPasswordResp , error )
ListPasswords ( ctx context . Context , in * ListPasswordReq , opts ... grpc . CallOption ) ( * ListPasswordResp , error )
// CreateConnector creates a connector.
CreateConnector ( ctx context . Context , in * CreateConnectorReq , opts ... grpc . CallOption ) ( * CreateConnectorResp , error )
// UpdateConnector modifies existing connector.
UpdateConnector ( ctx context . Context , in * UpdateConnectorReq , opts ... grpc . CallOption ) ( * UpdateConnectorResp , error )
// DeleteConnector deletes the connector.
DeleteConnector ( ctx context . Context , in * DeleteConnectorReq , opts ... grpc . CallOption ) ( * DeleteConnectorResp , error )
// ListConnectors lists all connector entries.
ListConnectors ( ctx context . Context , in * ListConnectorReq , opts ... grpc . CallOption ) ( * ListConnectorResp , error )
// GetVersion returns version information of the server.
// GetVersion returns version information of the server.
GetVersion ( ctx context . Context , in * VersionReq , opts ... grpc . CallOption ) ( * VersionResp , error )
GetVersion ( ctx context . Context , in * VersionReq , opts ... grpc . CallOption ) ( * VersionResp , error )
// ListRefresh lists all the refresh token entries for a particular user.
// ListRefresh lists all the refresh token entries for a particular user.
@ -145,6 +157,42 @@ func (c *dexClient) ListPasswords(ctx context.Context, in *ListPasswordReq, opts
return out , nil
return out , nil
}
}
func ( c * dexClient ) CreateConnector ( ctx context . Context , in * CreateConnectorReq , opts ... grpc . CallOption ) ( * CreateConnectorResp , error ) {
out := new ( CreateConnectorResp )
err := c . cc . Invoke ( ctx , Dex_CreateConnector_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * dexClient ) UpdateConnector ( ctx context . Context , in * UpdateConnectorReq , opts ... grpc . CallOption ) ( * UpdateConnectorResp , error ) {
out := new ( UpdateConnectorResp )
err := c . cc . Invoke ( ctx , Dex_UpdateConnector_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * dexClient ) DeleteConnector ( ctx context . Context , in * DeleteConnectorReq , opts ... grpc . CallOption ) ( * DeleteConnectorResp , error ) {
out := new ( DeleteConnectorResp )
err := c . cc . Invoke ( ctx , Dex_DeleteConnector_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * dexClient ) ListConnectors ( ctx context . Context , in * ListConnectorReq , opts ... grpc . CallOption ) ( * ListConnectorResp , error ) {
out := new ( ListConnectorResp )
err := c . cc . Invoke ( ctx , Dex_ListConnectors_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
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 ) {
out := new ( VersionResp )
out := new ( VersionResp )
err := c . cc . Invoke ( ctx , Dex_GetVersion_FullMethodName , in , out , opts ... )
err := c . cc . Invoke ( ctx , Dex_GetVersion_FullMethodName , in , out , opts ... )
@ -201,6 +249,14 @@ type DexServer interface {
DeletePassword ( context . Context , * DeletePasswordReq ) ( * DeletePasswordResp , error )
DeletePassword ( context . Context , * DeletePasswordReq ) ( * DeletePasswordResp , error )
// ListPassword lists all password entries.
// ListPassword lists all password entries.
ListPasswords ( context . Context , * ListPasswordReq ) ( * ListPasswordResp , error )
ListPasswords ( context . Context , * ListPasswordReq ) ( * ListPasswordResp , error )
// CreateConnector creates a connector.
CreateConnector ( context . Context , * CreateConnectorReq ) ( * CreateConnectorResp , error )
// UpdateConnector modifies existing connector.
UpdateConnector ( context . Context , * UpdateConnectorReq ) ( * UpdateConnectorResp , error )
// DeleteConnector deletes the connector.
DeleteConnector ( context . Context , * DeleteConnectorReq ) ( * DeleteConnectorResp , error )
// ListConnectors lists all connector entries.
ListConnectors ( context . Context , * ListConnectorReq ) ( * ListConnectorResp , error )
// GetVersion returns version information of the server.
// GetVersion returns version information of the server.
GetVersion ( context . Context , * VersionReq ) ( * VersionResp , error )
GetVersion ( context . Context , * VersionReq ) ( * VersionResp , error )
// ListRefresh lists all the refresh token entries for a particular user.
// ListRefresh lists all the refresh token entries for a particular user.
@ -242,6 +298,18 @@ func (UnimplementedDexServer) DeletePassword(context.Context, *DeletePasswordReq
func ( UnimplementedDexServer ) ListPasswords ( context . Context , * ListPasswordReq ) ( * ListPasswordResp , error ) {
func ( UnimplementedDexServer ) ListPasswords ( context . Context , * ListPasswordReq ) ( * ListPasswordResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListPasswords not implemented" )
return nil , status . Errorf ( codes . Unimplemented , "method ListPasswords not implemented" )
}
}
func ( UnimplementedDexServer ) CreateConnector ( context . Context , * CreateConnectorReq ) ( * CreateConnectorResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateConnector not implemented" )
}
func ( UnimplementedDexServer ) UpdateConnector ( context . Context , * UpdateConnectorReq ) ( * UpdateConnectorResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateConnector not implemented" )
}
func ( UnimplementedDexServer ) DeleteConnector ( context . Context , * DeleteConnectorReq ) ( * DeleteConnectorResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeleteConnector not implemented" )
}
func ( UnimplementedDexServer ) ListConnectors ( context . Context , * ListConnectorReq ) ( * ListConnectorResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListConnectors not implemented" )
}
func ( UnimplementedDexServer ) GetVersion ( context . Context , * VersionReq ) ( * VersionResp , error ) {
func ( UnimplementedDexServer ) GetVersion ( context . Context , * VersionReq ) ( * VersionResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetVersion not implemented" )
return nil , status . Errorf ( codes . Unimplemented , "method GetVersion not implemented" )
}
}
@ -411,6 +479,78 @@ func _Dex_ListPasswords_Handler(srv interface{}, ctx context.Context, dec func(i
return interceptor ( ctx , in , info , handler )
return interceptor ( ctx , in , info , handler )
}
}
func _Dex_CreateConnector_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CreateConnectorReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( DexServer ) . CreateConnector ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Dex_CreateConnector_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( DexServer ) . CreateConnector ( ctx , req . ( * CreateConnectorReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Dex_UpdateConnector_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdateConnectorReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( DexServer ) . UpdateConnector ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Dex_UpdateConnector_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( DexServer ) . UpdateConnector ( ctx , req . ( * UpdateConnectorReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Dex_DeleteConnector_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteConnectorReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( DexServer ) . DeleteConnector ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Dex_DeleteConnector_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( DexServer ) . DeleteConnector ( ctx , req . ( * DeleteConnectorReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Dex_ListConnectors_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListConnectorReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( DexServer ) . ListConnectors ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Dex_ListConnectors_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( DexServer ) . ListConnectors ( ctx , req . ( * ListConnectorReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Dex_GetVersion_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
func _Dex_GetVersion_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( VersionReq )
in := new ( VersionReq )
if err := dec ( in ) ; err != nil {
if err := dec ( in ) ; err != nil {
@ -522,6 +662,22 @@ var Dex_ServiceDesc = grpc.ServiceDesc{
MethodName : "ListPasswords" ,
MethodName : "ListPasswords" ,
Handler : _Dex_ListPasswords_Handler ,
Handler : _Dex_ListPasswords_Handler ,
} ,
} ,
{
MethodName : "CreateConnector" ,
Handler : _Dex_CreateConnector_Handler ,
} ,
{
MethodName : "UpdateConnector" ,
Handler : _Dex_UpdateConnector_Handler ,
} ,
{
MethodName : "DeleteConnector" ,
Handler : _Dex_DeleteConnector_Handler ,
} ,
{
MethodName : "ListConnectors" ,
Handler : _Dex_ListConnectors_Handler ,
} ,
{
{
MethodName : "GetVersion" ,
MethodName : "GetVersion" ,
Handler : _Dex_GetVersion_Handler ,
Handler : _Dex_GetVersion_Handler ,