support archiving workflow_templates

This commit is contained in:
rushtehrani
2020-02-04 12:23:52 -08:00
parent 5086508996
commit 04b76e6aa8
11 changed files with 478 additions and 97 deletions

View File

@@ -511,60 +511,62 @@ func init() {
func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) }
var fileDescriptor_892c7f566756b0be = []byte{
// 835 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xdf, 0x4e, 0x33, 0x45,
0x14, 0xc0, 0x33, 0xf4, 0x2b, 0xd2, 0xf3, 0xa5, 0x1f, 0x78, 0x28, 0xa5, 0x56, 0x88, 0x38, 0x62,
0x02, 0x42, 0xba, 0xa5, 0xfe, 0x09, 0xc1, 0x90, 0x48, 0x08, 0xe0, 0x45, 0x63, 0x4c, 0x15, 0x89,
0x78, 0x21, 0x43, 0x3b, 0xd4, 0x8d, 0x65, 0x67, 0xdd, 0x99, 0x96, 0x98, 0xa6, 0x17, 0xea, 0x9d,
0xb7, 0x7a, 0xe7, 0x8d, 0xf1, 0x29, 0xbc, 0xf6, 0x15, 0x78, 0x02, 0x13, 0x7d, 0x03, 0x1f, 0xc0,
0xec, 0xec, 0xce, 0xb2, 0xbb, 0x5d, 0xa0, 0x15, 0xef, 0x3a, 0x73, 0xce, 0x9c, 0xf3, 0x3b, 0x7f,
0xbb, 0xf0, 0xe2, 0x46, 0x78, 0x5f, 0x5f, 0xf5, 0xc4, 0x4d, 0xcd, 0xf5, 0x84, 0x12, 0x98, 0x63,
0xae, 0x5d, 0x5d, 0xe9, 0x0a, 0xd1, 0xed, 0x71, 0x8b, 0xb9, 0xb6, 0xc5, 0x1c, 0x47, 0x28, 0xa6,
0x6c, 0xe1, 0xc8, 0x40, 0xa5, 0xba, 0x6c, 0x9e, 0x7c, 0xa9, 0xf8, 0xb5, 0xdb, 0x63, 0x8a, 0x07,
0x02, 0x7a, 0x01, 0x4b, 0x87, 0x1e, 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x43, 0xd1, 0x28, 0x23,
0xce, 0x3f, 0x08, 0xac, 0x66, 0x27, 0xda, 0xc4, 0xf9, 0x84, 0x62, 0x5c, 0xe9, 0xf8, 0x2e, 0x68,
0xf3, 0xff, 0x8c, 0x2f, 0x23, 0x88, 0x5b, 0x02, 0x8b, 0xb1, 0xce, 0x8e, 0xee, 0x5f, 0x4b, 0xf7,
0xfc, 0x84, 0xdc, 0x3f, 0x04, 0x85, 0x19, 0x61, 0x63, 0x3a, 0x70, 0x9f, 0xf3, 0xfc, 0x04, 0x8f,
0xa6, 0x7f, 0x15, 0xab, 0x9e, 0x29, 0x16, 0xfe, 0x4e, 0x60, 0x25, 0xbe, 0x83, 0x52, 0x85, 0x91,
0xb8, 0x31, 0xb6, 0xa6, 0xd2, 0x2a, 0x26, 0xce, 0xcd, 0x09, 0x34, 0xc3, 0xfd, 0x76, 0xa8, 0x43,
0xdf, 0xc7, 0xf7, 0x9f, 0x10, 0x04, 0xfe, 0x4c, 0x92, 0x5f, 0x01, 0xc6, 0x9b, 0xc4, 0xd7, 0xef,
0x25, 0x89, 0x60, 0xe9, 0x43, 0x2a, 0x21, 0xe5, 0x3b, 0x9a, 0xb2, 0x86, 0x53, 0x8d, 0xf9, 0xe5,
0xac, 0xfe, 0x8c, 0x7d, 0xfb, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x6f, 0xd7, 0x25, 0x14,
0x0b, 0x00, 0x00,
// 869 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0x4f, 0x6f, 0x1b, 0x45,
0x14, 0xc0, 0x35, 0x71, 0x1d, 0xe2, 0x57, 0xb9, 0x29, 0xaf, 0x8e, 0x6d, 0x4c, 0x2a, 0xc2, 0x34,
0x48, 0x49, 0x5b, 0x79, 0x5d, 0x53, 0x50, 0x15, 0x54, 0x89, 0xa8, 0x6a, 0xcb, 0xc1, 0x42, 0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6, 0xd9,
0x6f, 0x4f, 0x74, 0xe8, 0x8f, 0xf1, 0xa3, 0x2b, 0x04, 0x81, 0xbf, 0x92, 0xf4, 0x57, 0x80, 0xf5,
0x26, 0xf1, 0xdd, 0x33, 0x49, 0x62, 0x58, 0x7a, 0x9e, 0x8a, 0xa1, 0x7c, 0xa8, 0x29, 0x9b, 0xb8,
0xd0, 0x98, 0xe3, 0x31, 0x81, 0xda, 0x6e, 0xd0, 0x3b, 0x70, 0xc7, 0xb3, 0x3b, 0xe7, 0x8e, 0xf6,
0x7a, 0x86, 0xd4, 0xa2, 0x6d, 0x9e, 0xaf, 0x64, 0xe0, 0x76, 0x34, 0xdc, 0xc3, 0xbb, 0x97, 0xe8,
0x9e, 0xbd, 0x65, 0xfd, 0xa5, 0xfd, 0xfe, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x85, 0x98, 0x83,
0x4b, 0xb7, 0x0b, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -591,6 +593,7 @@ type WorkflowServiceClient interface {
GetWorkflowTemplate(ctx context.Context, in *GetWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error)
ListWorkflowTemplateVersions(ctx context.Context, in *ListWorkflowTemplateVersionsRequest, opts ...grpc.CallOption) (*ListWorkflowTemplateVersionsResponse, error)
ListWorkflowTemplates(ctx context.Context, in *ListWorkflowTemplatesRequest, opts ...grpc.CallOption) (*ListWorkflowTemplatesResponse, error)
ArchiveWorkflowTemplate(ctx context.Context, in *ArchiveWorkflowTemplateRequest, opts ...grpc.CallOption) (*ArchiveWorkflowTemplateResponse, error)
}
type workflowServiceClient struct {
@@ -746,6 +749,15 @@ func (c *workflowServiceClient) ListWorkflowTemplates(ctx context.Context, in *L
return out, nil
}
func (c *workflowServiceClient) ArchiveWorkflowTemplate(ctx context.Context, in *ArchiveWorkflowTemplateRequest, opts ...grpc.CallOption) (*ArchiveWorkflowTemplateResponse, error) {
out := new(ArchiveWorkflowTemplateResponse)
err := c.cc.Invoke(ctx, "/api.WorkflowService/ArchiveWorkflowTemplate", 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
@@ -760,6 +772,7 @@ type WorkflowServiceServer interface {
GetWorkflowTemplate(context.Context, *GetWorkflowTemplateRequest) (*WorkflowTemplate, error)
ListWorkflowTemplateVersions(context.Context, *ListWorkflowTemplateVersionsRequest) (*ListWorkflowTemplateVersionsResponse, error)
ListWorkflowTemplates(context.Context, *ListWorkflowTemplatesRequest) (*ListWorkflowTemplatesResponse, error)
ArchiveWorkflowTemplate(context.Context, *ArchiveWorkflowTemplateRequest) (*ArchiveWorkflowTemplateResponse, error)
}
// UnimplementedWorkflowServiceServer can be embedded to have forward compatible implementations.
@@ -799,6 +812,9 @@ func (*UnimplementedWorkflowServiceServer) ListWorkflowTemplateVersions(ctx cont
func (*UnimplementedWorkflowServiceServer) ListWorkflowTemplates(ctx context.Context, req *ListWorkflowTemplatesRequest) (*ListWorkflowTemplatesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowTemplates not implemented")
}
func (*UnimplementedWorkflowServiceServer) ArchiveWorkflowTemplate(ctx context.Context, req *ArchiveWorkflowTemplateRequest) (*ArchiveWorkflowTemplateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ArchiveWorkflowTemplate not implemented")
}
func RegisterWorkflowServiceServer(s *grpc.Server, srv WorkflowServiceServer) {
s.RegisterService(&_WorkflowService_serviceDesc, srv)
@@ -1008,6 +1024,24 @@ func _WorkflowService_ListWorkflowTemplates_Handler(srv interface{}, ctx context
return interceptor(ctx, in, info, handler)
}
func _WorkflowService_ArchiveWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ArchiveWorkflowTemplateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WorkflowServiceServer).ArchiveWorkflowTemplate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.WorkflowService/ArchiveWorkflowTemplate",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WorkflowServiceServer).ArchiveWorkflowTemplate(ctx, req.(*ArchiveWorkflowTemplateRequest))
}
return interceptor(ctx, in, info, handler)
}
var _WorkflowService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.WorkflowService",
HandlerType: (*WorkflowServiceServer)(nil),
@@ -1048,6 +1082,10 @@ var _WorkflowService_serviceDesc = grpc.ServiceDesc{
MethodName: "ListWorkflowTemplates",
Handler: _WorkflowService_ListWorkflowTemplates_Handler,
},
{
MethodName: "ArchiveWorkflowTemplate",
Handler: _WorkflowService_ArchiveWorkflowTemplate_Handler,
},
},
Streams: []grpc.StreamDesc{
{