Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c5e4258abc | |||
| fae83e8d2f | |||
| 663a52eded | |||
| b093af7905 | |||
| 02070eddb5 | |||
| 372fd8fdc5 | |||
| 40c7487409 | |||
| 9580480f90 | |||
| 07088bedbc | |||
|
|
32cdcf1b5f |
28
.gitea/workflows/ci.yml
Normal file
28
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.21'
|
||||||
|
cache: false
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build ./...
|
||||||
|
env:
|
||||||
|
GOPRIVATE: git.marketally.com
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test ./...
|
||||||
|
env:
|
||||||
|
GOPRIVATE: git.marketally.com
|
||||||
29
.gitea/workflows/release.yml
Normal file
29
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.21'
|
||||||
|
cache: false
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build ./...
|
||||||
|
env:
|
||||||
|
GOPRIVATE: git.marketally.com
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
generate_release_notes: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
80
README.md
80
README.md
@@ -1,2 +1,80 @@
|
|||||||
# proto-go
|
# GitCaddy Actions Proto
|
||||||
|
|
||||||
|
Protocol buffer definitions for communication between Gitea Actions runners and the Gitea server.
|
||||||
|
|
||||||
|
> **This is a GitCaddy fork** of [code.gitea.io/actions-proto-go](https://gitea.com/gitea/actions-proto-go) with enhanced capability reporting support.
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
This package provides the protobuf-generated Go code for the Gitea Actions runner protocol. It defines the RPC services and message types used for:
|
||||||
|
|
||||||
|
- Runner registration and declaration
|
||||||
|
- Task fetching and execution
|
||||||
|
- Log streaming and status updates
|
||||||
|
- **Runner capability reporting** (GitCaddy enhancement)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
go get git.marketally.com/gitcaddy/actions-proto-go
|
||||||
|
```
|
||||||
|
|
||||||
|
## GitCaddy Enhancements
|
||||||
|
|
||||||
|
### Runner Capability Reporting
|
||||||
|
|
||||||
|
This fork adds the `CapabilitiesJson` field to the `DeclareRequest` message, enabling runners to report their capabilities to the Gitea server:
|
||||||
|
|
||||||
|
```protobuf
|
||||||
|
message DeclareRequest {
|
||||||
|
string version = 1;
|
||||||
|
repeated string labels = 2;
|
||||||
|
string capabilities_json = 3; // NEW: JSON-encoded runner capabilities
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
The capabilities JSON includes:
|
||||||
|
- **OS and Architecture**: Runtime environment details
|
||||||
|
- **Docker Support**: Whether Docker/Podman is available
|
||||||
|
- **Shell Support**: Available shells (bash, sh, powershell, etc.)
|
||||||
|
- **Tool Versions**: Installed tools like Node.js, Go, Python, etc.
|
||||||
|
- **Feature Flags**: Cache support, artifact handling, etc.
|
||||||
|
- **Limitations**: Known constraints for AI workflow generation
|
||||||
|
|
||||||
|
### Why This Matters
|
||||||
|
|
||||||
|
AI tools generating CI/CD workflows can query the Gitea API to discover runner capabilities *before* writing workflows, reducing trial-and-error iterations.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```go
|
||||||
|
import (
|
||||||
|
runnerv1 "git.marketally.com/gitcaddy/actions-proto-go/runner/v1"
|
||||||
|
"git.marketally.com/gitcaddy/actions-proto-go/runner/v1/runnerv1connect"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Create a client
|
||||||
|
client := runnerv1connect.NewRunnerServiceClient(httpClient, serverURL)
|
||||||
|
|
||||||
|
// Declare runner with capabilities
|
||||||
|
resp, err := client.Declare(ctx, connect.NewRequest(&runnerv1.DeclareRequest{
|
||||||
|
Version: "0.3.1",
|
||||||
|
Labels: []string{"ubuntu-latest", "docker"},
|
||||||
|
CapabilitiesJson: `{"os":"linux","arch":"amd64","docker":true}`,
|
||||||
|
}))
|
||||||
|
```
|
||||||
|
|
||||||
|
## Related Projects
|
||||||
|
|
||||||
|
| Project | Description |
|
||||||
|
|---------|-------------|
|
||||||
|
| [gitcaddy/gitea](https://git.marketally.com/gitcaddy/gitea) | GitCaddy Gitea fork with AI-friendly enhancements |
|
||||||
|
| [gitcaddy/act_runner](https://git.marketally.com/gitcaddy/act_runner) | Runner with capability detection |
|
||||||
|
|
||||||
|
## Upstream
|
||||||
|
|
||||||
|
This project is a fork of [code.gitea.io/actions-proto-go](https://gitea.com/gitea/actions-proto-go). We aim to contribute enhancements back to upstream where appropriate.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
MIT License - see [LICENSE](LICENSE) for details.
|
||||||
|
|||||||
@@ -1,7 +1,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.28.1
|
// protoc-gen-go v1.36.11
|
||||||
// protoc (unknown)
|
// protoc v3.21.12
|
||||||
// source: ping/v1/messages.proto
|
// source: ping/v1/messages.proto
|
||||||
|
|
||||||
package pingv1
|
package pingv1
|
||||||
@@ -11,6 +11,7 @@ import (
|
|||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -21,21 +22,18 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type PingRequest struct {
|
type PingRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PingRequest) Reset() {
|
func (x *PingRequest) Reset() {
|
||||||
*x = PingRequest{}
|
*x = PingRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_ping_v1_messages_proto_msgTypes[0]
|
mi := &file_ping_v1_messages_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PingRequest) String() string {
|
func (x *PingRequest) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
@@ -45,7 +43,7 @@ func (*PingRequest) ProtoMessage() {}
|
|||||||
|
|
||||||
func (x *PingRequest) ProtoReflect() protoreflect.Message {
|
func (x *PingRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_ping_v1_messages_proto_msgTypes[0]
|
mi := &file_ping_v1_messages_proto_msgTypes[0]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
@@ -68,21 +66,18 @@ func (x *PingRequest) GetData() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type PingResponse struct {
|
type PingResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PingResponse) Reset() {
|
func (x *PingResponse) Reset() {
|
||||||
*x = PingResponse{}
|
*x = PingResponse{}
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_ping_v1_messages_proto_msgTypes[1]
|
mi := &file_ping_v1_messages_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PingResponse) String() string {
|
func (x *PingResponse) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
@@ -92,7 +87,7 @@ func (*PingResponse) ProtoMessage() {}
|
|||||||
|
|
||||||
func (x *PingResponse) ProtoReflect() protoreflect.Message {
|
func (x *PingResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_ping_v1_messages_proto_msgTypes[1]
|
mi := &file_ping_v1_messages_proto_msgTypes[1]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
@@ -116,39 +111,28 @@ func (x *PingResponse) GetData() string {
|
|||||||
|
|
||||||
var File_ping_v1_messages_proto protoreflect.FileDescriptor
|
var File_ping_v1_messages_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_ping_v1_messages_proto_rawDesc = []byte{
|
const file_ping_v1_messages_proto_rawDesc = "" +
|
||||||
0x0a, 0x16, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
"\n" +
|
||||||
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76,
|
"\x16ping/v1/messages.proto\x12\aping.v1\"!\n" +
|
||||||
0x31, 0x22, 0x21, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
"\vPingRequest\x12\x12\n" +
|
||||||
0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
"\x04data\x18\x01 \x01(\tR\x04data\"\"\n" +
|
||||||
0x64, 0x61, 0x74, 0x61, 0x22, 0x22, 0x0a, 0x0c, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70,
|
"\fPingResponse\x12\x12\n" +
|
||||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
|
"\x04data\x18\x01 \x01(\tR\x04dataB/Z-code.gitea.io/actions-proto-go/ping/v1;pingv1b\x06proto3"
|
||||||
0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x88, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d,
|
|
||||||
0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
||||||
0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x63, 0x6f, 0x64, 0x65, 0x2e,
|
|
||||||
0x67, 0x69, 0x74, 0x65, 0x61, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
|
||||||
0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x76,
|
|
||||||
0x31, 0x3b, 0x70, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x50, 0x58, 0x58, 0xaa, 0x02,
|
|
||||||
0x07, 0x50, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x50, 0x69, 0x6e, 0x67, 0x5c,
|
|
||||||
0x56, 0x31, 0xe2, 0x02, 0x13, 0x50, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42,
|
|
||||||
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x50, 0x69, 0x6e, 0x67, 0x3a,
|
|
||||||
0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_ping_v1_messages_proto_rawDescOnce sync.Once
|
file_ping_v1_messages_proto_rawDescOnce sync.Once
|
||||||
file_ping_v1_messages_proto_rawDescData = file_ping_v1_messages_proto_rawDesc
|
file_ping_v1_messages_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_ping_v1_messages_proto_rawDescGZIP() []byte {
|
func file_ping_v1_messages_proto_rawDescGZIP() []byte {
|
||||||
file_ping_v1_messages_proto_rawDescOnce.Do(func() {
|
file_ping_v1_messages_proto_rawDescOnce.Do(func() {
|
||||||
file_ping_v1_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_ping_v1_messages_proto_rawDescData)
|
file_ping_v1_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ping_v1_messages_proto_rawDesc), len(file_ping_v1_messages_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_ping_v1_messages_proto_rawDescData
|
return file_ping_v1_messages_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_ping_v1_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
var file_ping_v1_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||||
var file_ping_v1_messages_proto_goTypes = []interface{}{
|
var file_ping_v1_messages_proto_goTypes = []any{
|
||||||
(*PingRequest)(nil), // 0: ping.v1.PingRequest
|
(*PingRequest)(nil), // 0: ping.v1.PingRequest
|
||||||
(*PingResponse)(nil), // 1: ping.v1.PingResponse
|
(*PingResponse)(nil), // 1: ping.v1.PingResponse
|
||||||
}
|
}
|
||||||
@@ -165,37 +149,11 @@ func file_ping_v1_messages_proto_init() {
|
|||||||
if File_ping_v1_messages_proto != nil {
|
if File_ping_v1_messages_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_ping_v1_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PingRequest); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_ping_v1_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PingResponse); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_ping_v1_messages_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ping_v1_messages_proto_rawDesc), len(file_ping_v1_messages_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 2,
|
NumMessages: 2,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -206,7 +164,6 @@ func file_ping_v1_messages_proto_init() {
|
|||||||
MessageInfos: file_ping_v1_messages_proto_msgTypes,
|
MessageInfos: file_ping_v1_messages_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_ping_v1_messages_proto = out.File
|
File_ping_v1_messages_proto = out.File
|
||||||
file_ping_v1_messages_proto_rawDesc = nil
|
|
||||||
file_ping_v1_messages_proto_goTypes = nil
|
file_ping_v1_messages_proto_goTypes = nil
|
||||||
file_ping_v1_messages_proto_depIdxs = nil
|
file_ping_v1_messages_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,12 +37,6 @@ const (
|
|||||||
PingServicePingProcedure = "/ping.v1.PingService/Ping"
|
PingServicePingProcedure = "/ping.v1.PingService/Ping"
|
||||||
)
|
)
|
||||||
|
|
||||||
// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package.
|
|
||||||
var (
|
|
||||||
pingServiceServiceDescriptor = v1.File_ping_v1_services_proto.Services().ByName("PingService")
|
|
||||||
pingServicePingMethodDescriptor = pingServiceServiceDescriptor.Methods().ByName("Ping")
|
|
||||||
)
|
|
||||||
|
|
||||||
// PingServiceClient is a client for the ping.v1.PingService service.
|
// PingServiceClient is a client for the ping.v1.PingService service.
|
||||||
type PingServiceClient interface {
|
type PingServiceClient interface {
|
||||||
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
|
Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
|
||||||
@@ -57,11 +51,12 @@ type PingServiceClient interface {
|
|||||||
// http://api.acme.com or https://acme.com/grpc).
|
// http://api.acme.com or https://acme.com/grpc).
|
||||||
func NewPingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PingServiceClient {
|
func NewPingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PingServiceClient {
|
||||||
baseURL = strings.TrimRight(baseURL, "/")
|
baseURL = strings.TrimRight(baseURL, "/")
|
||||||
|
pingServiceMethods := v1.File_ping_v1_services_proto.Services().ByName("PingService").Methods()
|
||||||
return &pingServiceClient{
|
return &pingServiceClient{
|
||||||
ping: connect.NewClient[v1.PingRequest, v1.PingResponse](
|
ping: connect.NewClient[v1.PingRequest, v1.PingResponse](
|
||||||
httpClient,
|
httpClient,
|
||||||
baseURL+PingServicePingProcedure,
|
baseURL+PingServicePingProcedure,
|
||||||
connect.WithSchema(pingServicePingMethodDescriptor),
|
connect.WithSchema(pingServiceMethods.ByName("Ping")),
|
||||||
connect.WithClientOptions(opts...),
|
connect.WithClientOptions(opts...),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
@@ -88,10 +83,11 @@ type PingServiceHandler interface {
|
|||||||
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
|
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
|
||||||
// and JSON codecs. They also support gzip compression.
|
// and JSON codecs. They also support gzip compression.
|
||||||
func NewPingServiceHandler(svc PingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
|
func NewPingServiceHandler(svc PingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
|
||||||
|
pingServiceMethods := v1.File_ping_v1_services_proto.Services().ByName("PingService").Methods()
|
||||||
pingServicePingHandler := connect.NewUnaryHandler(
|
pingServicePingHandler := connect.NewUnaryHandler(
|
||||||
PingServicePingProcedure,
|
PingServicePingProcedure,
|
||||||
svc.Ping,
|
svc.Ping,
|
||||||
connect.WithSchema(pingServicePingMethodDescriptor),
|
connect.WithSchema(pingServiceMethods.ByName("Ping")),
|
||||||
connect.WithHandlerOptions(opts...),
|
connect.WithHandlerOptions(opts...),
|
||||||
)
|
)
|
||||||
return "/ping.v1.PingService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
return "/ping.v1.PingService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
@@ -1,7 +1,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.28.1
|
// protoc-gen-go v1.36.11
|
||||||
// protoc (unknown)
|
// protoc v3.21.12
|
||||||
// source: ping/v1/services.proto
|
// source: ping/v1/services.proto
|
||||||
|
|
||||||
package pingv1
|
package pingv1
|
||||||
@@ -10,6 +10,7 @@ import (
|
|||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -21,27 +22,13 @@ const (
|
|||||||
|
|
||||||
var File_ping_v1_services_proto protoreflect.FileDescriptor
|
var File_ping_v1_services_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_ping_v1_services_proto_rawDesc = []byte{
|
const file_ping_v1_services_proto_rawDesc = "" +
|
||||||
0x0a, 0x16, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
|
"\n" +
|
||||||
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76,
|
"\x16ping/v1/services.proto\x12\aping.v1\x1a\x16ping/v1/messages.proto2B\n" +
|
||||||
0x31, 0x1a, 0x16, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
"\vPingService\x123\n" +
|
||||||
0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x42, 0x0a, 0x0b, 0x50, 0x69, 0x6e,
|
"\x04Ping\x12\x14.ping.v1.PingRequest\x1a\x15.ping.v1.PingResponseB/Z-code.gitea.io/actions-proto-go/ping/v1;pingv1b\x06proto3"
|
||||||
0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67,
|
|
||||||
0x12, 0x14, 0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52,
|
|
||||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31,
|
|
||||||
0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x88, 0x01,
|
|
||||||
0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x53,
|
|
||||||
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d,
|
|
||||||
0x63, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x69, 0x74, 0x65, 0x61, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x63,
|
|
||||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x67, 0x6f, 0x2f, 0x70,
|
|
||||||
0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03,
|
|
||||||
0x50, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x50, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07,
|
|
||||||
0x50, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x13, 0x50, 0x69, 0x6e, 0x67, 0x5c, 0x56,
|
|
||||||
0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08,
|
|
||||||
0x50, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_ping_v1_services_proto_goTypes = []interface{}{
|
var file_ping_v1_services_proto_goTypes = []any{
|
||||||
(*PingRequest)(nil), // 0: ping.v1.PingRequest
|
(*PingRequest)(nil), // 0: ping.v1.PingRequest
|
||||||
(*PingResponse)(nil), // 1: ping.v1.PingResponse
|
(*PingResponse)(nil), // 1: ping.v1.PingResponse
|
||||||
}
|
}
|
||||||
@@ -65,7 +52,7 @@ func file_ping_v1_services_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_ping_v1_services_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_ping_v1_services_proto_rawDesc), len(file_ping_v1_services_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 0,
|
NumMessages: 0,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -75,7 +62,6 @@ func file_ping_v1_services_proto_init() {
|
|||||||
DependencyIndexes: file_ping_v1_services_proto_depIdxs,
|
DependencyIndexes: file_ping_v1_services_proto_depIdxs,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_ping_v1_services_proto = out.File
|
File_ping_v1_services_proto = out.File
|
||||||
file_ping_v1_services_proto_rawDesc = nil
|
|
||||||
file_ping_v1_services_proto_goTypes = nil
|
file_ping_v1_services_proto_goTypes = nil
|
||||||
file_ping_v1_services_proto_depIdxs = nil
|
file_ping_v1_services_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -46,16 +46,6 @@ const (
|
|||||||
RunnerServiceUpdateLogProcedure = "/runner.v1.RunnerService/UpdateLog"
|
RunnerServiceUpdateLogProcedure = "/runner.v1.RunnerService/UpdateLog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package.
|
|
||||||
var (
|
|
||||||
runnerServiceServiceDescriptor = v1.File_runner_v1_services_proto.Services().ByName("RunnerService")
|
|
||||||
runnerServiceRegisterMethodDescriptor = runnerServiceServiceDescriptor.Methods().ByName("Register")
|
|
||||||
runnerServiceDeclareMethodDescriptor = runnerServiceServiceDescriptor.Methods().ByName("Declare")
|
|
||||||
runnerServiceFetchTaskMethodDescriptor = runnerServiceServiceDescriptor.Methods().ByName("FetchTask")
|
|
||||||
runnerServiceUpdateTaskMethodDescriptor = runnerServiceServiceDescriptor.Methods().ByName("UpdateTask")
|
|
||||||
runnerServiceUpdateLogMethodDescriptor = runnerServiceServiceDescriptor.Methods().ByName("UpdateLog")
|
|
||||||
)
|
|
||||||
|
|
||||||
// RunnerServiceClient is a client for the runner.v1.RunnerService service.
|
// RunnerServiceClient is a client for the runner.v1.RunnerService service.
|
||||||
type RunnerServiceClient interface {
|
type RunnerServiceClient interface {
|
||||||
// Register register a new runner in server.
|
// Register register a new runner in server.
|
||||||
@@ -79,35 +69,36 @@ type RunnerServiceClient interface {
|
|||||||
// http://api.acme.com or https://acme.com/grpc).
|
// http://api.acme.com or https://acme.com/grpc).
|
||||||
func NewRunnerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RunnerServiceClient {
|
func NewRunnerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RunnerServiceClient {
|
||||||
baseURL = strings.TrimRight(baseURL, "/")
|
baseURL = strings.TrimRight(baseURL, "/")
|
||||||
|
runnerServiceMethods := v1.File_runner_v1_services_proto.Services().ByName("RunnerService").Methods()
|
||||||
return &runnerServiceClient{
|
return &runnerServiceClient{
|
||||||
register: connect.NewClient[v1.RegisterRequest, v1.RegisterResponse](
|
register: connect.NewClient[v1.RegisterRequest, v1.RegisterResponse](
|
||||||
httpClient,
|
httpClient,
|
||||||
baseURL+RunnerServiceRegisterProcedure,
|
baseURL+RunnerServiceRegisterProcedure,
|
||||||
connect.WithSchema(runnerServiceRegisterMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("Register")),
|
||||||
connect.WithClientOptions(opts...),
|
connect.WithClientOptions(opts...),
|
||||||
),
|
),
|
||||||
declare: connect.NewClient[v1.DeclareRequest, v1.DeclareResponse](
|
declare: connect.NewClient[v1.DeclareRequest, v1.DeclareResponse](
|
||||||
httpClient,
|
httpClient,
|
||||||
baseURL+RunnerServiceDeclareProcedure,
|
baseURL+RunnerServiceDeclareProcedure,
|
||||||
connect.WithSchema(runnerServiceDeclareMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("Declare")),
|
||||||
connect.WithClientOptions(opts...),
|
connect.WithClientOptions(opts...),
|
||||||
),
|
),
|
||||||
fetchTask: connect.NewClient[v1.FetchTaskRequest, v1.FetchTaskResponse](
|
fetchTask: connect.NewClient[v1.FetchTaskRequest, v1.FetchTaskResponse](
|
||||||
httpClient,
|
httpClient,
|
||||||
baseURL+RunnerServiceFetchTaskProcedure,
|
baseURL+RunnerServiceFetchTaskProcedure,
|
||||||
connect.WithSchema(runnerServiceFetchTaskMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("FetchTask")),
|
||||||
connect.WithClientOptions(opts...),
|
connect.WithClientOptions(opts...),
|
||||||
),
|
),
|
||||||
updateTask: connect.NewClient[v1.UpdateTaskRequest, v1.UpdateTaskResponse](
|
updateTask: connect.NewClient[v1.UpdateTaskRequest, v1.UpdateTaskResponse](
|
||||||
httpClient,
|
httpClient,
|
||||||
baseURL+RunnerServiceUpdateTaskProcedure,
|
baseURL+RunnerServiceUpdateTaskProcedure,
|
||||||
connect.WithSchema(runnerServiceUpdateTaskMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("UpdateTask")),
|
||||||
connect.WithClientOptions(opts...),
|
connect.WithClientOptions(opts...),
|
||||||
),
|
),
|
||||||
updateLog: connect.NewClient[v1.UpdateLogRequest, v1.UpdateLogResponse](
|
updateLog: connect.NewClient[v1.UpdateLogRequest, v1.UpdateLogResponse](
|
||||||
httpClient,
|
httpClient,
|
||||||
baseURL+RunnerServiceUpdateLogProcedure,
|
baseURL+RunnerServiceUpdateLogProcedure,
|
||||||
connect.WithSchema(runnerServiceUpdateLogMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("UpdateLog")),
|
||||||
connect.WithClientOptions(opts...),
|
connect.WithClientOptions(opts...),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
@@ -167,34 +158,35 @@ type RunnerServiceHandler interface {
|
|||||||
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
|
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
|
||||||
// and JSON codecs. They also support gzip compression.
|
// and JSON codecs. They also support gzip compression.
|
||||||
func NewRunnerServiceHandler(svc RunnerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
|
func NewRunnerServiceHandler(svc RunnerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
|
||||||
|
runnerServiceMethods := v1.File_runner_v1_services_proto.Services().ByName("RunnerService").Methods()
|
||||||
runnerServiceRegisterHandler := connect.NewUnaryHandler(
|
runnerServiceRegisterHandler := connect.NewUnaryHandler(
|
||||||
RunnerServiceRegisterProcedure,
|
RunnerServiceRegisterProcedure,
|
||||||
svc.Register,
|
svc.Register,
|
||||||
connect.WithSchema(runnerServiceRegisterMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("Register")),
|
||||||
connect.WithHandlerOptions(opts...),
|
connect.WithHandlerOptions(opts...),
|
||||||
)
|
)
|
||||||
runnerServiceDeclareHandler := connect.NewUnaryHandler(
|
runnerServiceDeclareHandler := connect.NewUnaryHandler(
|
||||||
RunnerServiceDeclareProcedure,
|
RunnerServiceDeclareProcedure,
|
||||||
svc.Declare,
|
svc.Declare,
|
||||||
connect.WithSchema(runnerServiceDeclareMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("Declare")),
|
||||||
connect.WithHandlerOptions(opts...),
|
connect.WithHandlerOptions(opts...),
|
||||||
)
|
)
|
||||||
runnerServiceFetchTaskHandler := connect.NewUnaryHandler(
|
runnerServiceFetchTaskHandler := connect.NewUnaryHandler(
|
||||||
RunnerServiceFetchTaskProcedure,
|
RunnerServiceFetchTaskProcedure,
|
||||||
svc.FetchTask,
|
svc.FetchTask,
|
||||||
connect.WithSchema(runnerServiceFetchTaskMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("FetchTask")),
|
||||||
connect.WithHandlerOptions(opts...),
|
connect.WithHandlerOptions(opts...),
|
||||||
)
|
)
|
||||||
runnerServiceUpdateTaskHandler := connect.NewUnaryHandler(
|
runnerServiceUpdateTaskHandler := connect.NewUnaryHandler(
|
||||||
RunnerServiceUpdateTaskProcedure,
|
RunnerServiceUpdateTaskProcedure,
|
||||||
svc.UpdateTask,
|
svc.UpdateTask,
|
||||||
connect.WithSchema(runnerServiceUpdateTaskMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("UpdateTask")),
|
||||||
connect.WithHandlerOptions(opts...),
|
connect.WithHandlerOptions(opts...),
|
||||||
)
|
)
|
||||||
runnerServiceUpdateLogHandler := connect.NewUnaryHandler(
|
runnerServiceUpdateLogHandler := connect.NewUnaryHandler(
|
||||||
RunnerServiceUpdateLogProcedure,
|
RunnerServiceUpdateLogProcedure,
|
||||||
svc.UpdateLog,
|
svc.UpdateLog,
|
||||||
connect.WithSchema(runnerServiceUpdateLogMethodDescriptor),
|
connect.WithSchema(runnerServiceMethods.ByName("UpdateLog")),
|
||||||
connect.WithHandlerOptions(opts...),
|
connect.WithHandlerOptions(opts...),
|
||||||
)
|
)
|
||||||
return "/runner.v1.RunnerService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
return "/runner.v1.RunnerService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
@@ -1,7 +1,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.28.1
|
// protoc-gen-go v1.36.11
|
||||||
// protoc (unknown)
|
// protoc v3.21.12
|
||||||
// source: runner/v1/services.proto
|
// source: runner/v1/services.proto
|
||||||
|
|
||||||
package runnerv1
|
package runnerv1
|
||||||
@@ -10,6 +10,7 @@ import (
|
|||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
unsafe "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -21,48 +22,18 @@ const (
|
|||||||
|
|
||||||
var File_runner_v1_services_proto protoreflect.FileDescriptor
|
var File_runner_v1_services_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_runner_v1_services_proto_rawDesc = []byte{
|
const file_runner_v1_services_proto_rawDesc = "" +
|
||||||
0x0a, 0x18, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76,
|
"\n" +
|
||||||
0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x72, 0x75, 0x6e, 0x6e,
|
"\x18runner/v1/services.proto\x12\trunner.v1\x1a\x18runner/v1/messages.proto2\xfb\x02\n" +
|
||||||
0x65, 0x72, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x31,
|
"\rRunnerService\x12E\n" +
|
||||||
0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
|
"\bRegister\x12\x1a.runner.v1.RegisterRequest\x1a\x1b.runner.v1.RegisterResponse\"\x00\x12B\n" +
|
||||||
0xfb, 0x02, 0x0a, 0x0d, 0x52, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
"\aDeclare\x12\x19.runner.v1.DeclareRequest\x1a\x1a.runner.v1.DeclareResponse\"\x00\x12H\n" +
|
||||||
0x65, 0x12, 0x45, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x2e,
|
"\tFetchTask\x12\x1b.runner.v1.FetchTaskRequest\x1a\x1c.runner.v1.FetchTaskResponse\"\x00\x12K\n" +
|
||||||
0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
|
"\n" +
|
||||||
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x72, 0x75, 0x6e, 0x6e,
|
"UpdateTask\x12\x1c.runner.v1.UpdateTaskRequest\x1a\x1d.runner.v1.UpdateTaskResponse\"\x00\x12H\n" +
|
||||||
0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65,
|
"\tUpdateLog\x12\x1b.runner.v1.UpdateLogRequest\x1a\x1c.runner.v1.UpdateLogResponse\"\x00B3Z1code.gitea.io/actions-proto-go/runner/v1;runnerv1b\x06proto3"
|
||||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x07, 0x44, 0x65, 0x63, 0x6c,
|
|
||||||
0x61, 0x72, 0x65, 0x12, 0x19, 0x2e, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e,
|
|
||||||
0x44, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
|
|
||||||
0x2e, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x6c, 0x61,
|
|
||||||
0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x09,
|
|
||||||
0x46, 0x65, 0x74, 0x63, 0x68, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1b, 0x2e, 0x72, 0x75, 0x6e, 0x6e,
|
|
||||||
0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x54, 0x61, 0x73, 0x6b, 0x52,
|
|
||||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e,
|
|
||||||
0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70,
|
|
||||||
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
||||||
0x54, 0x61, 0x73, 0x6b, 0x12, 0x1c, 0x2e, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31,
|
|
||||||
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
||||||
0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x55,
|
|
||||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
||||||
0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67,
|
|
||||||
0x12, 0x1b, 0x2e, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,
|
|
||||||
0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e,
|
|
||||||
0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
||||||
0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x96, 0x01,
|
|
||||||
0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42,
|
|
||||||
0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
|
|
||||||
0x5a, 0x31, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x67, 0x69, 0x74, 0x65, 0x61, 0x2e, 0x69, 0x6f, 0x2f,
|
|
||||||
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x67, 0x6f,
|
|
||||||
0x2f, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x75, 0x6e, 0x6e, 0x65,
|
|
||||||
0x72, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x58, 0x58, 0xaa, 0x02, 0x09, 0x52, 0x75, 0x6e, 0x6e,
|
|
||||||
0x65, 0x72, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x09, 0x52, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x5c, 0x56,
|
|
||||||
0x31, 0xe2, 0x02, 0x15, 0x52, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50,
|
|
||||||
0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x52, 0x75, 0x6e, 0x6e,
|
|
||||||
0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_runner_v1_services_proto_goTypes = []interface{}{
|
var file_runner_v1_services_proto_goTypes = []any{
|
||||||
(*RegisterRequest)(nil), // 0: runner.v1.RegisterRequest
|
(*RegisterRequest)(nil), // 0: runner.v1.RegisterRequest
|
||||||
(*DeclareRequest)(nil), // 1: runner.v1.DeclareRequest
|
(*DeclareRequest)(nil), // 1: runner.v1.DeclareRequest
|
||||||
(*FetchTaskRequest)(nil), // 2: runner.v1.FetchTaskRequest
|
(*FetchTaskRequest)(nil), // 2: runner.v1.FetchTaskRequest
|
||||||
@@ -102,7 +73,7 @@ func file_runner_v1_services_proto_init() {
|
|||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_runner_v1_services_proto_rawDesc,
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_runner_v1_services_proto_rawDesc), len(file_runner_v1_services_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 0,
|
NumMessages: 0,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
@@ -112,7 +83,6 @@ func file_runner_v1_services_proto_init() {
|
|||||||
DependencyIndexes: file_runner_v1_services_proto_depIdxs,
|
DependencyIndexes: file_runner_v1_services_proto_depIdxs,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_runner_v1_services_proto = out.File
|
File_runner_v1_services_proto = out.File
|
||||||
file_runner_v1_services_proto_rawDesc = nil
|
|
||||||
file_runner_v1_services_proto_goTypes = nil
|
file_runner_v1_services_proto_goTypes = nil
|
||||||
file_runner_v1_services_proto_depIdxs = nil
|
file_runner_v1_services_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user