get workflow implementation

This commit is contained in:
rushtehrani
2019-12-14 16:31:34 -08:00
parent ce37529baa
commit 14c0c25075
9 changed files with 645 additions and 34 deletions

View File

@@ -72,6 +72,147 @@ func (m *CreateWorkflowRequest) GetWorkflow() *Workflow {
return nil
}
type GetWorkflowRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetWorkflowRequest) Reset() { *m = GetWorkflowRequest{} }
func (m *GetWorkflowRequest) String() string { return proto.CompactTextString(m) }
func (*GetWorkflowRequest) ProtoMessage() {}
func (*GetWorkflowRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{1}
}
func (m *GetWorkflowRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetWorkflowRequest.Unmarshal(m, b)
}
func (m *GetWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetWorkflowRequest.Marshal(b, m, deterministic)
}
func (m *GetWorkflowRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetWorkflowRequest.Merge(m, src)
}
func (m *GetWorkflowRequest) XXX_Size() int {
return xxx_messageInfo_GetWorkflowRequest.Size(m)
}
func (m *GetWorkflowRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetWorkflowRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetWorkflowRequest proto.InternalMessageInfo
func (m *GetWorkflowRequest) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *GetWorkflowRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type ListWorkflowsRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListWorkflowsRequest) Reset() { *m = ListWorkflowsRequest{} }
func (m *ListWorkflowsRequest) String() string { return proto.CompactTextString(m) }
func (*ListWorkflowsRequest) ProtoMessage() {}
func (*ListWorkflowsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{2}
}
func (m *ListWorkflowsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListWorkflowsRequest.Unmarshal(m, b)
}
func (m *ListWorkflowsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListWorkflowsRequest.Marshal(b, m, deterministic)
}
func (m *ListWorkflowsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListWorkflowsRequest.Merge(m, src)
}
func (m *ListWorkflowsRequest) XXX_Size() int {
return xxx_messageInfo_ListWorkflowsRequest.Size(m)
}
func (m *ListWorkflowsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListWorkflowsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListWorkflowsRequest proto.InternalMessageInfo
func (m *ListWorkflowsRequest) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *ListWorkflowsRequest) GetUid() string {
if m != nil {
return m.Uid
}
return ""
}
type ListWorkflowsResponse struct {
Workflows []*Workflow `protobuf:"bytes,1,rep,name=workflows,proto3" json:"workflows,omitempty"`
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListWorkflowsResponse) Reset() { *m = ListWorkflowsResponse{} }
func (m *ListWorkflowsResponse) String() string { return proto.CompactTextString(m) }
func (*ListWorkflowsResponse) ProtoMessage() {}
func (*ListWorkflowsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{3}
}
func (m *ListWorkflowsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListWorkflowsResponse.Unmarshal(m, b)
}
func (m *ListWorkflowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListWorkflowsResponse.Marshal(b, m, deterministic)
}
func (m *ListWorkflowsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListWorkflowsResponse.Merge(m, src)
}
func (m *ListWorkflowsResponse) XXX_Size() int {
return xxx_messageInfo_ListWorkflowsResponse.Size(m)
}
func (m *ListWorkflowsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListWorkflowsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListWorkflowsResponse proto.InternalMessageInfo
func (m *ListWorkflowsResponse) GetWorkflows() []*Workflow {
if m != nil {
return m.Workflows
}
return nil
}
func (m *ListWorkflowsResponse) GetCount() int32 {
if m != nil {
return m.Count
}
return 0
}
type Workflow struct {
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
@@ -86,7 +227,7 @@ func (m *Workflow) Reset() { *m = Workflow{} }
func (m *Workflow) String() string { return proto.CompactTextString(m) }
func (*Workflow) ProtoMessage() {}
func (*Workflow) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{1}
return fileDescriptor_892c7f566756b0be, []int{4}
}
func (m *Workflow) XXX_Unmarshal(b []byte) error {
@@ -147,7 +288,7 @@ func (m *Parameter) Reset() { *m = Parameter{} }
func (m *Parameter) String() string { return proto.CompactTextString(m) }
func (*Parameter) ProtoMessage() {}
func (*Parameter) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{2}
return fileDescriptor_892c7f566756b0be, []int{5}
}
func (m *Parameter) XXX_Unmarshal(b []byte) error {
@@ -184,6 +325,9 @@ func (m *Parameter) GetValue() string {
func init() {
proto.RegisterType((*CreateWorkflowRequest)(nil), "api.CreateWorkflowRequest")
proto.RegisterType((*GetWorkflowRequest)(nil), "api.GetWorkflowRequest")
proto.RegisterType((*ListWorkflowsRequest)(nil), "api.ListWorkflowsRequest")
proto.RegisterType((*ListWorkflowsResponse)(nil), "api.ListWorkflowsResponse")
proto.RegisterType((*Workflow)(nil), "api.Workflow")
proto.RegisterType((*Parameter)(nil), "api.Parameter")
}
@@ -191,36 +335,42 @@ func init() {
func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) }
var fileDescriptor_892c7f566756b0be = []byte{
// 449 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xc1, 0x6a, 0x53, 0x41,
0x14, 0x86, 0x99, 0xa6, 0x95, 0xe6, 0x14, 0x63, 0x39, 0x5a, 0x0d, 0x21, 0x60, 0x18, 0x37, 0x29,
0x48, 0x86, 0x46, 0xba, 0xa9, 0x08, 0x4a, 0xd1, 0x6e, 0x5c, 0xc8, 0x55, 0x14, 0xdc, 0xe8, 0xb4,
0x3d, 0x96, 0xc1, 0xe4, 0xce, 0x38, 0x33, 0x49, 0x17, 0x21, 0x1b, 0x7d, 0x04, 0x97, 0x2e, 0x7d,
0x05, 0x17, 0xbe, 0x47, 0x5f, 0xc1, 0x07, 0x91, 0x4c, 0xee, 0x8c, 0xbd, 0xdc, 0x8b, 0x35, 0xb8,
0x9b, 0x9c, 0xf3, 0xcf, 0x7f, 0xbe, 0xf3, 0xe7, 0x0e, 0xb4, 0xce, 0xb5, 0xfd, 0xf8, 0x61, 0xa4,
0xcf, 0x07, 0xc6, 0x6a, 0xaf, 0xb1, 0x21, 0x8d, 0xea, 0x74, 0xcf, 0xb4, 0x3e, 0x1b, 0x91, 0x90,
0x46, 0x09, 0x99, 0xe7, 0xda, 0x4b, 0xaf, 0x74, 0xee, 0x96, 0x92, 0xce, 0x9d, 0x78, 0xe5,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0x4b, 0xd1, 0xcf, 0x45, 0x64, 0x77, 0x07, 0x29,
0x64, 0xfc, 0xc6, 0xe0, 0x76, 0xd9, 0x3f, 0x6e, 0x86, 0xbc, 0x66, 0x78, 0x0a, 0xa2, 0x80, 0xa8,
0x8f, 0x89, 0x3f, 0x0b, 0x30, 0x8f, 0xf9, 0xfd, 0xab, 0x61, 0xd2, 0x77, 0xe5, 0x0e, 0x2a, 0xe1,
0xe2, 0x05, 0x83, 0x9b, 0x47, 0xe4, 0x2b, 0x68, 0x77, 0xc3, 0xd8, 0x9a, 0xce, 0x15, 0x5c, 0x5f,
0x58, 0x00, 0x9b, 0xe3, 0x70, 0x15, 0x30, 0x31, 0x9b, 0xa8, 0xd3, 0xf9, 0xdb, 0x23, 0x7c, 0xba,
0xfa, 0x2d, 0x31, 0x25, 0xeb, 0x16, 0xef, 0x49, 0xcc, 0x8a, 0xd3, 0x1c, 0x7f, 0x32, 0xe8, 0x3e,
0x57, 0xae, 0x02, 0xff, 0xba, 0x90, 0x62, 0x3f, 0xd0, 0xff, 0x4d, 0x12, 0xf7, 0xdc, 0xfd, 0x07,
0xa5, 0x33, 0x3a, 0x77, 0xc4, 0x0f, 0xc3, 0xea, 0x8f, 0xf0, 0xe1, 0x7f, 0x2c, 0x71, 0x7c, 0x2d,
0x3c, 0xfe, 0x07, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x92, 0x6b, 0x2e, 0x4a, 0x04, 0x00,
0x00,
// 549 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xc1, 0x6e, 0xd3, 0x40,
0x10, 0xd5, 0x36, 0x2d, 0x34, 0x53, 0x35, 0x54, 0x43, 0x42, 0x83, 0x15, 0x89, 0x68, 0x11, 0x52,
0x4a, 0xab, 0x58, 0x0d, 0xea, 0xa5, 0x08, 0x09, 0x54, 0x91, 0x5e, 0x38, 0x20, 0x83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b1, 0x16,
0xdd, 0xd7, 0xbd, 0x1f, 0x61, 0x95, 0x49, 0xf1, 0x27, 0x81, 0x7b, 0xf9, 0xfd, 0x19, 0xe5, 0x90,
0x96, 0x2c, 0xd7, 0x0a, 0x9d, 0xf2, 0x28, 0xb7, 0x01, 0x1d, 0x6a, 0x0a, 0xcf, 0xe9, 0xc1, 0xbf,
0x29, 0xd8, 0x3f, 0x42, 0x1e, 0x17, 0xcc, 0x83, 0xd7, 0x04, 0xee, 0x66, 0x96, 0x6d, 0xe3, 0x0f,
0x96, 0x65, 0xa8, 0xc8, 0xeb, 0x1b, 0xd1, 0xc4, 0x62, 0x1c, 0xac, 0x42, 0xcc, 0x9d, 0x4f, 0xfd,
0x8b, 0xf8, 0xec, 0x14, 0x5f, 0xae, 0xfe, 0xca, 0x9d, 0xf1, 0x48, 0x2e, 0xfe, 0x46, 0x77, 0x9e,
0x9e, 0x62, 0xfc, 0x4d, 0xa0, 0x93, 0x95, 0xce, 0xd0, 0x7b, 0x97, 0x96, 0x62, 0xaf, 0xa0, 0xee,
0x72, 0x89, 0x99, 0x73, 0xaf, 0x42, 0x65, 0x6a, 0x8b, 0x13, 0x3d, 0xfa, 0x33, 0x7c, 0xfa, 0x1f,
0x43, 0x9c, 0xdf, 0xd2, 0x1f, 0xf9, 0x93, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe3, 0xaa, 0xa3,
0xc7, 0x16, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -237,6 +387,8 @@ const _ = grpc.SupportPackageIsVersion4
type WorkflowServiceClient interface {
// Creates a Workflow
CreateWorkflow(ctx context.Context, in *CreateWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error)
GetWorkflow(ctx context.Context, in *GetWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error)
ListWorkflows(ctx context.Context, in *ListWorkflowsRequest, opts ...grpc.CallOption) (*ListWorkflowsResponse, 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)
@@ -259,6 +411,24 @@ func (c *workflowServiceClient) CreateWorkflow(ctx context.Context, in *CreateWo
return out, nil
}
func (c *workflowServiceClient) GetWorkflow(ctx context.Context, in *GetWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error) {
out := new(Workflow)
err := c.cc.Invoke(ctx, "/api.WorkflowService/GetWorkflow", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *workflowServiceClient) ListWorkflows(ctx context.Context, in *ListWorkflowsRequest, opts ...grpc.CallOption) (*ListWorkflowsResponse, error) {
out := new(ListWorkflowsResponse)
err := c.cc.Invoke(ctx, "/api.WorkflowService/ListWorkflows", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *workflowServiceClient) CreateWorkflowTemplate(ctx context.Context, in *CreateWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error) {
out := new(WorkflowTemplate)
err := c.cc.Invoke(ctx, "/api.WorkflowService/CreateWorkflowTemplate", in, out, opts...)
@@ -290,6 +460,8 @@ func (c *workflowServiceClient) ListWorkflowTemplateVersions(ctx context.Context
type WorkflowServiceServer interface {
// Creates a Workflow
CreateWorkflow(context.Context, *CreateWorkflowRequest) (*Workflow, error)
GetWorkflow(context.Context, *GetWorkflowRequest) (*Workflow, error)
ListWorkflows(context.Context, *ListWorkflowsRequest) (*ListWorkflowsResponse, error)
CreateWorkflowTemplate(context.Context, *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error)
GetWorkflowTemplate(context.Context, *GetWorkflowTemplateRequest) (*WorkflowTemplate, error)
ListWorkflowTemplateVersions(context.Context, *ListWorkflowTemplateVersionsRequest) (*ListWorkflowTemplateVersionsResponse, error)
@@ -302,6 +474,12 @@ type UnimplementedWorkflowServiceServer struct {
func (*UnimplementedWorkflowServiceServer) CreateWorkflow(ctx context.Context, req *CreateWorkflowRequest) (*Workflow, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflow not implemented")
}
func (*UnimplementedWorkflowServiceServer) GetWorkflow(ctx context.Context, req *GetWorkflowRequest) (*Workflow, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWorkflow not implemented")
}
func (*UnimplementedWorkflowServiceServer) ListWorkflows(ctx context.Context, req *ListWorkflowsRequest) (*ListWorkflowsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListWorkflows not implemented")
}
func (*UnimplementedWorkflowServiceServer) CreateWorkflowTemplate(ctx context.Context, req *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowTemplate not implemented")
}
@@ -334,6 +512,42 @@ func _WorkflowService_CreateWorkflow_Handler(srv interface{}, ctx context.Contex
return interceptor(ctx, in, info, handler)
}
func _WorkflowService_GetWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetWorkflowRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WorkflowServiceServer).GetWorkflow(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.WorkflowService/GetWorkflow",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WorkflowServiceServer).GetWorkflow(ctx, req.(*GetWorkflowRequest))
}
return interceptor(ctx, in, info, handler)
}
func _WorkflowService_ListWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListWorkflowsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WorkflowServiceServer).ListWorkflows(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.WorkflowService/ListWorkflows",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WorkflowServiceServer).ListWorkflows(ctx, req.(*ListWorkflowsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _WorkflowService_CreateWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateWorkflowTemplateRequest)
if err := dec(in); err != nil {
@@ -396,6 +610,14 @@ var _WorkflowService_serviceDesc = grpc.ServiceDesc{
MethodName: "CreateWorkflow",
Handler: _WorkflowService_CreateWorkflow_Handler,
},
{
MethodName: "GetWorkflow",
Handler: _WorkflowService_GetWorkflow_Handler,
},
{
MethodName: "ListWorkflows",
Handler: _WorkflowService_ListWorkflows_Handler,
},
{
MethodName: "CreateWorkflowTemplate",
Handler: _WorkflowService_CreateWorkflowTemplate_Handler,