Files
sam 658a4cb50e
Quality / check (pull_request) Canceled after 0s
ci/woodpecker/pr/quality Pipeline was canceled
chore(runtime): remove code left dead by the Kit removal (#1877)
Drops Client.TaskPrincipalForCredential and the principal_id field only
it read, Reporter.ReportToolCall, Pool.EnsureImage and Pool.Instance,
and the binding cipher's exported domain API. Clears the remaining
harness references from the audit target kinds, docs and comments.
2026-11-12 21:42:17 +11:00

381 lines
13 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: state/v1/task_grant.proto
package statev1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type RegisterTaskGrantRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
LifetimeSeconds int64 `protobuf:"varint,3,opt,name=lifetime_seconds,json=lifetimeSeconds,proto3" json:"lifetime_seconds,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RegisterTaskGrantRequest) Reset() {
*x = RegisterTaskGrantRequest{}
mi := &file_state_v1_task_grant_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RegisterTaskGrantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegisterTaskGrantRequest) ProtoMessage() {}
func (x *RegisterTaskGrantRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_task_grant_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RegisterTaskGrantRequest.ProtoReflect.Descriptor instead.
func (*RegisterTaskGrantRequest) Descriptor() ([]byte, []int) {
return file_state_v1_task_grant_proto_rawDescGZIP(), []int{0}
}
func (x *RegisterTaskGrantRequest) GetTaskId() int64 {
if x != nil {
return x.TaskId
}
return 0
}
func (x *RegisterTaskGrantRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (x *RegisterTaskGrantRequest) GetLifetimeSeconds() int64 {
if x != nil {
return x.LifetimeSeconds
}
return 0
}
type RegisterTaskGrantResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RegisterTaskGrantResponse) Reset() {
*x = RegisterTaskGrantResponse{}
mi := &file_state_v1_task_grant_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RegisterTaskGrantResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegisterTaskGrantResponse) ProtoMessage() {}
func (x *RegisterTaskGrantResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_task_grant_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RegisterTaskGrantResponse.ProtoReflect.Descriptor instead.
func (*RegisterTaskGrantResponse) Descriptor() ([]byte, []int) {
return file_state_v1_task_grant_proto_rawDescGZIP(), []int{1}
}
type RevokeTaskGrantRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RevokeTaskGrantRequest) Reset() {
*x = RevokeTaskGrantRequest{}
mi := &file_state_v1_task_grant_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RevokeTaskGrantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RevokeTaskGrantRequest) ProtoMessage() {}
func (x *RevokeTaskGrantRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_task_grant_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RevokeTaskGrantRequest.ProtoReflect.Descriptor instead.
func (*RevokeTaskGrantRequest) Descriptor() ([]byte, []int) {
return file_state_v1_task_grant_proto_rawDescGZIP(), []int{2}
}
func (x *RevokeTaskGrantRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type RevokeTaskGrantResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RevokeTaskGrantResponse) Reset() {
*x = RevokeTaskGrantResponse{}
mi := &file_state_v1_task_grant_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RevokeTaskGrantResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RevokeTaskGrantResponse) ProtoMessage() {}
func (x *RevokeTaskGrantResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_task_grant_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RevokeTaskGrantResponse.ProtoReflect.Descriptor instead.
func (*RevokeTaskGrantResponse) Descriptor() ([]byte, []int) {
return file_state_v1_task_grant_proto_rawDescGZIP(), []int{3}
}
// ResolveTaskGrantRequest names a run credential; the response is the task
// it was issued for.
type ResolveTaskGrantRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ResolveTaskGrantRequest) Reset() {
*x = ResolveTaskGrantRequest{}
mi := &file_state_v1_task_grant_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ResolveTaskGrantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResolveTaskGrantRequest) ProtoMessage() {}
func (x *ResolveTaskGrantRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_task_grant_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResolveTaskGrantRequest.ProtoReflect.Descriptor instead.
func (*ResolveTaskGrantRequest) Descriptor() ([]byte, []int) {
return file_state_v1_task_grant_proto_rawDescGZIP(), []int{4}
}
func (x *ResolveTaskGrantRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type ResolveTaskGrantResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// Canonical execution identity; empty names the instance root RPC route.
ExecutionIdentity string `protobuf:"bytes,2,opt,name=execution_identity,json=executionIdentity,proto3" json:"execution_identity,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ResolveTaskGrantResponse) Reset() {
*x = ResolveTaskGrantResponse{}
mi := &file_state_v1_task_grant_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ResolveTaskGrantResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResolveTaskGrantResponse) ProtoMessage() {}
func (x *ResolveTaskGrantResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_task_grant_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResolveTaskGrantResponse.ProtoReflect.Descriptor instead.
func (*ResolveTaskGrantResponse) Descriptor() ([]byte, []int) {
return file_state_v1_task_grant_proto_rawDescGZIP(), []int{5}
}
func (x *ResolveTaskGrantResponse) GetTaskId() int64 {
if x != nil {
return x.TaskId
}
return 0
}
func (x *ResolveTaskGrantResponse) GetExecutionIdentity() string {
if x != nil {
return x.ExecutionIdentity
}
return ""
}
var File_state_v1_task_grant_proto protoreflect.FileDescriptor
const file_state_v1_task_grant_proto_rawDesc = "" +
"\n" +
"\x19state/v1/task_grant.proto\x12\bstate.v1\"t\n" +
"\x18RegisterTaskGrantRequest\x12\x17\n" +
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x14\n" +
"\x05token\x18\x02 \x01(\tR\x05token\x12)\n" +
"\x10lifetime_seconds\x18\x03 \x01(\x03R\x0flifetimeSeconds\"\x1b\n" +
"\x19RegisterTaskGrantResponse\".\n" +
"\x16RevokeTaskGrantRequest\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\"\x19\n" +
"\x17RevokeTaskGrantResponse\"/\n" +
"\x17ResolveTaskGrantRequest\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\"v\n" +
"\x18ResolveTaskGrantResponse\x12\x17\n" +
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12-\n" +
"\x12execution_identity\x18\x02 \x01(\tR\x11executionIdentityJ\x04\b\x03\x10\x04R\fprincipal_id2\xa3\x02\n" +
"\x10TaskGrantService\x12\\\n" +
"\x11RegisterTaskGrant\x12\".state.v1.RegisterTaskGrantRequest\x1a#.state.v1.RegisterTaskGrantResponse\x12V\n" +
"\x0fRevokeTaskGrant\x12 .state.v1.RevokeTaskGrantRequest\x1a!.state.v1.RevokeTaskGrantResponse\x12Y\n" +
"\x10ResolveTaskGrant\x12!.state.v1.ResolveTaskGrantRequest\x1a\".state.v1.ResolveTaskGrantResponseB\xa8\x01\n" +
"\fcom.state.v1B\x0eTaskGrantProtoP\x01ZGgithub.com/samcharles93/archie-core/internal/contracts/state/v1;statev1\xa2\x02\x03SXX\xaa\x02\bState.V1\xca\x02\bState\\V1\xe2\x02\x14State\\V1\\GPBMetadata\xea\x02\tState::V1b\x06proto3"
var (
file_state_v1_task_grant_proto_rawDescOnce sync.Once
file_state_v1_task_grant_proto_rawDescData []byte
)
func file_state_v1_task_grant_proto_rawDescGZIP() []byte {
file_state_v1_task_grant_proto_rawDescOnce.Do(func() {
file_state_v1_task_grant_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_task_grant_proto_rawDesc), len(file_state_v1_task_grant_proto_rawDesc)))
})
return file_state_v1_task_grant_proto_rawDescData
}
var file_state_v1_task_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_state_v1_task_grant_proto_goTypes = []any{
(*RegisterTaskGrantRequest)(nil), // 0: state.v1.RegisterTaskGrantRequest
(*RegisterTaskGrantResponse)(nil), // 1: state.v1.RegisterTaskGrantResponse
(*RevokeTaskGrantRequest)(nil), // 2: state.v1.RevokeTaskGrantRequest
(*RevokeTaskGrantResponse)(nil), // 3: state.v1.RevokeTaskGrantResponse
(*ResolveTaskGrantRequest)(nil), // 4: state.v1.ResolveTaskGrantRequest
(*ResolveTaskGrantResponse)(nil), // 5: state.v1.ResolveTaskGrantResponse
}
var file_state_v1_task_grant_proto_depIdxs = []int32{
0, // 0: state.v1.TaskGrantService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest
2, // 1: state.v1.TaskGrantService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest
4, // 2: state.v1.TaskGrantService.ResolveTaskGrant:input_type -> state.v1.ResolveTaskGrantRequest
1, // 3: state.v1.TaskGrantService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse
3, // 4: state.v1.TaskGrantService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse
5, // 5: state.v1.TaskGrantService.ResolveTaskGrant:output_type -> state.v1.ResolveTaskGrantResponse
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_state_v1_task_grant_proto_init() }
func file_state_v1_task_grant_proto_init() {
if File_state_v1_task_grant_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_task_grant_proto_rawDesc), len(file_state_v1_task_grant_proto_rawDesc)),
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_state_v1_task_grant_proto_goTypes,
DependencyIndexes: file_state_v1_task_grant_proto_depIdxs,
MessageInfos: file_state_v1_task_grant_proto_msgTypes,
}.Build()
File_state_v1_task_grant_proto = out.File
file_state_v1_task_grant_proto_goTypes = nil
file_state_v1_task_grant_proto_depIdxs = nil
}