add ListWorkflowTemplateVersions

This commit is contained in:
rushtehrani
2019-12-12 17:54:45 -08:00
parent 87c9d20f4d
commit b0f150a49b
9 changed files with 409 additions and 41 deletions

View File

@@ -191,32 +191,35 @@ func init() {
func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) }
var fileDescriptor_892c7f566756b0be = []byte{
// 388 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x4e, 0xf2, 0x40,
0x10, 0xc7, 0x53, 0xca, 0xf7, 0x85, 0x0e, 0x11, 0xc9, 0x2a, 0xda, 0x34, 0x24, 0x92, 0xf5, 0x82,
0x89, 0x69, 0x43, 0x95, 0x0b, 0x27, 0x8d, 0x89, 0x5e, 0x4d, 0x35, 0xf1, 0xa8, 0x0b, 0xac, 0xa4,
0xb1, 0x74, 0x6b, 0xbb, 0x85, 0x03, 0xe1, 0xe2, 0xcd, 0xb3, 0x47, 0x8f, 0x3e, 0x80, 0x0f, 0xe3,
0x2b, 0xf8, 0x20, 0x86, 0xa5, 0xbb, 0xd2, 0xd0, 0x84, 0x78, 0x5b, 0x66, 0x86, 0xdf, 0xfc, 0xf6,
0xdf, 0x85, 0xda, 0x94, 0xc5, 0x4f, 0x8f, 0x01, 0x9b, 0xda, 0x51, 0xcc, 0x38, 0x43, 0x3a, 0x89,
0x7c, 0xab, 0x39, 0x62, 0x6c, 0x14, 0x50, 0x87, 0x44, 0xbe, 0x43, 0xc2, 0x90, 0x71, 0xc2, 0x7d,
0x16, 0x26, 0xcb, 0x11, 0x6b, 0x5f, 0xfe, 0xe5, 0x9e, 0xd3, 0x71, 0x14, 0x10, 0x4e, 0x97, 0x0d,
0xfc, 0x00, 0x8d, 0x8b, 0x98, 0x12, 0x4e, 0xef, 0xb2, 0x01, 0x8f, 0x3e, 0xa7, 0x34, 0xe1, 0xa8,
0x09, 0x46, 0x48, 0xc6, 0x34, 0x89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0xe3, 0xcd, 0x32,
0xea, 0x5d, 0x25, 0xbd, 0xb5, 0x70, 0xd1, 0xab, 0x06, 0x3b, 0x57, 0x94, 0xaf, 0xa9, 0x1d, 0x88,
0xb5, 0x05, 0x9d, 0x0d, 0x5e, 0x3d, 0xe1, 0x75, 0x8a, 0xdc, 0xbf, 0x78, 0x39, 0xb3, 0xd4, 0x1f,
0xce, 0xfb, 0xff, 0xc5, 0xbb, 0x3f, 0xf9, 0x09, 0x00, 0x00, 0xff, 0xff, 0x6a, 0xc9, 0x46, 0x21,
0x45, 0x03, 0x00, 0x00,
// 436 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x31, 0x6f, 0x13, 0x31,
0x18, 0x86, 0xe5, 0x26, 0xa0, 0xe6, 0xab, 0x08, 0xd5, 0x07, 0x85, 0x28, 0x8a, 0x44, 0x64, 0x96,
0x54, 0x42, 0xb1, 0x1a, 0xe8, 0x12, 0x84, 0x04, 0xaa, 0x04, 0x0b, 0x03, 0x3a, 0x10, 0x8c, 0xe0,
0xb6, 0x1f, 0x95, 0x45, 0x72, 0x36, 0xb6, 0x93, 0x0e, 0x55, 0x17, 0x36, 0x66, 0x46, 0x46, 0xfe,
0x04, 0xff, 0x83, 0xbf, 0xc0, 0xc4, 0xaf, 0x40, 0xe7, 0x9c, 0x4d, 0x4f, 0x77, 0xa2, 0xcd, 0xe6,
0xf3, 0xf7, 0xde, 0xfb, 0x3e, 0x7e, 0xef, 0x0c, 0xdd, 0x53, 0x6d, 0x3f, 0x7d, 0x9c, 0xe9, 0xd3,
0xb1, 0xb1, 0xda, 0x6b, 0x6c, 0x49, 0xa3, 0xfa, 0x83, 0x13, 0xad, 0x4f, 0x66, 0x24, 0xa4, 0x51,
0x42, 0xe6, 0xb9, 0xf6, 0xd2, 0x2b, 0x9d, 0xbb, 0x95, 0xa4, 0x7f, 0x37, 0xbe, 0xf2, 0xde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c, 0x13, 0x67, 0xa9, 0xfa, 0x73, 0x11, 0xd9, 0xdd, 0x34, 0x95, 0x8c,
0xdf, 0x19, 0xdc, 0xa9, 0xfa, 0xc7, 0x93, 0x21, 0x6f, 0x08, 0x4f, 0x45, 0x94, 0x10, 0xcd, 0x35,
0xf1, 0xe7, 0x01, 0xe6, 0x29, 0x7f, 0x70, 0x39, 0x4c, 0xfa, 0xaf, 0xdc, 0xb4, 0x56, 0x2e, 0x7e,
0x65, 0x70, 0xeb, 0x05, 0xf9, 0x1a, 0xda, 0xbd, 0x10, 0xdb, 0x30, 0xb9, 0x84, 0x6b, 0x1a, 0xb8,
0x1e, 0xe1, 0x64, 0x1d, 0x2e, 0x71, 0xb6, 0x50, 0xc7, 0xe7, 0xf8, 0x93, 0xc1, 0xe0, 0xa5, 0x72,
0xb5, 0xc8, 0xb7, 0x64, 0x5d, 0x71, 0x61, 0x70, 0x14, 0x32, 0xff, 0x27, 0x89, 0x74, 0xbb, 0x57,
0x50, 0x3a, 0xa3, 0x73, 0x47, 0xfc, 0x20, 0x10, 0x3f, 0xc1, 0xc7, 0xeb, 0x13, 0x8b, 0x65, 0x69,
0x76, 0x78, 0x3d, 0x5c, 0xd9, 0x87, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x98, 0xff, 0x3b, 0x58,
0x00, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -235,6 +238,7 @@ type WorkflowServiceClient interface {
CreateWorkflow(ctx context.Context, in *CreateWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error)
CreateWorkflowTemplate(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)
}
type workflowServiceClient struct {
@@ -272,12 +276,22 @@ func (c *workflowServiceClient) GetWorkflowTemplate(ctx context.Context, in *Get
return out, nil
}
func (c *workflowServiceClient) ListWorkflowTemplateVersions(ctx context.Context, in *ListWorkflowTemplateVersionsRequest, opts ...grpc.CallOption) (*ListWorkflowTemplateVersionsResponse, error) {
out := new(ListWorkflowTemplateVersionsResponse)
err := c.cc.Invoke(ctx, "/api.WorkflowService/ListWorkflowTemplateVersions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// WorkflowServiceServer is the server API for WorkflowService service.
type WorkflowServiceServer interface {
// Creates a Workflow
CreateWorkflow(context.Context, *CreateWorkflowRequest) (*Workflow, error)
CreateWorkflowTemplate(context.Context, *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error)
GetWorkflowTemplate(context.Context, *GetWorkflowTemplateRequest) (*WorkflowTemplate, error)
ListWorkflowTemplateVersions(context.Context, *ListWorkflowTemplateVersionsRequest) (*ListWorkflowTemplateVersionsResponse, error)
}
// UnimplementedWorkflowServiceServer can be embedded to have forward compatible implementations.
@@ -293,6 +307,9 @@ func (*UnimplementedWorkflowServiceServer) CreateWorkflowTemplate(ctx context.Co
func (*UnimplementedWorkflowServiceServer) GetWorkflowTemplate(ctx context.Context, req *GetWorkflowTemplateRequest) (*WorkflowTemplate, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowTemplate not implemented")
}
func (*UnimplementedWorkflowServiceServer) ListWorkflowTemplateVersions(ctx context.Context, req *ListWorkflowTemplateVersionsRequest) (*ListWorkflowTemplateVersionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowTemplateVersions not implemented")
}
func RegisterWorkflowServiceServer(s *grpc.Server, srv WorkflowServiceServer) {
s.RegisterService(&_WorkflowService_serviceDesc, srv)
@@ -352,6 +369,24 @@ func _WorkflowService_GetWorkflowTemplate_Handler(srv interface{}, ctx context.C
return interceptor(ctx, in, info, handler)
}
func _WorkflowService_ListWorkflowTemplateVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListWorkflowTemplateVersionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WorkflowServiceServer).ListWorkflowTemplateVersions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.WorkflowService/ListWorkflowTemplateVersions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WorkflowServiceServer).ListWorkflowTemplateVersions(ctx, req.(*ListWorkflowTemplateVersionsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _WorkflowService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.WorkflowService",
HandlerType: (*WorkflowServiceServer)(nil),
@@ -368,6 +403,10 @@ var _WorkflowService_serviceDesc = grpc.ServiceDesc{
MethodName: "GetWorkflowTemplate",
Handler: _WorkflowService_GetWorkflowTemplate_Handler,
},
{
MethodName: "ListWorkflowTemplateVersions",
Handler: _WorkflowService_ListWorkflowTemplateVersions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "workflow.proto",