|
|
@@ -16,7 +16,7 @@
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.31.0
|
|
|
|
// protoc-gen-go v1.31.0
|
|
|
|
// protoc v4.23.4
|
|
|
|
// protoc v3.21.12
|
|
|
|
// source: woodpecker.proto
|
|
|
|
// source: woodpecker.proto
|
|
|
|
|
|
|
|
|
|
|
|
package proto
|
|
|
|
package proto
|
|
|
@@ -248,7 +248,7 @@ func (x *Filter) GetLabels() map[string]string {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Pipeline struct {
|
|
|
|
type Workflow struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
@@ -258,8 +258,8 @@ type Pipeline struct {
|
|
|
|
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
|
|
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Pipeline) Reset() {
|
|
|
|
func (x *Workflow) Reset() {
|
|
|
|
*x = Pipeline{}
|
|
|
|
*x = Workflow{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_woodpecker_proto_msgTypes[3]
|
|
|
|
mi := &file_woodpecker_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
@@ -267,13 +267,13 @@ func (x *Pipeline) Reset() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Pipeline) String() string {
|
|
|
|
func (x *Workflow) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (*Pipeline) ProtoMessage() {}
|
|
|
|
func (*Workflow) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Pipeline) ProtoReflect() protoreflect.Message {
|
|
|
|
func (x *Workflow) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_woodpecker_proto_msgTypes[3]
|
|
|
|
mi := &file_woodpecker_proto_msgTypes[3]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
@@ -285,26 +285,26 @@ func (x *Pipeline) ProtoReflect() protoreflect.Message {
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use Pipeline.ProtoReflect.Descriptor instead.
|
|
|
|
// Deprecated: Use Workflow.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Pipeline) Descriptor() ([]byte, []int) {
|
|
|
|
func (*Workflow) Descriptor() ([]byte, []int) {
|
|
|
|
return file_woodpecker_proto_rawDescGZIP(), []int{3}
|
|
|
|
return file_woodpecker_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Pipeline) GetId() string {
|
|
|
|
func (x *Workflow) GetId() string {
|
|
|
|
if x != nil {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Pipeline) GetTimeout() int64 {
|
|
|
|
func (x *Workflow) GetTimeout() int64 {
|
|
|
|
if x != nil {
|
|
|
|
if x != nil {
|
|
|
|
return x.Timeout
|
|
|
|
return x.Timeout
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *Pipeline) GetPayload() []byte {
|
|
|
|
func (x *Workflow) GetPayload() []byte {
|
|
|
|
if x != nil {
|
|
|
|
if x != nil {
|
|
|
|
return x.Payload
|
|
|
|
return x.Payload
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -880,7 +880,7 @@ type NextResponse struct {
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
|
|
Pipeline *Pipeline `protobuf:"bytes,1,opt,name=pipeline,proto3" json:"pipeline,omitempty"`
|
|
|
|
Workflow *Workflow `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *NextResponse) Reset() {
|
|
|
|
func (x *NextResponse) Reset() {
|
|
|
@@ -915,9 +915,9 @@ func (*NextResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_woodpecker_proto_rawDescGZIP(), []int{15}
|
|
|
|
return file_woodpecker_proto_rawDescGZIP(), []int{15}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (x *NextResponse) GetPipeline() *Pipeline {
|
|
|
|
func (x *NextResponse) GetWorkflow() *Workflow {
|
|
|
|
if x != nil {
|
|
|
|
if x != nil {
|
|
|
|
return x.Pipeline
|
|
|
|
return x.Workflow
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -1116,8 +1116,8 @@ var file_woodpecker_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
|
|
|
|
0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
|
|
|
|
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
|
|
|
|
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
|
|
|
|
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
|
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4e, 0x0a, 0x08, 0x50, 0x69, 0x70,
|
|
|
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4e, 0x0a, 0x08, 0x57, 0x6f, 0x72,
|
|
|
|
0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
|
|
|
|
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12,
|
|
|
|
0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
|
|
|
|
0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
|
|
|
@@ -1164,9 +1164,9 @@ var file_woodpecker_proto_rawDesc = []byte{
|
|
|
|
0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22,
|
|
|
|
0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22,
|
|
|
|
0x3b, 0x0a, 0x0c, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
|
|
0x3b, 0x0a, 0x0c, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
|
|
0x2b, 0x0a, 0x08, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x2b, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x69, 0x70, 0x65, 0x6c, 0x69,
|
|
|
|
0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c,
|
|
|
|
0x6e, 0x65, 0x52, 0x08, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x32, 0x0a, 0x15,
|
|
|
|
0x6f, 0x77, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x22, 0x32, 0x0a, 0x15,
|
|
|
|
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73,
|
|
|
|
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69,
|
|
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64,
|
|
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64,
|
|
|
@@ -1242,7 +1242,7 @@ var file_woodpecker_proto_goTypes = []interface{}{
|
|
|
|
(*State)(nil), // 0: proto.State
|
|
|
|
(*State)(nil), // 0: proto.State
|
|
|
|
(*LogEntry)(nil), // 1: proto.LogEntry
|
|
|
|
(*LogEntry)(nil), // 1: proto.LogEntry
|
|
|
|
(*Filter)(nil), // 2: proto.Filter
|
|
|
|
(*Filter)(nil), // 2: proto.Filter
|
|
|
|
(*Pipeline)(nil), // 3: proto.Pipeline
|
|
|
|
(*Workflow)(nil), // 3: proto.Workflow
|
|
|
|
(*NextRequest)(nil), // 4: proto.NextRequest
|
|
|
|
(*NextRequest)(nil), // 4: proto.NextRequest
|
|
|
|
(*InitRequest)(nil), // 5: proto.InitRequest
|
|
|
|
(*InitRequest)(nil), // 5: proto.InitRequest
|
|
|
|
(*WaitRequest)(nil), // 6: proto.WaitRequest
|
|
|
|
(*WaitRequest)(nil), // 6: proto.WaitRequest
|
|
|
@@ -1267,7 +1267,7 @@ var file_woodpecker_proto_depIdxs = []int32{
|
|
|
|
0, // 3: proto.DoneRequest.state:type_name -> proto.State
|
|
|
|
0, // 3: proto.DoneRequest.state:type_name -> proto.State
|
|
|
|
0, // 4: proto.UpdateRequest.state:type_name -> proto.State
|
|
|
|
0, // 4: proto.UpdateRequest.state:type_name -> proto.State
|
|
|
|
1, // 5: proto.LogRequest.logEntry:type_name -> proto.LogEntry
|
|
|
|
1, // 5: proto.LogRequest.logEntry:type_name -> proto.LogEntry
|
|
|
|
3, // 6: proto.NextResponse.pipeline:type_name -> proto.Pipeline
|
|
|
|
3, // 6: proto.NextResponse.workflow:type_name -> proto.Workflow
|
|
|
|
11, // 7: proto.Woodpecker.Version:input_type -> proto.Empty
|
|
|
|
11, // 7: proto.Woodpecker.Version:input_type -> proto.Empty
|
|
|
|
4, // 8: proto.Woodpecker.Next:input_type -> proto.NextRequest
|
|
|
|
4, // 8: proto.Woodpecker.Next:input_type -> proto.NextRequest
|
|
|
|
5, // 9: proto.Woodpecker.Init:input_type -> proto.InitRequest
|
|
|
|
5, // 9: proto.Woodpecker.Init:input_type -> proto.InitRequest
|
|
|
@@ -1340,7 +1340,7 @@ func file_woodpecker_proto_init() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_woodpecker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
file_woodpecker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Pipeline); i {
|
|
|
|
switch v := v.(*Workflow); i {
|
|
|
|
case 0:
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
case 1:
|
|
|
|