Add CapabilitiesJson to DeclareRequest and FetchTaskRequest
This commit is contained in:
@@ -273,11 +273,12 @@ func (x *RegisterResponse) GetRunner() *Runner {
|
||||
}
|
||||
|
||||
type DeclareRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
|
||||
CapabilitiesJson string `protobuf:"bytes,3,opt,name=capabilities_json,json=capabilitiesJson,proto3" json:"capabilities_json,omitempty"` // JSON-encoded runner capabilities
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DeclareRequest) Reset() {
|
||||
@@ -324,6 +325,13 @@ func (x *DeclareRequest) GetLabels() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DeclareRequest) GetCapabilitiesJson() string {
|
||||
if x != nil {
|
||||
return x.CapabilitiesJson
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type DeclareResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Runner *Runner `protobuf:"bytes,1,opt,name=runner,proto3" json:"runner,omitempty"`
|
||||
@@ -1186,10 +1194,11 @@ const file_runner_v1_messages_proto_rawDesc = "" +
|
||||
"\x06labels\x18\x06 \x03(\tR\x06labels\x12\x1c\n" +
|
||||
"\tephemeral\x18\a \x01(\bR\tephemeral\"=\n" +
|
||||
"\x10RegisterResponse\x12)\n" +
|
||||
"\x06runner\x18\x01 \x01(\v2\x11.runner.v1.RunnerR\x06runner\"B\n" +
|
||||
"\x06runner\x18\x01 \x01(\v2\x11.runner.v1.RunnerR\x06runner\"o\n" +
|
||||
"\x0eDeclareRequest\x12\x18\n" +
|
||||
"\aversion\x18\x01 \x01(\tR\aversion\x12\x16\n" +
|
||||
"\x06labels\x18\x02 \x03(\tR\x06labels\"<\n" +
|
||||
"\x06labels\x18\x02 \x03(\tR\x06labels\x12+\n" +
|
||||
"\x11capabilities_json\x18\x03 \x01(\tR\x10capabilitiesJson\"<\n" +
|
||||
"\x0fDeclareResponse\x12)\n" +
|
||||
"\x06runner\x18\x01 \x01(\v2\x11.runner.v1.RunnerR\x06runner\"d\n" +
|
||||
"\x10FetchTaskRequest\x12#\n" +
|
||||
|
||||
Reference in New Issue
Block a user