mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-30 18:14:14 +02:00
- content_encoding contains a slash => v4 artifact - updated proto files to support mime_type and no longer return errors for upload-artifact v7 - json and txt files are now previewed in browser - normalized content-disposition header creation - azure blob storage uploads directly in servedirect mode (no proxying data) - normalize content-disposition headers based on go mime package - getting both filename and filename* encoding is done via custom code Closes #36829 ----- Signed-off-by: ChristopherHX <christopher.homberger@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
832 lines
28 KiB
Go
Generated
832 lines
28 KiB
Go
Generated
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.0
|
|
// source: artifact.proto
|
|
|
|
package actions
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
|
)
|
|
|
|
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 CreateArtifactRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WorkflowRunBackendId string `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
|
|
WorkflowJobRunBackendId string `protobuf:"bytes,2,opt,name=workflow_job_run_backend_id,json=workflowJobRunBackendId,proto3" json:"workflow_job_run_backend_id,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
Version int32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"`
|
|
MimeType *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateArtifactRequest) Reset() {
|
|
*x = CreateArtifactRequest{}
|
|
mi := &file_artifact_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateArtifactRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateArtifactRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateArtifactRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_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 CreateArtifactRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateArtifactRequest) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateArtifactRequest) GetWorkflowRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateArtifactRequest) GetWorkflowJobRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowJobRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateArtifactRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateArtifactRequest) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateArtifactRequest) GetVersion() int32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateArtifactRequest) GetMimeType() *wrapperspb.StringValue {
|
|
if x != nil {
|
|
return x.MimeType
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateArtifactResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
SignedUploadUrl string `protobuf:"bytes,2,opt,name=signed_upload_url,json=signedUploadUrl,proto3" json:"signed_upload_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateArtifactResponse) Reset() {
|
|
*x = CreateArtifactResponse{}
|
|
mi := &file_artifact_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateArtifactResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateArtifactResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateArtifactResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_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 CreateArtifactResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateArtifactResponse) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateArtifactResponse) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateArtifactResponse) GetSignedUploadUrl() string {
|
|
if x != nil {
|
|
return x.SignedUploadUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FinalizeArtifactRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WorkflowRunBackendId string `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
|
|
WorkflowJobRunBackendId string `protobuf:"bytes,2,opt,name=workflow_job_run_backend_id,json=workflowJobRunBackendId,proto3" json:"workflow_job_run_backend_id,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
|
|
Hash *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FinalizeArtifactRequest) Reset() {
|
|
*x = FinalizeArtifactRequest{}
|
|
mi := &file_artifact_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FinalizeArtifactRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FinalizeArtifactRequest) ProtoMessage() {}
|
|
|
|
func (x *FinalizeArtifactRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_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 FinalizeArtifactRequest.ProtoReflect.Descriptor instead.
|
|
func (*FinalizeArtifactRequest) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *FinalizeArtifactRequest) GetWorkflowRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FinalizeArtifactRequest) GetWorkflowJobRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowJobRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FinalizeArtifactRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FinalizeArtifactRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FinalizeArtifactRequest) GetHash() *wrapperspb.StringValue {
|
|
if x != nil {
|
|
return x.Hash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FinalizeArtifactResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
ArtifactId int64 `protobuf:"varint,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FinalizeArtifactResponse) Reset() {
|
|
*x = FinalizeArtifactResponse{}
|
|
mi := &file_artifact_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FinalizeArtifactResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FinalizeArtifactResponse) ProtoMessage() {}
|
|
|
|
func (x *FinalizeArtifactResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_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 FinalizeArtifactResponse.ProtoReflect.Descriptor instead.
|
|
func (*FinalizeArtifactResponse) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *FinalizeArtifactResponse) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *FinalizeArtifactResponse) GetArtifactId() int64 {
|
|
if x != nil {
|
|
return x.ArtifactId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListArtifactsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WorkflowRunBackendId string `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
|
|
WorkflowJobRunBackendId string `protobuf:"bytes,2,opt,name=workflow_job_run_backend_id,json=workflowJobRunBackendId,proto3" json:"workflow_job_run_backend_id,omitempty"`
|
|
NameFilter *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name_filter,json=nameFilter,proto3" json:"name_filter,omitempty"`
|
|
IdFilter *wrapperspb.Int64Value `protobuf:"bytes,4,opt,name=id_filter,json=idFilter,proto3" json:"id_filter,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListArtifactsRequest) Reset() {
|
|
*x = ListArtifactsRequest{}
|
|
mi := &file_artifact_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListArtifactsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListArtifactsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListArtifactsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_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 ListArtifactsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListArtifactsRequest) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ListArtifactsRequest) GetWorkflowRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListArtifactsRequest) GetWorkflowJobRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowJobRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListArtifactsRequest) GetNameFilter() *wrapperspb.StringValue {
|
|
if x != nil {
|
|
return x.NameFilter
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListArtifactsRequest) GetIdFilter() *wrapperspb.Int64Value {
|
|
if x != nil {
|
|
return x.IdFilter
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListArtifactsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Artifacts []*ListArtifactsResponse_MonolithArtifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListArtifactsResponse) Reset() {
|
|
*x = ListArtifactsResponse{}
|
|
mi := &file_artifact_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListArtifactsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListArtifactsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListArtifactsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_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 ListArtifactsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListArtifactsResponse) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListArtifactsResponse) GetArtifacts() []*ListArtifactsResponse_MonolithArtifact {
|
|
if x != nil {
|
|
return x.Artifacts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListArtifactsResponse_MonolithArtifact struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WorkflowRunBackendId string `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
|
|
WorkflowJobRunBackendId string `protobuf:"bytes,2,opt,name=workflow_job_run_backend_id,json=workflowJobRunBackendId,proto3" json:"workflow_job_run_backend_id,omitempty"`
|
|
DatabaseId int64 `protobuf:"varint,3,opt,name=database_id,json=databaseId,proto3" json:"database_id,omitempty"`
|
|
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
|
Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListArtifactsResponse_MonolithArtifact) Reset() {
|
|
*x = ListArtifactsResponse_MonolithArtifact{}
|
|
mi := &file_artifact_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListArtifactsResponse_MonolithArtifact) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListArtifactsResponse_MonolithArtifact) ProtoMessage() {}
|
|
|
|
func (x *ListArtifactsResponse_MonolithArtifact) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_proto_msgTypes[6]
|
|
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 ListArtifactsResponse_MonolithArtifact.ProtoReflect.Descriptor instead.
|
|
func (*ListArtifactsResponse_MonolithArtifact) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListArtifactsResponse_MonolithArtifact) GetWorkflowRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListArtifactsResponse_MonolithArtifact) GetWorkflowJobRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowJobRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListArtifactsResponse_MonolithArtifact) GetDatabaseId() int64 {
|
|
if x != nil {
|
|
return x.DatabaseId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListArtifactsResponse_MonolithArtifact) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListArtifactsResponse_MonolithArtifact) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListArtifactsResponse_MonolithArtifact) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetSignedArtifactURLRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WorkflowRunBackendId string `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
|
|
WorkflowJobRunBackendId string `protobuf:"bytes,2,opt,name=workflow_job_run_backend_id,json=workflowJobRunBackendId,proto3" json:"workflow_job_run_backend_id,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSignedArtifactURLRequest) Reset() {
|
|
*x = GetSignedArtifactURLRequest{}
|
|
mi := &file_artifact_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSignedArtifactURLRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSignedArtifactURLRequest) ProtoMessage() {}
|
|
|
|
func (x *GetSignedArtifactURLRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_proto_msgTypes[7]
|
|
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 GetSignedArtifactURLRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetSignedArtifactURLRequest) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *GetSignedArtifactURLRequest) GetWorkflowRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetSignedArtifactURLRequest) GetWorkflowJobRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowJobRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetSignedArtifactURLRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetSignedArtifactURLResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSignedArtifactURLResponse) Reset() {
|
|
*x = GetSignedArtifactURLResponse{}
|
|
mi := &file_artifact_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSignedArtifactURLResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSignedArtifactURLResponse) ProtoMessage() {}
|
|
|
|
func (x *GetSignedArtifactURLResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_proto_msgTypes[8]
|
|
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 GetSignedArtifactURLResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetSignedArtifactURLResponse) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetSignedArtifactURLResponse) GetSignedUrl() string {
|
|
if x != nil {
|
|
return x.SignedUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteArtifactRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
WorkflowRunBackendId string `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
|
|
WorkflowJobRunBackendId string `protobuf:"bytes,2,opt,name=workflow_job_run_backend_id,json=workflowJobRunBackendId,proto3" json:"workflow_job_run_backend_id,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteArtifactRequest) Reset() {
|
|
*x = DeleteArtifactRequest{}
|
|
mi := &file_artifact_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteArtifactRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteArtifactRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteArtifactRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_proto_msgTypes[9]
|
|
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 DeleteArtifactRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteArtifactRequest) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *DeleteArtifactRequest) GetWorkflowRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteArtifactRequest) GetWorkflowJobRunBackendId() string {
|
|
if x != nil {
|
|
return x.WorkflowJobRunBackendId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteArtifactRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteArtifactResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
ArtifactId int64 `protobuf:"varint,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteArtifactResponse) Reset() {
|
|
*x = DeleteArtifactResponse{}
|
|
mi := &file_artifact_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteArtifactResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteArtifactResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteArtifactResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_artifact_proto_msgTypes[10]
|
|
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 DeleteArtifactResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteArtifactResponse) Descriptor() ([]byte, []int) {
|
|
return file_artifact_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *DeleteArtifactResponse) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DeleteArtifactResponse) GetArtifactId() int64 {
|
|
if x != nil {
|
|
return x.ArtifactId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_artifact_proto protoreflect.FileDescriptor
|
|
|
|
const file_artifact_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0eartifact.proto\x12\x1dgithub.actions.results.api.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xb0\x02\n" +
|
|
"\x15CreateArtifactRequest\x125\n" +
|
|
"\x17workflow_run_backend_id\x18\x01 \x01(\tR\x14workflowRunBackendId\x12<\n" +
|
|
"\x1bworkflow_job_run_backend_id\x18\x02 \x01(\tR\x17workflowJobRunBackendId\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12\x18\n" +
|
|
"\aversion\x18\x05 \x01(\x05R\aversion\x129\n" +
|
|
"\tmime_type\x18\x06 \x01(\v2\x1c.google.protobuf.StringValueR\bmimeType\"T\n" +
|
|
"\x16CreateArtifactResponse\x12\x0e\n" +
|
|
"\x02ok\x18\x01 \x01(\bR\x02ok\x12*\n" +
|
|
"\x11signed_upload_url\x18\x02 \x01(\tR\x0fsignedUploadUrl\"\xe8\x01\n" +
|
|
"\x17FinalizeArtifactRequest\x125\n" +
|
|
"\x17workflow_run_backend_id\x18\x01 \x01(\tR\x14workflowRunBackendId\x12<\n" +
|
|
"\x1bworkflow_job_run_backend_id\x18\x02 \x01(\tR\x17workflowJobRunBackendId\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04size\x18\x04 \x01(\x03R\x04size\x120\n" +
|
|
"\x04hash\x18\x05 \x01(\v2\x1c.google.protobuf.StringValueR\x04hash\"K\n" +
|
|
"\x18FinalizeArtifactResponse\x12\x0e\n" +
|
|
"\x02ok\x18\x01 \x01(\bR\x02ok\x12\x1f\n" +
|
|
"\vartifact_id\x18\x02 \x01(\x03R\n" +
|
|
"artifactId\"\x84\x02\n" +
|
|
"\x14ListArtifactsRequest\x125\n" +
|
|
"\x17workflow_run_backend_id\x18\x01 \x01(\tR\x14workflowRunBackendId\x12<\n" +
|
|
"\x1bworkflow_job_run_backend_id\x18\x02 \x01(\tR\x17workflowJobRunBackendId\x12=\n" +
|
|
"\vname_filter\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\n" +
|
|
"nameFilter\x128\n" +
|
|
"\tid_filter\x18\x04 \x01(\v2\x1b.google.protobuf.Int64ValueR\bidFilter\"|\n" +
|
|
"\x15ListArtifactsResponse\x12c\n" +
|
|
"\tartifacts\x18\x01 \x03(\v2E.github.actions.results.api.v1.ListArtifactsResponse_MonolithArtifactR\tartifacts\"\xa1\x02\n" +
|
|
"&ListArtifactsResponse_MonolithArtifact\x125\n" +
|
|
"\x17workflow_run_backend_id\x18\x01 \x01(\tR\x14workflowRunBackendId\x12<\n" +
|
|
"\x1bworkflow_job_run_backend_id\x18\x02 \x01(\tR\x17workflowJobRunBackendId\x12\x1f\n" +
|
|
"\vdatabase_id\x18\x03 \x01(\x03R\n" +
|
|
"databaseId\x12\x12\n" +
|
|
"\x04name\x18\x04 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04size\x18\x05 \x01(\x03R\x04size\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\xa6\x01\n" +
|
|
"\x1bGetSignedArtifactURLRequest\x125\n" +
|
|
"\x17workflow_run_backend_id\x18\x01 \x01(\tR\x14workflowRunBackendId\x12<\n" +
|
|
"\x1bworkflow_job_run_backend_id\x18\x02 \x01(\tR\x17workflowJobRunBackendId\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\"=\n" +
|
|
"\x1cGetSignedArtifactURLResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"signed_url\x18\x01 \x01(\tR\tsignedUrl\"\xa0\x01\n" +
|
|
"\x15DeleteArtifactRequest\x125\n" +
|
|
"\x17workflow_run_backend_id\x18\x01 \x01(\tR\x14workflowRunBackendId\x12<\n" +
|
|
"\x1bworkflow_job_run_backend_id\x18\x02 \x01(\tR\x17workflowJobRunBackendId\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\"I\n" +
|
|
"\x16DeleteArtifactResponse\x12\x0e\n" +
|
|
"\x02ok\x18\x01 \x01(\bR\x02ok\x12\x1f\n" +
|
|
"\vartifact_id\x18\x02 \x01(\x03R\n" +
|
|
"artifactIdB)Z'code.gitea.io/gitea/routers/api/actionsb\x06proto3"
|
|
|
|
var (
|
|
file_artifact_proto_rawDescOnce sync.Once
|
|
file_artifact_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_artifact_proto_rawDescGZIP() []byte {
|
|
file_artifact_proto_rawDescOnce.Do(func() {
|
|
file_artifact_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_artifact_proto_rawDesc), len(file_artifact_proto_rawDesc)))
|
|
})
|
|
return file_artifact_proto_rawDescData
|
|
}
|
|
|
|
var file_artifact_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
var file_artifact_proto_goTypes = []any{
|
|
(*CreateArtifactRequest)(nil), // 0: github.actions.results.api.v1.CreateArtifactRequest
|
|
(*CreateArtifactResponse)(nil), // 1: github.actions.results.api.v1.CreateArtifactResponse
|
|
(*FinalizeArtifactRequest)(nil), // 2: github.actions.results.api.v1.FinalizeArtifactRequest
|
|
(*FinalizeArtifactResponse)(nil), // 3: github.actions.results.api.v1.FinalizeArtifactResponse
|
|
(*ListArtifactsRequest)(nil), // 4: github.actions.results.api.v1.ListArtifactsRequest
|
|
(*ListArtifactsResponse)(nil), // 5: github.actions.results.api.v1.ListArtifactsResponse
|
|
(*ListArtifactsResponse_MonolithArtifact)(nil), // 6: github.actions.results.api.v1.ListArtifactsResponse_MonolithArtifact
|
|
(*GetSignedArtifactURLRequest)(nil), // 7: github.actions.results.api.v1.GetSignedArtifactURLRequest
|
|
(*GetSignedArtifactURLResponse)(nil), // 8: github.actions.results.api.v1.GetSignedArtifactURLResponse
|
|
(*DeleteArtifactRequest)(nil), // 9: github.actions.results.api.v1.DeleteArtifactRequest
|
|
(*DeleteArtifactResponse)(nil), // 10: github.actions.results.api.v1.DeleteArtifactResponse
|
|
(*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp
|
|
(*wrapperspb.StringValue)(nil), // 12: google.protobuf.StringValue
|
|
(*wrapperspb.Int64Value)(nil), // 13: google.protobuf.Int64Value
|
|
}
|
|
var file_artifact_proto_depIdxs = []int32{
|
|
11, // 0: github.actions.results.api.v1.CreateArtifactRequest.expires_at:type_name -> google.protobuf.Timestamp
|
|
12, // 1: github.actions.results.api.v1.CreateArtifactRequest.mime_type:type_name -> google.protobuf.StringValue
|
|
12, // 2: github.actions.results.api.v1.FinalizeArtifactRequest.hash:type_name -> google.protobuf.StringValue
|
|
12, // 3: github.actions.results.api.v1.ListArtifactsRequest.name_filter:type_name -> google.protobuf.StringValue
|
|
13, // 4: github.actions.results.api.v1.ListArtifactsRequest.id_filter:type_name -> google.protobuf.Int64Value
|
|
6, // 5: github.actions.results.api.v1.ListArtifactsResponse.artifacts:type_name -> github.actions.results.api.v1.ListArtifactsResponse_MonolithArtifact
|
|
11, // 6: github.actions.results.api.v1.ListArtifactsResponse_MonolithArtifact.created_at:type_name -> google.protobuf.Timestamp
|
|
7, // [7:7] is the sub-list for method output_type
|
|
7, // [7:7] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_artifact_proto_init() }
|
|
func file_artifact_proto_init() {
|
|
if File_artifact_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_artifact_proto_rawDesc), len(file_artifact_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 11,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_artifact_proto_goTypes,
|
|
DependencyIndexes: file_artifact_proto_depIdxs,
|
|
MessageInfos: file_artifact_proto_msgTypes,
|
|
}.Build()
|
|
File_artifact_proto = out.File
|
|
file_artifact_proto_goTypes = nil
|
|
file_artifact_proto_depIdxs = nil
|
|
}
|