Updated Workflow Template Versions to support IsLatest and added API methods to save, save & publish

This commit is contained in:
Andrey Melnikov
2020-01-24 10:35:06 -08:00
parent 11ae2e9abb
commit 11e90e17da
12 changed files with 501 additions and 77 deletions

View File

@@ -495,55 +495,57 @@ func init() {
func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) }
var fileDescriptor_892c7f566756b0be = []byte{
// 768 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xcd, 0x4e, 0x1b, 0x49,
0x10, 0xc7, 0xd5, 0x18, 0xb3, 0xb8, 0x90, 0x81, 0x2d, 0x8c, 0xf1, 0x7a, 0x59, 0x2d, 0xdb, 0xcb,
0x4a, 0xb0, 0x20, 0x8f, 0xf1, 0x6e, 0xa2, 0x88, 0x08, 0x25, 0x11, 0x02, 0x72, 0xb0, 0xa2, 0xc8,
0xf9, 0x40, 0xe2, 0x12, 0x1a, 0xbb, 0x71, 0x46, 0x31, 0xd3, 0x93, 0xe9, 0xb6, 0x51, 0x64, 0xf9,
0x92, 0x48, 0x39, 0xe4, 0x9a, 0xdc, 0xf2, 0x22, 0x39, 0x27, 0x8f, 0xc0, 0x2b, 0xe4, 0x01, 0xf2,
0x08, 0xd1, 0xb4, 0xa7, 0x07, 0xcf, 0x78, 0x92, 0xd8, 0xe1, 0x36, 0xdd, 0x55, 0x5d, 0xff, 0x5f,
0x75, 0x55, 0xb5, 0x0d, 0xb3, 0xe7, 0xc2, 0x7b, 0x76, 0xda, 0x12, 0xe7, 0x25, 0xd7, 0x13, 0x4a,
0x60, 0x8a, 0xb9, 0x76, 0x71, 0xb9, 0x29, 0x44, 0xb3, 0xc5, 0x2d, 0xe6, 0xda, 0x16, 0x73, 0x1c,
0xa1, 0x98, 0xb2, 0x85, 0x23, 0xfb, 0x2e, 0xc5, 0x25, 0x73, 0xe4, 0x89, 0xe2, 0x67, 0x6e, 0x8b,
0x29,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x70, 0xfe, 0x62, 0x85, 0x91, 0xb8, 0x36,
0x34, 0xa2, 0x71, 0x17, 0x93, 0xe7, 0xfa, 0x08, 0x9e, 0xc1, 0x6c, 0xef, 0xea, 0xd4, 0x77, 0xf0,
0xe6, 0x15, 0x92, 0xc0, 0x77, 0x24, 0xfa, 0x1b, 0x67, 0xd4, 0x24, 0xfe, 0xf5, 0x4d, 0x92, 0x10,
0x96, 0x7e, 0xcf, 0x25, 0xa0, 0xfc, 0x5f, 0x53, 0x96, 0x70, 0xac, 0xf6, 0x3f, 0x99, 0xd2, 0xff,
0xb4, 0xfe, 0xfb, 0x1a, 0x00, 0x00, 0xff, 0xff, 0x85, 0x5f, 0xab, 0xe2, 0xb7, 0x09, 0x00, 0x00,
// 799 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5f, 0x4f, 0x2b, 0x45,
0x14, 0xcf, 0x50, 0x8a, 0xf4, 0x90, 0x02, 0x1e, 0x4a, 0xa9, 0x15, 0x22, 0x8e, 0x98, 0x80, 0x90,
0x6e, 0xa9, 0x7f, 0x62, 0x30, 0x44, 0x0d, 0x01, 0x7c, 0x68, 0x8c, 0xa9, 0x22, 0x09, 0x2f, 0x32,
0xb4, 0x43, 0xdd, 0x58, 0x76, 0xd6, 0x9d, 0x69, 0x89, 0x69, 0xfa, 0xa0, 0x26, 0x3e, 0xf8, 0xaa,
0x6f, 0x7e, 0x11, 0x9f, 0xf5, 0x23, 0xf0, 0xe2, 0x07, 0xf0, 0x7e, 0x8f, 0x9b, 0x9d, 0xdd, 0x59,
0x76, 0xb7, 0x7b, 0xa1, 0xbd, 0xdc, 0xb7, 0xce, 0x9c, 0x33, 0xe7, 0xf7, 0xfb, 0x9d, 0x7f, 0x5b,
0x58, 0xbc, 0x15, 0xde, 0x0f, 0xd7, 0x3d, 0x71, 0x5b, 0x73, 0x3d, 0xa1, 0x04, 0xe6, 0x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x99, 0x65, 0x0f, 0x4d, 0xa3, 0x0c, 0x9d, 0xff, 0x10, 0xd8,
0xc8, 0x4e, 0xb4, 0xd1, 0xf9, 0x84, 0x62, 0x5c, 0x6b, 0x7d, 0x97, 0xb4, 0xf9, 0x2a, 0xf5, 0x65,
0x88, 0xb8, 0x23, 0xb0, 0x12, 0xeb, 0xde, 0xe8, 0xfe, 0xad, 0x74, 0x5f, 0x4f, 0xc8, 0xfb, 0xd7,
0xa0, 0x30, 0x23, 0x6c, 0x4c, 0x47, 0xdc, 0xe7, 0x79, 0x71, 0x8a, 0xc7, 0xd3, 0xbf, 0x8a, 0x55,
0xcf, 0x14, 0x0b, 0xff, 0x26, 0xb0, 0x1e, 0xdf, 0x33, 0xa9, 0xc2, 0x48, 0xdc, 0x1e, 0x5b, 0x45,
0x69, 0x17, 0xa3, 0x73, 0x67, 0x02, 0xcf, 0x70, 0x87, 0x1d, 0x69, 0xe9, 0x87, 0xf8, 0xc9, 0x13,
0x44, 0xe0, 0x9f, 0x24, 0xf9, 0x2d, 0x37, 0x68, 0x12, 0xdf, 0x7e, 0x21, 0x93, 0x88, 0x2c, 0x7d,
0xc8, 0x25, 0x64, 0xf9, 0x81, 0x66, 0x59, 0xc3, 0xa9, 0xc6, 0xfc, 0x6a, 0x4e, 0xff, 0xa3, 0x7c,
0xff, 0x79, 0x00, 0x00, 0x00, 0xff, 0xff, 0x31, 0xf2, 0x48, 0x29, 0x9f, 0x0a, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -565,6 +567,7 @@ type WorkflowServiceClient interface {
WatchWorkflow(ctx context.Context, in *WatchWorkflowRequest, opts ...grpc.CallOption) (WorkflowService_WatchWorkflowClient, error)
GetWorkflowLogs(ctx context.Context, in *GetWorkflowLogsRequest, opts ...grpc.CallOption) (WorkflowService_GetWorkflowLogsClient, error)
CreateWorkflowTemplate(ctx context.Context, in *CreateWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error)
UpdateWorkflowTemplateVersion(ctx context.Context, in *UpdateWorkflowTemplateVersionRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error)
CreateWorkflowTemplateVersion(ctx context.Context, in *CreateWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error)
GetWorkflowTemplate(ctx context.Context, in *GetWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error)
ListWorkflowTemplateVersions(ctx context.Context, in *ListWorkflowTemplateVersionsRequest, opts ...grpc.CallOption) (*ListWorkflowTemplateVersionsResponse, error)
@@ -679,6 +682,15 @@ func (c *workflowServiceClient) CreateWorkflowTemplate(ctx context.Context, in *
return out, nil
}
func (c *workflowServiceClient) UpdateWorkflowTemplateVersion(ctx context.Context, in *UpdateWorkflowTemplateVersionRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error) {
out := new(WorkflowTemplate)
err := c.cc.Invoke(ctx, "/api.WorkflowService/UpdateWorkflowTemplateVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *workflowServiceClient) CreateWorkflowTemplateVersion(ctx context.Context, in *CreateWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error) {
out := new(WorkflowTemplate)
err := c.cc.Invoke(ctx, "/api.WorkflowService/CreateWorkflowTemplateVersion", in, out, opts...)
@@ -724,6 +736,7 @@ type WorkflowServiceServer interface {
WatchWorkflow(*WatchWorkflowRequest, WorkflowService_WatchWorkflowServer) error
GetWorkflowLogs(*GetWorkflowLogsRequest, WorkflowService_GetWorkflowLogsServer) error
CreateWorkflowTemplate(context.Context, *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error)
UpdateWorkflowTemplateVersion(context.Context, *UpdateWorkflowTemplateVersionRequest) (*WorkflowTemplate, error)
CreateWorkflowTemplateVersion(context.Context, *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error)
GetWorkflowTemplate(context.Context, *GetWorkflowTemplateRequest) (*WorkflowTemplate, error)
ListWorkflowTemplateVersions(context.Context, *ListWorkflowTemplateVersionsRequest) (*ListWorkflowTemplateVersionsResponse, error)
@@ -752,6 +765,9 @@ func (*UnimplementedWorkflowServiceServer) GetWorkflowLogs(req *GetWorkflowLogsR
func (*UnimplementedWorkflowServiceServer) CreateWorkflowTemplate(ctx context.Context, req *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowTemplate not implemented")
}
func (*UnimplementedWorkflowServiceServer) UpdateWorkflowTemplateVersion(ctx context.Context, req *UpdateWorkflowTemplateVersionRequest) (*WorkflowTemplate, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkflowTemplateVersion not implemented")
}
func (*UnimplementedWorkflowServiceServer) CreateWorkflowTemplateVersion(ctx context.Context, req *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowTemplateVersion not implemented")
}
@@ -883,6 +899,24 @@ func _WorkflowService_CreateWorkflowTemplate_Handler(srv interface{}, ctx contex
return interceptor(ctx, in, info, handler)
}
func _WorkflowService_UpdateWorkflowTemplateVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateWorkflowTemplateVersionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WorkflowServiceServer).UpdateWorkflowTemplateVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.WorkflowService/UpdateWorkflowTemplateVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WorkflowServiceServer).UpdateWorkflowTemplateVersion(ctx, req.(*UpdateWorkflowTemplateVersionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _WorkflowService_CreateWorkflowTemplateVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateWorkflowTemplateRequest)
if err := dec(in); err != nil {
@@ -975,6 +1009,10 @@ var _WorkflowService_serviceDesc = grpc.ServiceDesc{
MethodName: "CreateWorkflowTemplate",
Handler: _WorkflowService_CreateWorkflowTemplate_Handler,
},
{
MethodName: "UpdateWorkflowTemplateVersion",
Handler: _WorkflowService_UpdateWorkflowTemplateVersion_Handler,
},
{
MethodName: "CreateWorkflowTemplateVersion",
Handler: _WorkflowService_CreateWorkflowTemplateVersion_Handler,