Moving the label messages out of workflow and into it's own proto file.

- CronWorkflows re-use the same message types.
Added endpoints for CronWorkflow label operations.
This commit is contained in:
Aleksandr Melnikov
2020-04-02 14:56:00 -07:00
parent 6e27a5c6b8
commit 58eb005851
12 changed files with 946 additions and 564 deletions

View File

@@ -469,66 +469,75 @@ func init() {
proto.RegisterType((*CronWorkflow)(nil), "api.CronWorkflow")
}
func init() { proto.RegisterFile("cron_workflow.proto", fileDescriptor_989cccaad551a50c) }
func init() {
proto.RegisterFile("cron_workflow.proto", fileDescriptor_989cccaad551a50c)
}
var fileDescriptor_989cccaad551a50c = []byte{
// 740 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xdd, 0x4e, 0xdb, 0x48,
0x14, 0xc7, 0x65, 0x42, 0x20, 0x39, 0xcb, 0xee, 0x2a, 0xc3, 0x12, 0x8c, 0x89, 0x10, 0xeb, 0x9b,
0x45, 0xab, 0x55, 0xbc, 0xb0, 0x5a, 0xe8, 0x87, 0x8a, 0xda, 0x02, 0x6a, 0x85, 0xb8, 0x40, 0x06,
0x84, 0xd4, 0x1b, 0xe4, 0x8c, 0x4f, 0xd2, 0x51, 0x9d, 0x19, 0xd7, 0x33, 0x86, 0x06, 0xc4, 0x4d,
0x55, 0xf5, 0xa6, 0xea, 0x55, 0xd5, 0x9b, 0xf6, 0x35, 0xfa, 0x0e, 0x7d, 0x80, 0xbe, 0x42, 0x1f,
0xa4, 0xf2, 0xc4, 0x09, 0x49, 0x9c, 0xa0, 0x14, 0x71, 0x65, 0x9f, 0xf9, 0x9f, 0x99, 0xf3, 0x9b,
0xaf, 0xff, 0xc0, 0x2c, 0x8d, 0x04, 0x3f, 0x39, 0x13, 0xd1, 0x8b, 0x7a, 0x20, 0xce, 0xaa, 0x61,
0x24, 0x94, 0x20, 0x39, 0x2f, 0x64, 0x56, 0xa5, 0x21, 0x44, 0x23, 0x40, 0xc7, 0x0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1f, 0x0d, 0x98, 0x1b, 0xfa, 0xfe, 0x91, 0x3f,
0x35, 0xef, 0x75, 0x6f, 0xa3, 0x55, 0xae, 0xb6, 0x1f, 0xe4, 0x6a, 0xe7, 0x41, 0xae, 0xee, 0x24,
0x0f, 0xb2, 0xfd, 0x48, 0x4f, 0xe5, 0xfe, 0xdf, 0x77, 0xc7, 0xc7, 0xd3, 0xeb, 0xea, 0xa8, 0x4e,
0xb5, 0xda, 0x94, 0x1e, 0xf2, 0xbf, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x74, 0x56, 0x62, 0x2e,
0x2b, 0x08, 0x00, 0x00,
// 855 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x41, 0x6f, 0xdc, 0x44,
0x14, 0xc7, 0xe5, 0x6c, 0x93, 0x66, 0x5f, 0x03, 0x28, 0x13, 0x36, 0xeb, 0x75, 0xa3, 0x28, 0xf8,
0x42, 0x54, 0xa1, 0x35, 0x0d, 0x22, 0x2d, 0x05, 0xa2, 0x86, 0xa4, 0x80, 0xaa, 0x1c, 0x2a, 0xa7,
0x55, 0x25, 0x2e, 0xd1, 0xec, 0xf8, 0xed, 0x32, 0xaa, 0x77, 0xc6, 0x78, 0xc6, 0x2d, 0xdb, 0x68,
0x2f, 0x08, 0x71, 0x03, 0x21, 0x21, 0x38, 0xc0, 0xd7, 0xe0, 0x3b, 0x70, 0x46, 0x7c, 0x05, 0x3e,
0x08, 0xf2, 0xd8, 0xde, 0xec, 0xae, 0xbd, 0x65, 0xb3, 0xcd, 0xc9, 0x7e, 0xf3, 0x9f, 0x99, 0xf7,
0xf3, 0xbc, 0xe7, 0xff, 0xc0, 0x06, 0x8b, 0xa5, 0x38, 0x7b, 0x21, 0xe3, 0x67, 0xdd, 0x50, 0xbe,
0x68, 0x47, 0xb1, 0xd4, 0x92, 0xd4, 0x68, 0xc4, 0x9d, 0xad, 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 0xe7, 0x64, 0x51, 0x5f, 0x7d, 0x46, 0xee, 0xcf, 0x3b, 0xd7, 0x3b, 0xaf, 0xf4,
0xc4, 0x21, 0xf9, 0xd5, 0x82, 0x46, 0xe5, 0xfd, 0x47, 0xde, 0x31, 0xbc, 0xaf, 0xba, 0x1b, 0x9d,
0xcd, 0x76, 0x76, 0x3b, 0xb7, 0x8b, 0xdb, 0xb9, 0xfd, 0x20, 0xbd, 0x9d, 0xdd, 0x43, 0xf3, 0x29,
0x1f, 0xdf, 0xfa, 0x68, 0x7e, 0x3c, 0x73, 0xae, 0x9e, 0x2e, 0xb2, 0xa5, 0x5d, 0xdf, 0x98, 0xaa,
0xe3, 0x49, 0x7a, 0x6b, 0x2b, 0xd2, 0x28, 0x6a, 0x9c, 0xc5, 0x17, 0x2c, 0x53, 0xc3, 0xf9, 0xb1,
0x1e, 0x18, 0x96, 0xbb, 0x64, 0xff, 0xb2, 0x2c, 0x61, 0x96, 0xee, 0x27, 0x0b, 0x1a, 0x87, 0x41,
0x30, 0x13, 0xe4, 0x30, 0x08, 0xe6, 0x03, 0xf9, 0xdc, 0x80, 0xdc, 0x77, 0x17, 0x04, 0xb9, 0xb7,
0x92, 0x03, 0xfd, 0x66, 0x41, 0xcb, 0xc7, 0x28, 0xa4, 0x0c, 0x2b, 0xa0, 0x5a, 0x26, 0x7b, 0xae,
0x5f, 0x0a, 0xcc, 0x79, 0x5d, 0xb0, 0x9f, 0x2d, 0x68, 0x1e, 0x63, 0x88, 0xba, 0xcc, 0x45, 0x9a,
0x26, 0x77, 0xa6, 0x9a, 0x91, 0xff, 0x83, 0xca, 0x2d, 0xe2, 0xd6, 0x27, 0x8b, 0x41, 0x79, 0xe7,
0xcf, 0x70, 0x30, 0xec, 0xac, 0x98, 0xc6, 0xfc, 0xe0, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe9,
0x77, 0xb5, 0xc0, 0x7e, 0x0a, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
const _ = grpc.SupportPackageIsVersion6
// CronWorkflowServiceClient is the client API for CronWorkflowService service.
//
@@ -539,13 +548,17 @@ type CronWorkflowServiceClient interface {
GetCronWorkflow(ctx context.Context, in *GetCronWorkflowRequest, opts ...grpc.CallOption) (*CronWorkflow, error)
ListCronWorkflows(ctx context.Context, in *ListCronWorkflowRequest, opts ...grpc.CallOption) (*ListCronWorkflowsResponse, error)
TerminateCronWorkflow(ctx context.Context, in *TerminateCronWorkflowRequest, opts ...grpc.CallOption) (*empty.Empty, error)
GetCronWorkflowLabels(ctx context.Context, in *GetLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error)
AddCronWorkflowLabels(ctx context.Context, in *AddLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error)
ReplaceCronWorkflowLabels(ctx context.Context, in *ReplaceLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error)
DeleteCronWorkflowLabel(ctx context.Context, in *DeleteLabelRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error)
}
type cronWorkflowServiceClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewCronWorkflowServiceClient(cc *grpc.ClientConn) CronWorkflowServiceClient {
func NewCronWorkflowServiceClient(cc grpc.ClientConnInterface) CronWorkflowServiceClient {
return &cronWorkflowServiceClient{cc}
}
@@ -594,6 +607,42 @@ func (c *cronWorkflowServiceClient) TerminateCronWorkflow(ctx context.Context, i
return out, nil
}
func (c *cronWorkflowServiceClient) GetCronWorkflowLabels(ctx context.Context, in *GetLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error) {
out := new(GetLabelsResponse)
err := c.cc.Invoke(ctx, "/api.CronWorkflowService/GetCronWorkflowLabels", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cronWorkflowServiceClient) AddCronWorkflowLabels(ctx context.Context, in *AddLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error) {
out := new(GetLabelsResponse)
err := c.cc.Invoke(ctx, "/api.CronWorkflowService/AddCronWorkflowLabels", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cronWorkflowServiceClient) ReplaceCronWorkflowLabels(ctx context.Context, in *ReplaceLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error) {
out := new(GetLabelsResponse)
err := c.cc.Invoke(ctx, "/api.CronWorkflowService/ReplaceCronWorkflowLabels", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cronWorkflowServiceClient) DeleteCronWorkflowLabel(ctx context.Context, in *DeleteLabelRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error) {
out := new(GetLabelsResponse)
err := c.cc.Invoke(ctx, "/api.CronWorkflowService/DeleteCronWorkflowLabel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CronWorkflowServiceServer is the server API for CronWorkflowService service.
type CronWorkflowServiceServer interface {
CreateCronWorkflow(context.Context, *CreateCronWorkflowRequest) (*CronWorkflow, error)
@@ -601,6 +650,10 @@ type CronWorkflowServiceServer interface {
GetCronWorkflow(context.Context, *GetCronWorkflowRequest) (*CronWorkflow, error)
ListCronWorkflows(context.Context, *ListCronWorkflowRequest) (*ListCronWorkflowsResponse, error)
TerminateCronWorkflow(context.Context, *TerminateCronWorkflowRequest) (*empty.Empty, error)
GetCronWorkflowLabels(context.Context, *GetLabelsRequest) (*GetLabelsResponse, error)
AddCronWorkflowLabels(context.Context, *AddLabelsRequest) (*GetLabelsResponse, error)
ReplaceCronWorkflowLabels(context.Context, *ReplaceLabelsRequest) (*GetLabelsResponse, error)
DeleteCronWorkflowLabel(context.Context, *DeleteLabelRequest) (*GetLabelsResponse, error)
}
// UnimplementedCronWorkflowServiceServer can be embedded to have forward compatible implementations.
@@ -622,6 +675,18 @@ func (*UnimplementedCronWorkflowServiceServer) ListCronWorkflows(ctx context.Con
func (*UnimplementedCronWorkflowServiceServer) TerminateCronWorkflow(ctx context.Context, req *TerminateCronWorkflowRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method TerminateCronWorkflow not implemented")
}
func (*UnimplementedCronWorkflowServiceServer) GetCronWorkflowLabels(ctx context.Context, req *GetLabelsRequest) (*GetLabelsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCronWorkflowLabels not implemented")
}
func (*UnimplementedCronWorkflowServiceServer) AddCronWorkflowLabels(ctx context.Context, req *AddLabelsRequest) (*GetLabelsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddCronWorkflowLabels not implemented")
}
func (*UnimplementedCronWorkflowServiceServer) ReplaceCronWorkflowLabels(ctx context.Context, req *ReplaceLabelsRequest) (*GetLabelsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ReplaceCronWorkflowLabels not implemented")
}
func (*UnimplementedCronWorkflowServiceServer) DeleteCronWorkflowLabel(ctx context.Context, req *DeleteLabelRequest) (*GetLabelsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteCronWorkflowLabel not implemented")
}
func RegisterCronWorkflowServiceServer(s *grpc.Server, srv CronWorkflowServiceServer) {
s.RegisterService(&_CronWorkflowService_serviceDesc, srv)
@@ -717,6 +782,78 @@ func _CronWorkflowService_TerminateCronWorkflow_Handler(srv interface{}, ctx con
return interceptor(ctx, in, info, handler)
}
func _CronWorkflowService_GetCronWorkflowLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetLabelsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CronWorkflowServiceServer).GetCronWorkflowLabels(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.CronWorkflowService/GetCronWorkflowLabels",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CronWorkflowServiceServer).GetCronWorkflowLabels(ctx, req.(*GetLabelsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CronWorkflowService_AddCronWorkflowLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddLabelsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CronWorkflowServiceServer).AddCronWorkflowLabels(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.CronWorkflowService/AddCronWorkflowLabels",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CronWorkflowServiceServer).AddCronWorkflowLabels(ctx, req.(*AddLabelsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CronWorkflowService_ReplaceCronWorkflowLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ReplaceLabelsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CronWorkflowServiceServer).ReplaceCronWorkflowLabels(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.CronWorkflowService/ReplaceCronWorkflowLabels",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CronWorkflowServiceServer).ReplaceCronWorkflowLabels(ctx, req.(*ReplaceLabelsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CronWorkflowService_DeleteCronWorkflowLabel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteLabelRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CronWorkflowServiceServer).DeleteCronWorkflowLabel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.CronWorkflowService/DeleteCronWorkflowLabel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CronWorkflowServiceServer).DeleteCronWorkflowLabel(ctx, req.(*DeleteLabelRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CronWorkflowService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.CronWorkflowService",
HandlerType: (*CronWorkflowServiceServer)(nil),
@@ -741,6 +878,22 @@ var _CronWorkflowService_serviceDesc = grpc.ServiceDesc{
MethodName: "TerminateCronWorkflow",
Handler: _CronWorkflowService_TerminateCronWorkflow_Handler,
},
{
MethodName: "GetCronWorkflowLabels",
Handler: _CronWorkflowService_GetCronWorkflowLabels_Handler,
},
{
MethodName: "AddCronWorkflowLabels",
Handler: _CronWorkflowService_AddCronWorkflowLabels_Handler,
},
{
MethodName: "ReplaceCronWorkflowLabels",
Handler: _CronWorkflowService_ReplaceCronWorkflowLabels_Handler,
},
{
MethodName: "DeleteCronWorkflowLabel",
Handler: _CronWorkflowService_DeleteCronWorkflowLabel_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "cron_workflow.proto",