idp

package
v1.0.7-herb-remove-grpc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package idp is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	IDPService_CreateIDP_FullMethodName    = "/proto.oidc.idp.IDPService/CreateIDP"
	IDPService_GetIDP_FullMethodName       = "/proto.oidc.idp.IDPService/GetIDP"
	IDPService_GetIDPBySlug_FullMethodName = "/proto.oidc.idp.IDPService/GetIDPBySlug"
	IDPService_DeleteIDP_FullMethodName    = "/proto.oidc.idp.IDPService/DeleteIDP"
	IDPService_UpdateIDP_FullMethodName    = "/proto.oidc.idp.IDPService/UpdateIDP"
	IDPService_ListIDP_FullMethodName      = "/proto.oidc.idp.IDPService/ListIDP"
)

Variables

View Source
var File_proto_oidc_idp_idp_proto protoreflect.FileDescriptor
View Source
var IDPService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.oidc.idp.IDPService",
	HandlerType: (*IDPServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateIDP",
			Handler:    _IDPService_CreateIDP_Handler,
		},
		{
			MethodName: "GetIDP",
			Handler:    _IDPService_GetIDP_Handler,
		},
		{
			MethodName: "GetIDPBySlug",
			Handler:    _IDPService_GetIDPBySlug_Handler,
		},
		{
			MethodName: "DeleteIDP",
			Handler:    _IDPService_DeleteIDP_Handler,
		},
		{
			MethodName: "UpdateIDP",
			Handler:    _IDPService_UpdateIDP_Handler,
		},
		{
			MethodName: "ListIDP",
			Handler:    _IDPService_ListIDP_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/oidc/idp/idp.proto",
}

IDPService_ServiceDesc is the grpc.ServiceDesc for IDPService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func AddIDPServiceServer

func AddIDPServiceServer(cb fluffy_dozm_di.ContainerBuilder, ctor any)

AddIDPServiceServer adds the fluffycore aware grpc server

func AddIDPServiceServerWithExternalRegistration

func AddIDPServiceServerWithExternalRegistration(cb fluffy_dozm_di.ContainerBuilder, ctor any, register func() endpoint.IEndpointRegistration)

AddIDPServiceServerWithExternalRegistration adds the fluffycore aware grpc server and external registration service. Mainly used for grpc-gateway

func RegisterIDPServiceHandler

func RegisterIDPServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterIDPServiceHandler registers the http handlers for service IDPService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterIDPServiceHandlerClient

func RegisterIDPServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IDPServiceClient) error

RegisterIDPServiceHandlerClient registers the http handlers for service IDPService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IDPServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IDPServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "IDPServiceClient" to call the correct interceptors.

func RegisterIDPServiceHandlerFromEndpoint

func RegisterIDPServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterIDPServiceHandlerFromEndpoint is same as RegisterIDPServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterIDPServiceHandlerServer

func RegisterIDPServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IDPServiceServer) error

RegisterIDPServiceHandlerServer registers the http handlers for service IDPService to "mux". UnaryRPC :call IDPServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterIDPServiceHandlerFromEndpoint instead.

func RegisterIDPServiceServer

func RegisterIDPServiceServer(s grpc.ServiceRegistrar, srv IDPServiceServer)

Types

type CreateIDPRequest

type CreateIDPRequest struct {
	Idp *models.IDP `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateIDPRequest) Descriptor deprecated

func (*CreateIDPRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateIDPRequest.ProtoReflect.Descriptor instead.

func (*CreateIDPRequest) GetIdp

func (x *CreateIDPRequest) GetIdp() *models.IDP

func (*CreateIDPRequest) ProtoMessage

func (*CreateIDPRequest) ProtoMessage()

func (*CreateIDPRequest) ProtoReflect

func (x *CreateIDPRequest) ProtoReflect() protoreflect.Message

func (*CreateIDPRequest) Reset

func (x *CreateIDPRequest) Reset()

func (*CreateIDPRequest) String

func (x *CreateIDPRequest) String() string

type CreateIDPResponse

type CreateIDPResponse struct {
	Idp *models.IDP `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateIDPResponse) Descriptor deprecated

