Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
9610bc7496 | |||
32d10ab29d | |||
68ad5224fc | |||
0a307b557f | |||
28db10c5a2 | |||
aeabace4df | |||
e7721e4317 | |||
9a5cf66857 | |||
077b2889e2 | |||
04642e4267 |
1092
pkg/applications/applications_v1.pb.go
Normal file
1092
pkg/applications/applications_v1.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
274
pkg/applications/applications_v1_grpc.pb.go
Normal file
274
pkg/applications/applications_v1_grpc.pb.go
Normal file
@ -0,0 +1,274 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
|
||||||
|
package applications
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.32.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion7
|
||||||
|
|
||||||
|
// ApplicationsClient is the client API for Applications 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 ApplicationsClient interface {
|
||||||
|
Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*ApplicationFull, error)
|
||||||
|
Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*ApplicationFull, error)
|
||||||
|
Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||||
|
Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*ApplicationFull, error)
|
||||||
|
List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (Applications_ListClient, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type applicationsClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewApplicationsClient(cc grpc.ClientConnInterface) ApplicationsClient {
|
||||||
|
return &applicationsClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *applicationsClient) Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*ApplicationFull, error) {
|
||||||
|
out := new(ApplicationFull)
|
||||||
|
err := c.cc.Invoke(ctx, "/applications.Applications/Create", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *applicationsClient) Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*ApplicationFull, error) {
|
||||||
|
out := new(ApplicationFull)
|
||||||
|
err := c.cc.Invoke(ctx, "/applications.Applications/Update", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *applicationsClient) Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||||
|
out := new(emptypb.Empty)
|
||||||
|
err := c.cc.Invoke(ctx, "/applications.Applications/Delete", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *applicationsClient) Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*ApplicationFull, error) {
|
||||||
|
out := new(ApplicationFull)
|
||||||
|
err := c.cc.Invoke(ctx, "/applications.Applications/Get", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *applicationsClient) List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (Applications_ListClient, error) {
|
||||||
|
stream, err := c.cc.NewStream(ctx, &Applications_ServiceDesc.Streams[0], "/applications.Applications/List", opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
x := &applicationsListClient{stream}
|
||||||
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if err := x.ClientStream.CloseSend(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return x, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type Applications_ListClient interface {
|
||||||
|
Recv() (*ApplicationFull, error)
|
||||||
|
grpc.ClientStream
|
||||||
|
}
|
||||||
|
|
||||||
|
type applicationsListClient struct {
|
||||||
|
grpc.ClientStream
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *applicationsListClient) Recv() (*ApplicationFull, error) {
|
||||||
|
m := new(ApplicationFull)
|
||||||
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return m, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// ApplicationsServer is the server API for Applications service.
|
||||||
|
// All implementations must embed UnimplementedApplicationsServer
|
||||||
|
// for forward compatibility
|
||||||
|
type ApplicationsServer interface {
|
||||||
|
Create(context.Context, *CreateOptions) (*ApplicationFull, error)
|
||||||
|
Update(context.Context, *UpdateOptions) (*ApplicationFull, error)
|
||||||
|
Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error)
|
||||||
|
Get(context.Context, *GetOptions) (*ApplicationFull, error)
|
||||||
|
List(*ListOptions, Applications_ListServer) error
|
||||||
|
mustEmbedUnimplementedApplicationsServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedApplicationsServer must be embedded to have forward compatible implementations.
|
||||||
|
type UnimplementedApplicationsServer struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (UnimplementedApplicationsServer) Create(context.Context, *CreateOptions) (*ApplicationFull, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedApplicationsServer) Update(context.Context, *UpdateOptions) (*ApplicationFull, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedApplicationsServer) Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedApplicationsServer) Get(context.Context, *GetOptions) (*ApplicationFull, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedApplicationsServer) List(*ListOptions, Applications_ListServer) error {
|
||||||
|
return status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedApplicationsServer) mustEmbedUnimplementedApplicationsServer() {}
|
||||||
|
|
||||||
|
// UnsafeApplicationsServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to ApplicationsServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeApplicationsServer interface {
|
||||||
|
mustEmbedUnimplementedApplicationsServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterApplicationsServer(s grpc.ServiceRegistrar, srv ApplicationsServer) {
|
||||||
|
s.RegisterService(&Applications_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Applications_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(CreateOptions)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(ApplicationsServer).Create(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/applications.Applications/Create",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(ApplicationsServer).Create(ctx, req.(*CreateOptions))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Applications_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(UpdateOptions)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(ApplicationsServer).Update(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/applications.Applications/Update",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(ApplicationsServer).Update(ctx, req.(*UpdateOptions))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Applications_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(DeleteOptions)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(ApplicationsServer).Delete(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/applications.Applications/Delete",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(ApplicationsServer).Delete(ctx, req.(*DeleteOptions))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Applications_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetOptions)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(ApplicationsServer).Get(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/applications.Applications/Get",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(ApplicationsServer).Get(ctx, req.(*GetOptions))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Applications_List_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||||
|
m := new(ListOptions)
|
||||||
|
if err := stream.RecvMsg(m); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return srv.(ApplicationsServer).List(m, &applicationsListServer{stream})
|
||||||
|
}
|
||||||
|
|
||||||
|
type Applications_ListServer interface {
|
||||||
|
Send(*ApplicationFull) error
|
||||||
|
grpc.ServerStream
|
||||||
|
}
|
||||||
|
|
||||||
|
type applicationsListServer struct {
|
||||||
|
grpc.ServerStream
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *applicationsListServer) Send(m *ApplicationFull) error {
|
||||||
|
return x.ServerStream.SendMsg(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Applications_ServiceDesc is the grpc.ServiceDesc for Applications service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var Applications_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "applications.Applications",
|
||||||
|
HandlerType: (*ApplicationsServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "Create",
|
||||||
|
Handler: _Applications_Create_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Update",
|
||||||
|
Handler: _Applications_Update_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Delete",
|
||||||
|
Handler: _Applications_Delete_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Get",
|
||||||
|
Handler: _Applications_Get_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{
|
||||||
|
{
|
||||||
|
StreamName: "List",
|
||||||
|
Handler: _Applications_List_Handler,
|
||||||
|
ServerStreams: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Metadata: "applications/applications_v1.proto",
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -19,11 +19,11 @@ const _ = grpc.SupportPackageIsVersion7
|
|||||||
//
|
//
|
||||||
// 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.
|
// 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 EnvironmentsClient interface {
|
type EnvironmentsClient interface {
|
||||||
Create(ctx context.Context, in *EnvironmentData, opts ...grpc.CallOption) (*EnvironmentFull, error)
|
Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*EnvironmentFull, error)
|
||||||
Update(ctx context.Context, in *EnvironmentFull, opts ...grpc.CallOption) (*EnvironmentFull, error)
|
Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*EnvironmentFull, error)
|
||||||
Delete(ctx context.Context, in *EnvironmentFull, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||||
Get(ctx context.Context, in *EnvironmentId, opts ...grpc.CallOption) (*EnvironmentFull, error)
|
Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*EnvironmentFull, error)
|
||||||
List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Environments_ListClient, error)
|
List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (Environments_ListClient, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type environmentsClient struct {
|
type environmentsClient struct {
|
||||||
@ -34,7 +34,7 @@ func NewEnvironmentsClient(cc grpc.ClientConnInterface) EnvironmentsClient {
|
|||||||
return &environmentsClient{cc}
|
return &environmentsClient{cc}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *environmentsClient) Create(ctx context.Context, in *EnvironmentData, opts ...grpc.CallOption) (*EnvironmentFull, error) {
|
func (c *environmentsClient) Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*EnvironmentFull, error) {
|
||||||
out := new(EnvironmentFull)
|
out := new(EnvironmentFull)
|
||||||
err := c.cc.Invoke(ctx, "/environments.Environments/Create", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/environments.Environments/Create", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -43,7 +43,7 @@ func (c *environmentsClient) Create(ctx context.Context, in *EnvironmentData, op
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *environmentsClient) Update(ctx context.Context, in *EnvironmentFull, opts ...grpc.CallOption) (*EnvironmentFull, error) {
|
func (c *environmentsClient) Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*EnvironmentFull, error) {
|
||||||
out := new(EnvironmentFull)
|
out := new(EnvironmentFull)
|
||||||
err := c.cc.Invoke(ctx, "/environments.Environments/Update", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/environments.Environments/Update", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -52,7 +52,7 @@ func (c *environmentsClient) Update(ctx context.Context, in *EnvironmentFull, op
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *environmentsClient) Delete(ctx context.Context, in *EnvironmentFull, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
func (c *environmentsClient) Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||||
out := new(emptypb.Empty)
|
out := new(emptypb.Empty)
|
||||||
err := c.cc.Invoke(ctx, "/environments.Environments/Delete", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/environments.Environments/Delete", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -61,7 +61,7 @@ func (c *environmentsClient) Delete(ctx context.Context, in *EnvironmentFull, op
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *environmentsClient) Get(ctx context.Context, in *EnvironmentId, opts ...grpc.CallOption) (*EnvironmentFull, error) {
|
func (c *environmentsClient) Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*EnvironmentFull, error) {
|
||||||
out := new(EnvironmentFull)
|
out := new(EnvironmentFull)
|
||||||
err := c.cc.Invoke(ctx, "/environments.Environments/Get", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/environments.Environments/Get", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -70,7 +70,7 @@ func (c *environmentsClient) Get(ctx context.Context, in *EnvironmentId, opts ..
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *environmentsClient) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Environments_ListClient, error) {
|
func (c *environmentsClient) List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (Environments_ListClient, error) {
|
||||||
stream, err := c.cc.NewStream(ctx, &Environments_ServiceDesc.Streams[0], "/environments.Environments/List", opts...)
|
stream, err := c.cc.NewStream(ctx, &Environments_ServiceDesc.Streams[0], "/environments.Environments/List", opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -106,11 +106,11 @@ func (x *environmentsListClient) Recv() (*EnvironmentFull, error) {
|
|||||||
// All implementations must embed UnimplementedEnvironmentsServer
|
// All implementations must embed UnimplementedEnvironmentsServer
|
||||||
// for forward compatibility
|
// for forward compatibility
|
||||||
type EnvironmentsServer interface {
|
type EnvironmentsServer interface {
|
||||||
Create(context.Context, *EnvironmentData) (*EnvironmentFull, error)
|
Create(context.Context, *CreateOptions) (*EnvironmentFull, error)
|
||||||
Update(context.Context, *EnvironmentFull) (*EnvironmentFull, error)
|
Update(context.Context, *UpdateOptions) (*EnvironmentFull, error)
|
||||||
Delete(context.Context, *EnvironmentFull) (*emptypb.Empty, error)
|
Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error)
|
||||||
Get(context.Context, *EnvironmentId) (*EnvironmentFull, error)
|
Get(context.Context, *GetOptions) (*EnvironmentFull, error)
|
||||||
List(*emptypb.Empty, Environments_ListServer) error
|
List(*ListOptions, Environments_ListServer) error
|
||||||
mustEmbedUnimplementedEnvironmentsServer()
|
mustEmbedUnimplementedEnvironmentsServer()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,19 +118,19 @@ type EnvironmentsServer interface {
|
|||||||
type UnimplementedEnvironmentsServer struct {
|
type UnimplementedEnvironmentsServer struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (UnimplementedEnvironmentsServer) Create(context.Context, *EnvironmentData) (*EnvironmentFull, error) {
|
func (UnimplementedEnvironmentsServer) Create(context.Context, *CreateOptions) (*EnvironmentFull, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedEnvironmentsServer) Update(context.Context, *EnvironmentFull) (*EnvironmentFull, error) {
|
func (UnimplementedEnvironmentsServer) Update(context.Context, *UpdateOptions) (*EnvironmentFull, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedEnvironmentsServer) Delete(context.Context, *EnvironmentFull) (*emptypb.Empty, error) {
|
func (UnimplementedEnvironmentsServer) Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedEnvironmentsServer) Get(context.Context, *EnvironmentId) (*EnvironmentFull, error) {
|
func (UnimplementedEnvironmentsServer) Get(context.Context, *GetOptions) (*EnvironmentFull, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedEnvironmentsServer) List(*emptypb.Empty, Environments_ListServer) error {
|
func (UnimplementedEnvironmentsServer) List(*ListOptions, Environments_ListServer) error {
|
||||||
return status.Errorf(codes.Unimplemented, "method List not implemented")
|
return status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedEnvironmentsServer) mustEmbedUnimplementedEnvironmentsServer() {}
|
func (UnimplementedEnvironmentsServer) mustEmbedUnimplementedEnvironmentsServer() {}
|
||||||
@ -147,7 +147,7 @@ func RegisterEnvironmentsServer(s grpc.ServiceRegistrar, srv EnvironmentsServer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func _Environments_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _Environments_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(EnvironmentData)
|
in := new(CreateOptions)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -159,13 +159,13 @@ func _Environments_Create_Handler(srv interface{}, ctx context.Context, dec func
|
|||||||
FullMethod: "/environments.Environments/Create",
|
FullMethod: "/environments.Environments/Create",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(EnvironmentsServer).Create(ctx, req.(*EnvironmentData))
|
return srv.(EnvironmentsServer).Create(ctx, req.(*CreateOptions))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Environments_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _Environments_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(EnvironmentFull)
|
in := new(UpdateOptions)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -177,13 +177,13 @@ func _Environments_Update_Handler(srv interface{}, ctx context.Context, dec func
|
|||||||
FullMethod: "/environments.Environments/Update",
|
FullMethod: "/environments.Environments/Update",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(EnvironmentsServer).Update(ctx, req.(*EnvironmentFull))
|
return srv.(EnvironmentsServer).Update(ctx, req.(*UpdateOptions))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Environments_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _Environments_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(EnvironmentFull)
|
in := new(DeleteOptions)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -195,13 +195,13 @@ func _Environments_Delete_Handler(srv interface{}, ctx context.Context, dec func
|
|||||||
FullMethod: "/environments.Environments/Delete",
|
FullMethod: "/environments.Environments/Delete",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(EnvironmentsServer).Delete(ctx, req.(*EnvironmentFull))
|
return srv.(EnvironmentsServer).Delete(ctx, req.(*DeleteOptions))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Environments_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _Environments_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(EnvironmentId)
|
in := new(GetOptions)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -213,13 +213,13 @@ func _Environments_Get_Handler(srv interface{}, ctx context.Context, dec func(in
|
|||||||
FullMethod: "/environments.Environments/Get",
|
FullMethod: "/environments.Environments/Get",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(EnvironmentsServer).Get(ctx, req.(*EnvironmentId))
|
return srv.(EnvironmentsServer).Get(ctx, req.(*GetOptions))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Environments_List_Handler(srv interface{}, stream grpc.ServerStream) error {
|
func _Environments_List_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||||
m := new(emptypb.Empty)
|
m := new(ListOptions)
|
||||||
if err := stream.RecvMsg(m); err != nil {
|
if err := stream.RecvMsg(m); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
2
proto
2
proto
Submodule proto updated: 26dc36ae71...2a92b9987c
Reference in New Issue
Block a user