separate workflow_template.proto

This commit is contained in:
rushtehrani
2019-12-09 19:26:14 -08:00
parent 66bcecb2fd
commit 0996aa830d
5 changed files with 141 additions and 85 deletions

View File

@@ -182,93 +182,36 @@ func (m *Parameter) GetValue() string {
return "" return ""
} }
type WorkflowTemplate struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Manifest string `protobuf:"bytes,4,opt,name=manifest,proto3" json:"manifest,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkflowTemplate) Reset() { *m = WorkflowTemplate{} }
func (m *WorkflowTemplate) String() string { return proto.CompactTextString(m) }
func (*WorkflowTemplate) ProtoMessage() {}
func (*WorkflowTemplate) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{3}
}
func (m *WorkflowTemplate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkflowTemplate.Unmarshal(m, b)
}
func (m *WorkflowTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkflowTemplate.Marshal(b, m, deterministic)
}
func (m *WorkflowTemplate) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkflowTemplate.Merge(m, src)
}
func (m *WorkflowTemplate) XXX_Size() int {
return xxx_messageInfo_WorkflowTemplate.Size(m)
}
func (m *WorkflowTemplate) XXX_DiscardUnknown() {
xxx_messageInfo_WorkflowTemplate.DiscardUnknown(m)
}
var xxx_messageInfo_WorkflowTemplate proto.InternalMessageInfo
func (m *WorkflowTemplate) GetUuid() string {
if m != nil {
return m.Uuid
}
return ""
}
func (m *WorkflowTemplate) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *WorkflowTemplate) GetManifest() string {
if m != nil {
return m.Manifest
}
return ""
}
func init() { func init() {
proto.RegisterType((*CreateWorkflowRequest)(nil), "api.CreateWorkflowRequest") proto.RegisterType((*CreateWorkflowRequest)(nil), "api.CreateWorkflowRequest")
proto.RegisterType((*Workflow)(nil), "api.Workflow") proto.RegisterType((*Workflow)(nil), "api.Workflow")
proto.RegisterType((*Parameter)(nil), "api.Parameter") proto.RegisterType((*Parameter)(nil), "api.Parameter")
proto.RegisterType((*WorkflowTemplate)(nil), "api.WorkflowTemplate")
} }
func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) } func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) }
var fileDescriptor_892c7f566756b0be = []byte{ var fileDescriptor_892c7f566756b0be = []byte{
// 333 bytes of a gzipped FileDescriptorProto // 319 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x41, 0x4e, 0x2a, 0x41, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xc1, 0x4e, 0xf2, 0x40,
0x10, 0xcd, 0x00, 0x9f, 0x30, 0x45, 0x3e, 0x9f, 0x74, 0x3e, 0xc9, 0x64, 0xc2, 0x82, 0x8c, 0x1b, 0x14, 0x85, 0x53, 0xe0, 0x27, 0xf4, 0x92, 0x1f, 0xcd, 0x44, 0x62, 0xd3, 0xb0, 0x20, 0x75, 0x83,
0xdc, 0xcc, 0x04, 0x0c, 0x1b, 0x77, 0xc6, 0x0b, 0x98, 0xd1, 0xe8, 0xd6, 0x02, 0x0b, 0xd2, 0x3a, 0x9b, 0x36, 0x60, 0xd8, 0xb8, 0x33, 0xbe, 0x80, 0xa9, 0x26, 0x2e, 0xf5, 0x82, 0x57, 0x52, 0x2d,
0x33, 0xdd, 0x4e, 0xf7, 0xc0, 0xc2, 0xb0, 0xf1, 0x0a, 0x9e, 0xc1, 0x13, 0x79, 0x05, 0x0f, 0x62, 0x9d, 0x71, 0x66, 0x0a, 0x0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d, 0xaf, 0xe4, 0xbf, 0xde, 0x32, 0x84, 0x56, 0x8e, 0x05, 0x9f, 0x93, 0x08, 0xfe, 0xad, 0x30, 0x2f, 0x6d, 0xd0, 0xea, 0x63, 0xb2, 0x81, 0x03, 0x0b, 0xbf, 0x26, 0xb9,
0xd2, 0x46, 0xad, 0x9f, 0xba, 0x7c, 0xbc, 0x86, 0x7f, 0x96, 0xf7, 0x92, 0xca, 0x25, 0x9f, 0x11, 0xca, 0xe6, 0xc4, 0x9e, 0xa0, 0x5d, 0x75, 0xca, 0x42, 0xb3, 0xfc, 0xcf, 0x82, 0xc3, 0xfd, 0xc2,
0xbb, 0x87, 0xe6, 0xd6, 0x2b, 0x16, 0x9a, 0xa5, 0x7e, 0x34, 0x2e, 0x3c, 0x34, 0x22, 0x9a, 0x3c, 0xa2, 0xe9, 0xdb, 0xe7, 0xd7, 0x7b, 0x23, 0x89, 0x4e, 0xb6, 0x2f, 0xa8, 0x92, 0xd5, 0x78, 0x46,
0xbf, 0xbd, 0xbf, 0xd4, 0x92, 0xe8, 0x68, 0x73, 0x00, 0x2a, 0x59, 0x8e, 0xa6, 0xa4, 0x71, 0x94, 0x1a, 0xc7, 0xc9, 0xab, 0xeb, 0x7c, 0x93, 0xd8, 0xc8, 0xea, 0xdc, 0xb5, 0x3b, 0x6b, 0x9b, 0x67,
0x3c, 0x39, 0x2f, 0xd7, 0x89, 0xfd, 0x0a, 0x75, 0xea, 0x5c, 0x9b, 0x36, 0xcd, 0x79, 0x9c, 0x7c, 0x3c, 0xfb, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x33, 0xb5, 0x82, 0xa3, 0x14, 0x02, 0x00, 0x00,
0x04, 0x00, 0x00, 0xff, 0xff, 0x08, 0xa0, 0xc9, 0x92, 0x53, 0x02, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

View File

@@ -3,6 +3,7 @@ syntax = "proto3";
package api; package api;
import "google/api/annotations.proto"; import "google/api/annotations.proto";
import "workflow_template.proto";
service WorkflowService { service WorkflowService {
// Creates a Workflow // Creates a Workflow
@@ -32,10 +33,3 @@ message Parameter {
string name = 1; string name = 1;
string value = 2; string value = 2;
} }
message WorkflowTemplate {
string uuid = 1;
string name = 2;
string manifest = 4;
}

View File

@@ -0,0 +1,94 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: workflow_template.proto
package api
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type WorkflowTemplate struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Manifest string `protobuf:"bytes,4,opt,name=manifest,proto3" json:"manifest,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WorkflowTemplate) Reset() { *m = WorkflowTemplate{} }
func (m *WorkflowTemplate) String() string { return proto.CompactTextString(m) }
func (*WorkflowTemplate) ProtoMessage() {}
func (*WorkflowTemplate) Descriptor() ([]byte, []int) {
return fileDescriptor_b9a07547748a96e8, []int{0}
}
func (m *WorkflowTemplate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WorkflowTemplate.Unmarshal(m, b)
}
func (m *WorkflowTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WorkflowTemplate.Marshal(b, m, deterministic)
}
func (m *WorkflowTemplate) XXX_Merge(src proto.Message) {
xxx_messageInfo_WorkflowTemplate.Merge(m, src)
}
func (m *WorkflowTemplate) XXX_Size() int {
return xxx_messageInfo_WorkflowTemplate.Size(m)
}
func (m *WorkflowTemplate) XXX_DiscardUnknown() {
xxx_messageInfo_WorkflowTemplate.DiscardUnknown(m)
}
var xxx_messageInfo_WorkflowTemplate proto.InternalMessageInfo
func (m *WorkflowTemplate) GetUuid() string {
if m != nil {
return m.Uuid
}
return ""
}
func (m *WorkflowTemplate) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *WorkflowTemplate) GetManifest() string {
if m != nil {
return m.Manifest
}
return ""
}
func init() {
proto.RegisterType((*WorkflowTemplate)(nil), "api.WorkflowTemplate")
}
func init() { proto.RegisterFile("workflow_template.proto", fileDescriptor_b9a07547748a96e8) }
var fileDescriptor_b9a07547748a96e8 = []byte{
// 115 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0xcf, 0x2f, 0xca,
0x4e, 0xcb, 0xc9, 0x2f, 0x8f, 0x2f, 0x49, 0xcd, 0x2d, 0xc8, 0x49, 0x2c, 0x49, 0xd5, 0x2b, 0x28,
0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4e, 0x2c, 0xc8, 0x54, 0x0a, 0xe3, 0x12, 0x08, 0x87, 0xca, 0x87,
0x40, 0xa5, 0x85, 0x84, 0xb8, 0x58, 0x4a, 0x4b, 0x33, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38,
0x83, 0xc0, 0x6c, 0x90, 0x58, 0x5e, 0x62, 0x6e, 0xaa, 0x04, 0x13, 0x44, 0x0c, 0xc4, 0x16, 0x92,
0xe2, 0xe2, 0xc8, 0x4d, 0xcc, 0xcb, 0x4c, 0x4b, 0x2d, 0x2e, 0x91, 0x60, 0x01, 0x8b, 0xc3, 0xf9,
0x49, 0x6c, 0x60, 0x3b, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe4, 0xe9, 0x1d, 0x6a, 0x7e,
0x00, 0x00, 0x00,
}

View File

@@ -0,0 +1,10 @@
syntax = "proto3";
package api;
message WorkflowTemplate {
string uuid = 1;
string name = 2;
string manifest = 4;
}

View File

@@ -0,0 +1,15 @@
{
"swagger": "2.0",
"info": {
"title": "workflow_template.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {}
}