Documentation ¶
Overview ¶
Package identityv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterIdentityServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterIdentityServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IdentityServiceClient) error
- func RegisterIdentityServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterIdentityServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IdentityServiceServer) error
- func RegisterIdentityServiceServer(s grpc.ServiceRegistrar, srv IdentityServiceServer)
- type IdentityRequest
- func (*IdentityRequest) Descriptor() ([]byte, []int)deprecated
- func (*IdentityRequest) ProtoMessage()
- func (x *IdentityRequest) ProtoReflect() protoreflect.Message
- func (x *IdentityRequest) Reset()
- func (x *IdentityRequest) String() string
- func (m *IdentityRequest) Validate() error
- func (m *IdentityRequest) ValidateAll() error
- type IdentityRequestMultiError
- type IdentityRequestValidationError
- func (e IdentityRequestValidationError) Cause() error
- func (e IdentityRequestValidationError) Error() string
- func (e IdentityRequestValidationError) ErrorName() string
- func (e IdentityRequestValidationError) Field() string
- func (e IdentityRequestValidationError) Key() bool
- func (e IdentityRequestValidationError) Reason() string
- type IdentityResponse
- func (*IdentityResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityResponse) GetAccessToken() *v1.AccessToken
- func (x *IdentityResponse) GetAccessibleNamespaces() []string
- func (*IdentityResponse) ProtoMessage()
- func (x *IdentityResponse) ProtoReflect() protoreflect.Message
- func (x *IdentityResponse) Reset()
- func (x *IdentityResponse) String() string
- func (m *IdentityResponse) Validate() error
- func (m *IdentityResponse) ValidateAll() error
- type IdentityResponseMultiError
- type IdentityResponseValidationError
- func (e IdentityResponseValidationError) Cause() error
- func (e IdentityResponseValidationError) Error() string
- func (e IdentityResponseValidationError) ErrorName() string
- func (e IdentityResponseValidationError) Field() string
- func (e IdentityResponseValidationError) Key() bool
- func (e IdentityResponseValidationError) Reason() string
- type IdentityServiceClient
- type IdentityServiceServer
- type UnimplementedIdentityServiceServer
- type UnsafeIdentityServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_identity_v1_identity_proto protoreflect.FileDescriptor
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 ¶
func (m IdentityRequestMultiError) Error() string
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 ¶
func (e IdentityRequestValidationError) Cause() error
Cause function returns cause value.
func (IdentityRequestValidationError) Error ¶
func (e IdentityRequestValidationError) Error() string
Error satisfies the builtin error interface
func (IdentityRequestValidationError) ErrorName ¶
func (e IdentityRequestValidationError) ErrorName() string
ErrorName returns error name.
func (IdentityRequestValidationError) Field ¶
func (e IdentityRequestValidationError) Field() string
Field function returns field value.
func (IdentityRequestValidationError) Key ¶
func (e IdentityRequestValidationError) Key() bool
Key function returns key value.
func (IdentityRequestValidationError) Reason ¶
func (e IdentityRequestValidationError) Reason() string
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 ¶
func (m IdentityResponseMultiError) Error() string
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 ¶
func (e IdentityResponseValidationError) Cause() error
Cause function returns cause value.
func (IdentityResponseValidationError) Error ¶
func (e IdentityResponseValidationError) Error() string
Error satisfies the builtin error interface
func (IdentityResponseValidationError) ErrorName ¶
func (e IdentityResponseValidationError) ErrorName() string
ErrorName returns error name.
func (IdentityResponseValidationError) Field ¶
func (e IdentityResponseValidationError) Field() string
Field function returns field value.
func (IdentityResponseValidationError) Key ¶
func (e IdentityResponseValidationError) Key() bool
Key function returns key value.
func (IdentityResponseValidationError) Reason ¶
func (e IdentityResponseValidationError) Reason() string
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.
func NewIdentityServiceClient ¶
func NewIdentityServiceClient(cc grpc.ClientConnInterface) IdentityServiceClient
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 ¶
func (UnimplementedIdentityServiceServer) Identity(context.Context, *IdentityRequest) (*IdentityResponse, error)
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.