Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterReviewServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterReviewServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReviewServiceClient) error
- func RegisterReviewServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReviewServiceServer) error
- func RegisterReviewServiceServer(s grpc.ServiceRegistrar, srv ReviewServiceServer)
- type CreateReviewRequest
- func (*CreateReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReviewRequest) GetReview() *v1alpha1.Review
- func (*CreateReviewRequest) ProtoMessage()
- func (x *CreateReviewRequest) ProtoReflect() protoreflect.Message
- func (x *CreateReviewRequest) Reset()
- func (x *CreateReviewRequest) String() string
- type CreateReviewResponse
- type DeleteReviewRequest
- func (*DeleteReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteReviewRequest) GetLabels() map[string]string
- func (x *DeleteReviewRequest) GetName() string
- func (x *DeleteReviewRequest) GetNamespace() string
- func (*DeleteReviewRequest) ProtoMessage()
- func (x *DeleteReviewRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteReviewRequest) Reset()
- func (x *DeleteReviewRequest) String() string
- type DeleteReviewResponse
- type GetReviewRequest
- func (*GetReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReviewRequest) GetLabels() map[string]string
- func (x *GetReviewRequest) GetName() string
- func (x *GetReviewRequest) GetNamespace() string
- func (*GetReviewRequest) ProtoMessage()
- func (x *GetReviewRequest) ProtoReflect() protoreflect.Message
- func (x *GetReviewRequest) Reset()
- func (x *GetReviewRequest) String() string
- type GetReviewResponse
- func (*GetReviewResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReviewResponse) GetReview() *v1alpha1.Review
- func (x *GetReviewResponse) GetYaml() string
- func (*GetReviewResponse) ProtoMessage()
- func (x *GetReviewResponse) ProtoReflect() protoreflect.Message
- func (x *GetReviewResponse) Reset()
- func (x *GetReviewResponse) String() string
- type ListReviewRequest
- func (*ListReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListReviewRequest) GetLabels() map[string]string
- func (x *ListReviewRequest) GetNamespace() string
- func (x *ListReviewRequest) GetPageSize() int32
- func (x *ListReviewRequest) GetPageToken() string
- func (*ListReviewRequest) ProtoMessage()
- func (x *ListReviewRequest) ProtoReflect() protoreflect.Message
- func (x *ListReviewRequest) Reset()
- func (x *ListReviewRequest) String() string
- type ListReviewResponse
- func (*ListReviewResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListReviewResponse) GetNextPageToken() string
- func (x *ListReviewResponse) GetReviewes() *v1alpha1.ReviewList
- func (*ListReviewResponse) ProtoMessage()
- func (x *ListReviewResponse) ProtoReflect() protoreflect.Message
- func (x *ListReviewResponse) Reset()
- func (x *ListReviewResponse) String() string
- type ReviewServiceClient
- type ReviewServiceServer
- type UnimplementedReviewServiceServer
- func (UnimplementedReviewServiceServer) CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewResponse, error)
- func (UnimplementedReviewServiceServer) DeleteReview(context.Context, *DeleteReviewRequest) (*DeleteReviewResponse, error)
- func (UnimplementedReviewServiceServer) GetReview(context.Context, *GetReviewRequest) (*GetReviewResponse, error)
- func (UnimplementedReviewServiceServer) ListReviews(context.Context, *ListReviewRequest) (*ListReviewResponse, error)
- func (UnimplementedReviewServiceServer) UpdateReview(context.Context, *UpdateReviewRequest) (*UpdateReviewResponse, error)
- type UnsafeReviewServiceServer
- type UpdateReviewRequest
- func (*UpdateReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReviewRequest) GetFieldMask() *field_mask.FieldMask
- func (x *UpdateReviewRequest) GetReview() *v1alpha1.Review
- func (*UpdateReviewRequest) ProtoMessage()
- func (x *UpdateReviewRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateReviewRequest) Reset()
- func (x *UpdateReviewRequest) String() string
- type UpdateReviewResponse
Constants ¶
This section is empty.
Variables ¶
var File_github_com_metaprov_modelaapi_services_review_v1_review_proto protoreflect.FileDescriptor
var ReviewService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.metaprov.modelaapi.services.review.v1.ReviewService", HandlerType: (*ReviewServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListReviews", Handler: _ReviewService_ListReviews_Handler, }, { MethodName: "CreateReview", Handler: _ReviewService_CreateReview_Handler, }, { MethodName: "GetReview", Handler: _ReviewService_GetReview_Handler, }, { MethodName: "UpdateReview", Handler: _ReviewService_UpdateReview_Handler, }, { MethodName: "DeleteReview", Handler: _ReviewService_DeleteReview_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/metaprov/modelaapi/services/review/v1/review.proto", }
ReviewService_ServiceDesc is the grpc.ServiceDesc for ReviewService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReviewServiceHandler ¶ added in v0.4.687
func RegisterReviewServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterReviewServiceHandler registers the http handlers for service ReviewService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterReviewServiceHandlerClient ¶ added in v0.4.687
func RegisterReviewServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReviewServiceClient) error
RegisterReviewServiceHandlerClient registers the http handlers for service ReviewService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ReviewServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ReviewServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ReviewServiceClient" to call the correct interceptors.
func RegisterReviewServiceHandlerFromEndpoint ¶ added in v0.4.687
func RegisterReviewServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterReviewServiceHandlerFromEndpoint is same as RegisterReviewServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterReviewServiceHandlerServer ¶ added in v0.4.687
func RegisterReviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReviewServiceServer) error
RegisterReviewServiceHandlerServer registers the http handlers for service ReviewService to "mux". UnaryRPC :call ReviewServiceServer 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 RegisterReviewServiceHandlerFromEndpoint instead.
func RegisterReviewServiceServer ¶
func RegisterReviewServiceServer(s grpc.ServiceRegistrar, srv ReviewServiceServer)
Types ¶
type CreateReviewRequest ¶
type CreateReviewRequest struct { Review *v1alpha1.Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"` // contains filtered or unexported fields }
func (*CreateReviewRequest) Descriptor
deprecated
func (*CreateReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateReviewRequest.ProtoReflect.Descriptor instead.
func (*CreateReviewRequest) GetReview ¶ added in v0.4.472
func (x *CreateReviewRequest) GetReview() *v1alpha1.Review
func (*CreateReviewRequest) ProtoMessage ¶
func (*CreateReviewRequest) ProtoMessage()
func (*CreateReviewRequest) ProtoReflect ¶
func (x *CreateReviewRequest) ProtoReflect() protoreflect.Message
func (*CreateReviewRequest) Reset ¶
func (x *CreateReviewRequest) Reset()
func (*CreateReviewRequest) String ¶
func (x *CreateReviewRequest) String() string
type CreateReviewResponse ¶
type CreateReviewResponse struct {
// contains filtered or unexported fields
}
func (*CreateReviewResponse) Descriptor
deprecated
func (*CreateReviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateReviewResponse.ProtoReflect.Descriptor instead.
func (*CreateReviewResponse) ProtoMessage ¶
func (*CreateReviewResponse) ProtoMessage()
func (*CreateReviewResponse) ProtoReflect ¶
func (x *CreateReviewResponse) ProtoReflect() protoreflect.Message
func (*CreateReviewResponse) Reset ¶
func (x *CreateReviewResponse) Reset()
func (*CreateReviewResponse) String ¶
func (x *CreateReviewResponse) String() string
type DeleteReviewRequest ¶
type DeleteReviewRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DeleteReviewRequest) Descriptor
deprecated
func (*DeleteReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteReviewRequest.ProtoReflect.Descriptor instead.
func (*DeleteReviewRequest) GetLabels ¶
func (x *DeleteReviewRequest) GetLabels() map[string]string
func (*DeleteReviewRequest) GetName ¶
func (x *DeleteReviewRequest) GetName() string
func (*DeleteReviewRequest) GetNamespace ¶
func (x *DeleteReviewRequest) GetNamespace() string
func (*DeleteReviewRequest) ProtoMessage ¶
func (*DeleteReviewRequest) ProtoMessage()
func (*DeleteReviewRequest) ProtoReflect ¶
func (x *DeleteReviewRequest) ProtoReflect() protoreflect.Message
func (*DeleteReviewRequest) Reset ¶
func (x *DeleteReviewRequest) Reset()
func (*DeleteReviewRequest) String ¶
func (x *DeleteReviewRequest) String() string
type DeleteReviewResponse ¶
type DeleteReviewResponse struct {
// contains filtered or unexported fields
}
func (*DeleteReviewResponse) Descriptor
deprecated
func (*DeleteReviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteReviewResponse.ProtoReflect.Descriptor instead.
func (*DeleteReviewResponse) ProtoMessage ¶
func (*DeleteReviewResponse) ProtoMessage()
func (*DeleteReviewResponse) ProtoReflect ¶
func (x *DeleteReviewResponse) ProtoReflect() protoreflect.Message
func (*DeleteReviewResponse) Reset ¶
func (x *DeleteReviewResponse) Reset()
func (*DeleteReviewResponse) String ¶
func (x *DeleteReviewResponse) String() string
type GetReviewRequest ¶
type GetReviewRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetReviewRequest) Descriptor
deprecated
func (*GetReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReviewRequest.ProtoReflect.Descriptor instead.
func (*GetReviewRequest) GetLabels ¶
func (x *GetReviewRequest) GetLabels() map[string]string
func (*GetReviewRequest) GetName ¶
func (x *GetReviewRequest) GetName() string
func (*GetReviewRequest) GetNamespace ¶
func (x *GetReviewRequest) GetNamespace() string
func (*GetReviewRequest) ProtoMessage ¶
func (*GetReviewRequest) ProtoMessage()
func (*GetReviewRequest) ProtoReflect ¶
func (x *GetReviewRequest) ProtoReflect() protoreflect.Message
func (*GetReviewRequest) Reset ¶
func (x *GetReviewRequest) Reset()
func (*GetReviewRequest) String ¶
func (x *GetReviewRequest) String() string
type GetReviewResponse ¶
type GetReviewResponse struct { Review *v1alpha1.Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"` Yaml string `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"` // contains filtered or unexported fields }
func (*GetReviewResponse) Descriptor
deprecated
func (*GetReviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReviewResponse.ProtoReflect.Descriptor instead.
func (*GetReviewResponse) GetReview ¶ added in v0.4.475
func (x *GetReviewResponse) GetReview() *v1alpha1.Review
func (*GetReviewResponse) GetYaml ¶
func (x *GetReviewResponse) GetYaml() string
func (*GetReviewResponse) ProtoMessage ¶
func (*GetReviewResponse) ProtoMessage()
func (*GetReviewResponse) ProtoReflect ¶
func (x *GetReviewResponse) ProtoReflect() protoreflect.Message
func (*GetReviewResponse) Reset ¶
func (x *GetReviewResponse) Reset()
func (*GetReviewResponse) String ¶
func (x *GetReviewResponse) String() string
type ListReviewRequest ¶
type ListReviewRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListReviewRequest) Descriptor
deprecated
func (*ListReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReviewRequest.ProtoReflect.Descriptor instead.
func (*ListReviewRequest) GetLabels ¶
func (x *ListReviewRequest) GetLabels() map[string]string
func (*ListReviewRequest) GetNamespace ¶
func (x *ListReviewRequest) GetNamespace() string
func (*ListReviewRequest) GetPageSize ¶
func (x *ListReviewRequest) GetPageSize() int32
func (*ListReviewRequest) GetPageToken ¶
func (x *ListReviewRequest) GetPageToken() string
func (*ListReviewRequest) ProtoMessage ¶
func (*ListReviewRequest) ProtoMessage()
func (*ListReviewRequest) ProtoReflect ¶
func (x *ListReviewRequest) ProtoReflect() protoreflect.Message
func (*ListReviewRequest) Reset ¶
func (x *ListReviewRequest) Reset()
func (*ListReviewRequest) String ¶
func (x *ListReviewRequest) String() string
type ListReviewResponse ¶
type ListReviewResponse struct { Reviewes *v1alpha1.ReviewList `protobuf:"bytes,1,opt,name=reviewes,proto3" json:"reviewes,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListReviewResponse) Descriptor
deprecated
func (*ListReviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListReviewResponse.ProtoReflect.Descriptor instead.
func (*ListReviewResponse) GetNextPageToken ¶
func (x *ListReviewResponse) GetNextPageToken() string
func (*ListReviewResponse) GetReviewes ¶ added in v0.4.475
func (x *ListReviewResponse) GetReviewes() *v1alpha1.ReviewList
func (*ListReviewResponse) ProtoMessage ¶
func (*ListReviewResponse) ProtoMessage()
func (*ListReviewResponse) ProtoReflect ¶
func (x *ListReviewResponse) ProtoReflect() protoreflect.Message
func (*ListReviewResponse) Reset ¶
func (x *ListReviewResponse) Reset()
func (*ListReviewResponse) String ¶
func (x *ListReviewResponse) String() string
type ReviewServiceClient ¶
type ReviewServiceClient interface { ListReviews(ctx context.Context, in *ListReviewRequest, opts ...grpc.CallOption) (*ListReviewResponse, error) CreateReview(ctx context.Context, in *CreateReviewRequest, opts ...grpc.CallOption) (*CreateReviewResponse, error) GetReview(ctx context.Context, in *GetReviewRequest, opts ...grpc.CallOption) (*GetReviewResponse, error) UpdateReview(ctx context.Context, in *UpdateReviewRequest, opts ...grpc.CallOption) (*UpdateReviewResponse, error) DeleteReview(ctx context.Context, in *DeleteReviewRequest, opts ...grpc.CallOption) (*DeleteReviewResponse, error) }
ReviewServiceClient is the client API for ReviewService 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 NewReviewServiceClient ¶
func NewReviewServiceClient(cc grpc.ClientConnInterface) ReviewServiceClient
type ReviewServiceServer ¶
type ReviewServiceServer interface { ListReviews(context.Context, *ListReviewRequest) (*ListReviewResponse, error) CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewResponse, error) GetReview(context.Context, *GetReviewRequest) (*GetReviewResponse, error) UpdateReview(context.Context, *UpdateReviewRequest) (*UpdateReviewResponse, error) DeleteReview(context.Context, *DeleteReviewRequest) (*DeleteReviewResponse, error) // contains filtered or unexported methods }
ReviewServiceServer is the server API for ReviewService service. All implementations must embed UnimplementedReviewServiceServer for forward compatibility
type UnimplementedReviewServiceServer ¶
type UnimplementedReviewServiceServer struct { }
UnimplementedReviewServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedReviewServiceServer) CreateReview ¶
func (UnimplementedReviewServiceServer) CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewResponse, error)
func (UnimplementedReviewServiceServer) DeleteReview ¶
func (UnimplementedReviewServiceServer) DeleteReview(context.Context, *DeleteReviewRequest) (*DeleteReviewResponse, error)
func (UnimplementedReviewServiceServer) GetReview ¶
func (UnimplementedReviewServiceServer) GetReview(context.Context, *GetReviewRequest) (*GetReviewResponse, error)
func (UnimplementedReviewServiceServer) ListReviews ¶
func (UnimplementedReviewServiceServer) ListReviews(context.Context, *ListReviewRequest) (*ListReviewResponse, error)
func (UnimplementedReviewServiceServer) UpdateReview ¶
func (UnimplementedReviewServiceServer) UpdateReview(context.Context, *UpdateReviewRequest) (*UpdateReviewResponse, error)
type UnsafeReviewServiceServer ¶ added in v0.4.687
type UnsafeReviewServiceServer interface {
// contains filtered or unexported methods
}
UnsafeReviewServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReviewServiceServer will result in compilation errors.
type UpdateReviewRequest ¶
type UpdateReviewRequest struct { Review *v1alpha1.Review `protobuf:"bytes,1,opt,name=review,proto3" json:"review,omitempty"` FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateReviewRequest) Descriptor
deprecated
func (*UpdateReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReviewRequest.ProtoReflect.Descriptor instead.
func (*UpdateReviewRequest) GetFieldMask ¶ added in v0.4.422
func (x *UpdateReviewRequest) GetFieldMask() *field_mask.FieldMask
func (*UpdateReviewRequest) GetReview ¶ added in v0.4.472
func (x *UpdateReviewRequest) GetReview() *v1alpha1.Review
func (*UpdateReviewRequest) ProtoMessage ¶
func (*UpdateReviewRequest) ProtoMessage()
func (*UpdateReviewRequest) ProtoReflect ¶
func (x *UpdateReviewRequest) ProtoReflect() protoreflect.Message
func (*UpdateReviewRequest) Reset ¶
func (x *UpdateReviewRequest) Reset()
func (*UpdateReviewRequest) String ¶
func (x *UpdateReviewRequest) String() string
type UpdateReviewResponse ¶
type UpdateReviewResponse struct {
// contains filtered or unexported fields
}
func (*UpdateReviewResponse) Descriptor
deprecated
func (*UpdateReviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateReviewResponse.ProtoReflect.Descriptor instead.
func (*UpdateReviewResponse) ProtoMessage ¶
func (*UpdateReviewResponse) ProtoMessage()
func (*UpdateReviewResponse) ProtoReflect ¶
func (x *UpdateReviewResponse) ProtoReflect() protoreflect.Message
func (*UpdateReviewResponse) Reset ¶
func (x *UpdateReviewResponse) Reset()
func (*UpdateReviewResponse) String ¶
func (x *UpdateReviewResponse) String() string