func (*CreateIDPResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateIDPResponse.ProtoReflect.Descriptor instead.

func (*CreateIDPResponse) GetIdp

func (x *CreateIDPResponse) GetIdp() *models.IDP

func (*CreateIDPResponse) ProtoMessage

func (*CreateIDPResponse) ProtoMessage()

func (*CreateIDPResponse) ProtoReflect

func (x *CreateIDPResponse) ProtoReflect() protoreflect.Message

func (*CreateIDPResponse) Reset

func (x *CreateIDPResponse) Reset()

func (*CreateIDPResponse) String

func (x *CreateIDPResponse) String() string

type DeleteIDPRequest

type DeleteIDPRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteIDPRequest) Descriptor deprecated

func (*DeleteIDPRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteIDPRequest.ProtoReflect.Descriptor instead.

func (*DeleteIDPRequest) GetId

func (x *DeleteIDPRequest) GetId() string

func (*DeleteIDPRequest) ProtoMessage

func (*DeleteIDPRequest) ProtoMessage()

func (*DeleteIDPRequest) ProtoReflect

func (x *DeleteIDPRequest) ProtoReflect() protoreflect.Message

func (*DeleteIDPRequest) Reset

func (x *DeleteIDPRequest) Reset()

func (*DeleteIDPRequest) String

func (x *DeleteIDPRequest) String() string

type DeleteIDPResponse

type DeleteIDPResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteIDPResponse) Descriptor deprecated

