identityv1

package
v0.0.0-...-7fcfa66 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package identityv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_identity_v1_identity_proto protoreflect.FileDescriptor
View Source
var IdentityService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tstr.identity.v1.IdentityService",
	HandlerType: (*IdentityServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Identity",
			Handler:    _IdentityService_Identity_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "identity/v1/identity.proto",
}

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

Functions

func RegisterIdentityServiceHandler

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

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

func RegisterIdentityServiceHandlerClient

func RegisterIdentityServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IdentityServiceClient) error

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

func RegisterIdentityServiceHandlerFromEndpoint

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

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

func RegisterIdentityServiceHandlerServer

func RegisterIdentityServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IdentityServiceServer) error

RegisterIdentityServiceHandlerServer registers the http handlers for service IdentityService to "mux". UnaryRPC :call IdentityServiceServer 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 RegisterIdentityServiceHandlerFromEndpoint instead.

func RegisterIdentityServiceServer

func RegisterIdentityServiceServer(s grpc.ServiceRegistrar, srv IdentityServiceServer)

Types

type IdentityRequest

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

func (*IdentityRequest) Descriptor deprecated

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

Deprecated: Use IdentityRequest.ProtoReflect.Descriptor instead.

func (*IdentityRequest) ProtoMessage

func (*IdentityRequest) ProtoMessage()

func (*IdentityRequest) ProtoReflect

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

func (*IdentityRequest) Reset

func (x *IdentityRequest) Reset()

func (*IdentityRequest) String

func (x *IdentityRequest) String() string

func (*IdentityRequest) Validate

func (m *IdentityRequest) Validate() error

Validate checks the field values on IdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*IdentityRequest) ValidateAll

func (m *IdentityRequest) ValidateAll() error

ValidateAll checks the field values on IdentityRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IdentityRequestMultiError, or nil if none found.

type IdentityRequestMultiError

type IdentityRequestMultiError []error

IdentityRequestMultiError is an error wrapping multiple validation errors returned by IdentityRequest.ValidateAll() if the designated constraints aren't met.

func (IdentityRequestMultiError) AllErrors

func (m IdentityRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IdentityRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type IdentityRequestValidationError

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

IdentityRequestValidationError is the validation error returned by IdentityRequest.Validate if the designated constraints aren't met.

func (IdentityRequestValidationError) Cause

Cause function returns cause value.

func (IdentityRequestValidationError) Error

Error satisfies the builtin error interface

func (IdentityRequestValidationError) ErrorName

func (e IdentityRequestValidationError) ErrorName() string

ErrorName returns error name.

func (IdentityRequestValidationError) Field

Field function returns field value.

func (IdentityRequestValidationError) Key

Key function returns key value.

func (IdentityRequestValidationError) Reason

Reason function returns reason value.

type IdentityResponse

type IdentityResponse struct {
	AccessToken          *v1.AccessToken `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	AccessibleNamespaces []string        `protobuf:"bytes,2,rep,name=accessible_namespaces,json=accessibleNamespaces,proto3" json:"accessible_namespaces,omitempty"`
	// contains filtered or unexported fields
}

func (*IdentityResponse) Descriptor deprecated

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

Deprecated: Use IdentityResponse.ProtoReflect.Descriptor instead.

func (*IdentityResponse) GetAccessToken

func (x *IdentityResponse) GetAccessToken() *v1.AccessToken

func (*IdentityResponse) GetAccessibleNamespaces

func (x *IdentityResponse) GetAccessibleNamespaces() []string

func (*IdentityResponse) ProtoMessage

func (*IdentityResponse) ProtoMessage()

func (*IdentityResponse) ProtoReflect

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

func (*IdentityResponse) Reset

func (x *IdentityResponse) Reset()

func (*IdentityResponse) String

func (x *IdentityResponse) String() string

func (*IdentityResponse) Validate

func (m *IdentityResponse) Validate() error

Validate checks the field values on IdentityResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*IdentityResponse) ValidateAll

func (m *IdentityResponse) ValidateAll() error

ValidateAll checks the field values on IdentityResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IdentityResponseMultiError, or nil if none found.

type IdentityResponseMultiError

type IdentityResponseMultiError []error

IdentityResponseMultiError is an error wrapping multiple validation errors returned by IdentityResponse.ValidateAll() if the designated constraints aren't met.

func (IdentityResponseMultiError) AllErrors

func (m IdentityResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IdentityResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type IdentityResponseValidationError

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

IdentityResponseValidationError is the validation error returned by IdentityResponse.Validate if the designated constraints aren't met.

func (IdentityResponseValidationError) Cause

Cause function returns cause value.

func (IdentityResponseValidationError) Error

Error satisfies the builtin error interface

func (IdentityResponseValidationError) ErrorName

ErrorName returns error name.

func (IdentityResponseValidationError) Field

Field function returns field value.

func (IdentityResponseValidationError) Key

Key function returns key value.

func (IdentityResponseValidationError) Reason

Reason function returns reason value.

type IdentityServiceClient

type IdentityServiceClient interface {
	Identity(ctx context.Context, in *IdentityRequest, opts ...grpc.CallOption) (*IdentityResponse, error)
}

IdentityServiceClient is the client API for IdentityService 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 IdentityServiceServer

type IdentityServiceServer interface {
	Identity(context.Context, *IdentityRequest) (*IdentityResponse, error)
	// contains filtered or unexported methods
}

IdentityServiceServer is the server API for IdentityService service. All implementations must embed UnimplementedIdentityServiceServer for forward compatibility

type UnimplementedIdentityServiceServer

type UnimplementedIdentityServiceServer struct {
}

UnimplementedIdentityServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedIdentityServiceServer) Identity

type UnsafeIdentityServiceServer

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

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

Jump to

Keyboard shortcuts

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