mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 05:36:50 +08:00
415 lines
16 KiB
Go
415 lines
16 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: workflow.proto
|
|
|
|
package api
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
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 CreateWorkflowRequest struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
Workflow *Workflow `protobuf:"bytes,2,opt,name=workflow,proto3" json:"workflow,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CreateWorkflowRequest) Reset() { *m = CreateWorkflowRequest{} }
|
|
func (m *CreateWorkflowRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateWorkflowRequest) ProtoMessage() {}
|
|
func (*CreateWorkflowRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_892c7f566756b0be, []int{0}
|
|
}
|
|
|
|
func (m *CreateWorkflowRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CreateWorkflowRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *CreateWorkflowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CreateWorkflowRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CreateWorkflowRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CreateWorkflowRequest.Merge(m, src)
|
|
}
|
|
func (m *CreateWorkflowRequest) XXX_Size() int {
|
|
return xxx_messageInfo_CreateWorkflowRequest.Size(m)
|
|
}
|
|
func (m *CreateWorkflowRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CreateWorkflowRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CreateWorkflowRequest proto.InternalMessageInfo
|
|
|
|
func (m *CreateWorkflowRequest) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateWorkflowRequest) GetWorkflow() *Workflow {
|
|
if m != nil {
|
|
return m.Workflow
|
|
}
|
|
return nil
|
|
}
|
|
|
|
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"`
|
|
Parameters []*Parameter `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"`
|
|
WorkflowTemplate *WorkflowTemplate `protobuf:"bytes,4,opt,name=workflowTemplate,proto3" json:"workflowTemplate,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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}
|
|
}
|
|
|
|
func (m *Workflow) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Workflow.Unmarshal(m, b)
|
|
}
|
|
func (m *Workflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Workflow.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Workflow) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Workflow.Merge(m, src)
|
|
}
|
|
func (m *Workflow) XXX_Size() int {
|
|
return xxx_messageInfo_Workflow.Size(m)
|
|
}
|
|
func (m *Workflow) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Workflow.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Workflow proto.InternalMessageInfo
|
|
|
|
func (m *Workflow) GetUid() string {
|
|
if m != nil {
|
|
return m.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Workflow) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Workflow) GetParameters() []*Parameter {
|
|
if m != nil {
|
|
return m.Parameters
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Workflow) GetWorkflowTemplate() *WorkflowTemplate {
|
|
if m != nil {
|
|
return m.WorkflowTemplate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Parameter struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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}
|
|
}
|
|
|
|
func (m *Parameter) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Parameter.Unmarshal(m, b)
|
|
}
|
|
func (m *Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Parameter.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Parameter) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Parameter.Merge(m, src)
|
|
}
|
|
func (m *Parameter) XXX_Size() int {
|
|
return xxx_messageInfo_Parameter.Size(m)
|
|
}
|
|
func (m *Parameter) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Parameter.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Parameter proto.InternalMessageInfo
|
|
|
|
func (m *Parameter) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Parameter) GetValue() string {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*CreateWorkflowRequest)(nil), "api.CreateWorkflowRequest")
|
|
proto.RegisterType((*Workflow)(nil), "api.Workflow")
|
|
proto.RegisterType((*Parameter)(nil), "api.Parameter")
|
|
}
|
|
|
|
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,
|
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 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,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// WorkflowServiceClient is the client API for WorkflowService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type WorkflowServiceClient interface {
|
|
// Creates a Workflow
|
|
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 {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewWorkflowServiceClient(cc *grpc.ClientConn) WorkflowServiceClient {
|
|
return &workflowServiceClient{cc}
|
|
}
|
|
|
|
func (c *workflowServiceClient) CreateWorkflow(ctx context.Context, in *CreateWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error) {
|
|
out := new(Workflow)
|
|
err := c.cc.Invoke(ctx, "/api.WorkflowService/CreateWorkflow", 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...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *workflowServiceClient) GetWorkflowTemplate(ctx context.Context, in *GetWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error) {
|
|
out := new(WorkflowTemplate)
|
|
err := c.cc.Invoke(ctx, "/api.WorkflowService/GetWorkflowTemplate", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
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.
|
|
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) CreateWorkflowTemplate(ctx context.Context, req *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowTemplate not implemented")
|
|
}
|
|
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)
|
|
}
|
|
|
|
func _WorkflowService_CreateWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateWorkflowRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WorkflowServiceServer).CreateWorkflow(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.WorkflowService/CreateWorkflow",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WorkflowServiceServer).CreateWorkflow(ctx, req.(*CreateWorkflowRequest))
|
|
}
|
|
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 {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WorkflowServiceServer).CreateWorkflowTemplate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.WorkflowService/CreateWorkflowTemplate",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WorkflowServiceServer).CreateWorkflowTemplate(ctx, req.(*CreateWorkflowTemplateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _WorkflowService_GetWorkflowTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetWorkflowTemplateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WorkflowServiceServer).GetWorkflowTemplate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.WorkflowService/GetWorkflowTemplate",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WorkflowServiceServer).GetWorkflowTemplate(ctx, req.(*GetWorkflowTemplateRequest))
|
|
}
|
|
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),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CreateWorkflow",
|
|
Handler: _WorkflowService_CreateWorkflow_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateWorkflowTemplate",
|
|
Handler: _WorkflowService_CreateWorkflowTemplate_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetWorkflowTemplate",
|
|
Handler: _WorkflowService_GetWorkflowTemplate_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListWorkflowTemplateVersions",
|
|
Handler: _WorkflowService_ListWorkflowTemplateVersions_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "workflow.proto",
|
|
}
|