func (*DeleteIDPResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteIDPResponse.ProtoReflect.Descriptor instead.

func (*DeleteIDPResponse) ProtoMessage

func (*DeleteIDPResponse) ProtoMessage()

func (*DeleteIDPResponse) ProtoReflect

func (x *DeleteIDPResponse) ProtoReflect() protoreflect.Message

func (*DeleteIDPResponse) Reset

func (x *DeleteIDPResponse) Reset()

func (*DeleteIDPResponse) String

func (x *DeleteIDPResponse) String() string

type Filter

type Filter struct {
	Slug                      *types.StringFilterExpression          `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"`
	Name                      *types.StringFilterExpression          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description               *types.StringFilterExpression          `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Metadata                  *types.StringMapStringFilterExpression `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Enabled                   *types.BoolFilterExpression            `protobuf:"bytes,5,opt,name=enabled,proto3" json:"enabled,omitempty"`
	ClaimedDomain             *types.StringArrayFilterExpression     `protobuf:"bytes,6,opt,name=claimed_domain,json=claimedDomain,proto3" json:"claimed_domain,omitempty"`
	Hidden                    *types.BoolFilterExpression            `protobuf:"bytes,7,opt,name=hidden,proto3" json:"hidden,omitempty"`
	EmailVerificationRequired *types.BoolFilterExpression            `` /* 138-byte string literal not displayed */
	AutoCreate                *types.BoolFilterExpression            `protobuf:"bytes,9,opt,name=auto_create,json=autoCreate,proto3" json:"auto_create,omitempty"`
	// AST
	And []*Filter `protobuf:"bytes,100,rep,name=and,proto3" json:"and,omitempty"`
	Or  []*Filter `protobuf:"bytes,101,rep,name=or,proto3" json:"or,omitempty"`
	Not []*Filter `protobuf:"bytes,102,rep,name=not,proto3" json:"not,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

func (*Filter) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetAnd

func (x *Filter) GetAnd() []*Filter

func (*Filter) GetAutoCreate

func (x *Filter) GetAutoCreate() *types.BoolFilterExpression

func (*Filter) GetClaimedDomain

func (x *Filter) GetClaimedDomain() *types.StringArrayFilterExpression

func (*Filter) GetDescription

func (x *Filter) GetDescription() *types.StringFilterExpression

func (*Filter) GetEmailVerificationRequired

func (x *Filter) GetEmailVerificationRequired() *types.BoolFilterExpression

func (*Filter) GetEnabled

func (x *Filter) GetEnabled() *types.BoolFilterExpression

func (*Filter) GetHidden

func (x *Filter) GetHidden() *types.BoolFilterExpression

func (*Filter) GetMetadata

func (x *Filter) GetMetadata() *types.StringMapStringFilterExpression

func (*Filter) GetName

func (x *Filter) GetName() *types.StringFilterExpression

func (*Filter) GetNot

func (x *Filter) GetNot() []*Filter

func (*Filter) GetOr

func (x *Filter) GetOr() []*Filter

func (*Filter) GetSlug

func (x *Filter) GetSlug() *types.StringFilterExpression

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

func (x *Filter) ProtoReflect() protoreflect.Message

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

type GetIDPBySlugRequest

type GetIDPBySlugRequest struct {
	Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIDPBySlugRequest) Descriptor deprecated

func (*GetIDPBySlugRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetIDPBySlugRequest.ProtoReflect.Descriptor instead.

func (*GetIDPBySlugRequest) GetSlug

func (x *GetIDPBySlugRequest) GetSlug() string

func (*GetIDPBySlugRequest) ProtoMessage

func (*GetIDPBySlugRequest) ProtoMessage()

func (*GetIDPBySlugRequest) ProtoReflect

func (x *GetIDPBySlugRequest) ProtoReflect() protoreflect.Message

func (*GetIDPBySlugRequest) Reset

func (x *GetIDPBySlugRequest) Reset()

func (*GetIDPBySlugRequest) String

func (x *GetIDPBySlugRequest) String() string

type GetIDPBySlugResponse

type GetIDPBySlugResponse struct {
	Idp *models.IDP `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIDPBySlugResponse) Descriptor deprecated

func (*GetIDPBySlugResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetIDPBySlugResponse.ProtoReflect.Descriptor instead.

func (*GetIDPBySlugResponse) GetIdp

func (x *GetIDPBySlugResponse) GetIdp() *models.IDP

func (*GetIDPBySlugResponse) ProtoMessage

func (*GetIDPBySlugResponse) ProtoMessage()

func (*GetIDPBySlugResponse) ProtoReflect

func (x *GetIDPBySlugResponse) ProtoReflect() protoreflect.Message

func (*GetIDPBySlugResponse) Reset

func (x *GetIDPBySlugResponse) Reset()

func (*GetIDPBySlugResponse) String

func (x *GetIDPBySlugResponse) String() string

type GetIDPRequest

type GetIDPRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIDPRequest) Descriptor deprecated

func (*GetIDPRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetIDPRequest.ProtoReflect.Descriptor instead.

func (*GetIDPRequest) GetId

func (x *GetIDPRequest) GetId() string

func (*GetIDPRequest) ProtoMessage

func (*GetIDPRequest) ProtoMessage()

func (*GetIDPRequest) ProtoReflect

func (x *GetIDPRequest) ProtoReflect() protoreflect.Message

func (*GetIDPRequest) Reset

func (x *GetIDPRequest) Reset()

func (*GetIDPRequest) String

func (x *GetIDPRequest) String() string

type GetIDPResponse

type GetIDPResponse struct {
	Idp *models.IDP `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIDPResponse) Descriptor deprecated

func (*GetIDPResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetIDPResponse.ProtoReflect.Descriptor instead.

func (*GetIDPResponse) GetIdp

func (x *GetIDPResponse) GetIdp() *models.IDP

func (*GetIDPResponse) ProtoMessage

func (*GetIDPResponse) ProtoMessage()

func (*GetIDPResponse) ProtoReflect

func (x *GetIDPResponse) ProtoReflect() protoreflect.Message

func (*GetIDPResponse) Reset

func (x *GetIDPResponse) Reset()

func (*GetIDPResponse) String

func (x *GetIDPResponse) String() string

type IDPServiceClient

type IDPServiceClient interface {
	// Create idp
	CreateIDP(ctx context.Context, in *CreateIDPRequest, opts ...grpc.CallOption) (*CreateIDPResponse, error)
	// Get idp
	GetIDP(ctx context.Context, in *GetIDPRequest, opts ...grpc.CallOption) (*GetIDPResponse, error)
	// Get idp
	GetIDPBySlug(ctx context.Context, in *GetIDPBySlugRequest, opts ...grpc.CallOption) (*GetIDPBySlugResponse, error)
	// Delete idp
	DeleteIDP(ctx context.Context, in *DeleteIDPRequest, opts ...grpc.CallOption) (*DeleteIDPResponse, error)
	// Update idp
	UpdateIDP(ctx context.Context, in *UpdateIDPRequest, opts ...grpc.CallOption) (*UpdateIDPResponse, error)
	// List idps
	ListIDP(ctx context.Context, in *ListIDPRequest, opts ...grpc.CallOption) (*ListIDPResponse, error)
}

IDPServiceClient is the client API for IDPService 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.

func NewIDPServiceClient

func NewIDPServiceClient(cc grpc.ClientConnInterface) IDPServiceClient

type IDPServiceFluffyCoreServer

IDPServiceFluffyCoreServer defines the grpc server truct

func (*IDPServiceFluffyCoreServer) CreateIDP

CreateIDP...

func (*IDPServiceFluffyCoreServer) DeleteIDP

DeleteIDP...

func (*IDPServiceFluffyCoreServer) GetIDP

GetIDP...

func (*IDPServiceFluffyCoreServer) GetIDPBySlug

GetIDPBySlug...

func (*IDPServiceFluffyCoreServer) ListIDP

ListIDP...

func (*IDPServiceFluffyCoreServer) RegisterFluffyCoreGRPCService

func (srv *IDPServiceFluffyCoreServer) RegisterFluffyCoreGRPCService(s *grpc.Server)

RegisterFluffyCoreGRPCService the server with grpc

func (*IDPServiceFluffyCoreServer) UpdateIDP

UpdateIDP...

type IDPServiceServer

type IDPServiceServer interface {
	// Create idp
	CreateIDP(context.Context, *CreateIDPRequest) (*CreateIDPResponse, error)
	// Get idp
	GetIDP(context.Context, *GetIDPRequest) (*GetIDPResponse, error)
	// Get idp
	GetIDPBySlug(context.Context, *GetIDPBySlugRequest) (*GetIDPBySlugResponse, error)
	// Delete idp
	DeleteIDP(context.Context, *DeleteIDPRequest) (*DeleteIDPResponse, error)
	// Update idp
	UpdateIDP(context.Context, *UpdateIDPRequest) (*UpdateIDPResponse, error)
	// List idps
	ListIDP(context.Context, *ListIDPRequest) (*ListIDPResponse, error)
	// contains filtered or unexported methods
}

IDPServiceServer is the server API for IDPService service. All implementations must embed UnimplementedIDPServiceServer for forward compatibility

type IFluffyCoreIDPServiceServer

type IFluffyCoreIDPServiceServer interface {
	IDPServiceServer
}

IFluffyCoreIDPServiceServer defines the grpc server

type ListIDPRequest

type ListIDPRequest struct {

	// Filter
	Filter *Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// Pagination
	Pagination *types.Pagination `protobuf:"bytes,100,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListIDPRequest) Descriptor deprecated

func (*ListIDPRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListIDPRequest.ProtoReflect.Descriptor instead.

func (*ListIDPRequest) GetFilter

func (x *ListIDPRequest) GetFilter() *Filter

func (*ListIDPRequest) GetPagination

func (x *ListIDPRequest) GetPagination() *types.Pagination

func (*ListIDPRequest) ProtoMessage

func (*ListIDPRequest) ProtoMessage()

func (*ListIDPRequest) ProtoReflect

func (x *ListIDPRequest) ProtoReflect() protoreflect.Message

func (*ListIDPRequest) Reset

func (x *ListIDPRequest) Reset()

func (*ListIDPRequest) String

func (x *ListIDPRequest) String() string

type ListIDPResponse

type ListIDPResponse struct {
	Idps []*models.IDP `protobuf:"bytes,1,rep,name=idps,proto3" json:"idps,omitempty"`
	// Pagination details
	Pagination *types.PaginationResponse `protobuf:"bytes,100,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListIDPResponse) Descriptor deprecated

func (*ListIDPResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListIDPResponse.ProtoReflect.Descriptor instead.

func (*ListIDPResponse) GetIdps

func (x *ListIDPResponse) GetIdps() []*models.IDP

func (*ListIDPResponse) GetPagination

func (x *ListIDPResponse) GetPagination() *types.PaginationResponse

func (*ListIDPResponse) ProtoMessage

func (*ListIDPResponse) ProtoMessage()

func (*ListIDPResponse) ProtoReflect

func (x *ListIDPResponse) ProtoReflect() protoreflect.Message

func (*ListIDPResponse) Reset

func (x *ListIDPResponse) Reset()

func (*ListIDPResponse) String

func (x *ListIDPResponse) String() string

type UnimplementedFluffyCoreIDPServiceServerEndpointRegistration

type UnimplementedFluffyCoreIDPServiceServerEndpointRegistration struct {
}

func (UnimplementedFluffyCoreIDPServiceServerEndpointRegistration) RegisterFluffyCoreHandler

type UnimplementedIDPServiceServer

type UnimplementedIDPServiceServer struct {
}

UnimplementedIDPServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedIDPServiceServer) CreateIDP

func (UnimplementedIDPServiceServer) DeleteIDP

func (UnimplementedIDPServiceServer) GetIDP

func (UnimplementedIDPServiceServer) GetIDPBySlug

func (UnimplementedIDPServiceServer) ListIDP

func (UnimplementedIDPServiceServer) UpdateIDP

type UnsafeIDPServiceServer

type UnsafeIDPServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIDPServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IDPServiceServer will result in compilation errors.

type UpdateIDPRequest

type UpdateIDPRequest struct {
	Idp *models.IDPUpdate `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateIDPRequest) Descriptor deprecated

func (*UpdateIDPRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateIDPRequest.ProtoReflect.Descriptor instead.

func (*UpdateIDPRequest) GetIdp

func (x *UpdateIDPRequest) GetIdp() *models.IDPUpdate

func (*UpdateIDPRequest) ProtoMessage

func (*UpdateIDPRequest) ProtoMessage()

func (*UpdateIDPRequest) ProtoReflect

func (x *UpdateIDPRequest) ProtoReflect() protoreflect.Message

func (*UpdateIDPRequest) Reset

func (x *UpdateIDPRequest) Reset()

func (*UpdateIDPRequest) String

func (x *UpdateIDPRequest) String() string

type UpdateIDPResponse

type UpdateIDPResponse struct {
	Idp *models.IDP `protobuf:"bytes,1,opt,name=idp,proto3" json:"idp,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateIDPResponse) Descriptor deprecated

func (*UpdateIDPResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateIDPResponse.ProtoReflect.Descriptor instead.

func (*UpdateIDPResponse) GetIdp

func (x *UpdateIDPResponse) GetIdp() *models.IDP

func (*UpdateIDPResponse) ProtoMessage

func (*UpdateIDPResponse) ProtoMessage()

func (*UpdateIDPResponse) ProtoReflect

func (x *UpdateIDPResponse) ProtoReflect() protoreflect.Message

func (*UpdateIDPResponse) Reset

func (x *UpdateIDPResponse) Reset()

func (*UpdateIDPResponse) String

func (x *UpdateIDPResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL