artifacts

package
v0.2.65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 27 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ArtifactV4RouteBase       = "/twirp/github.actions.results.api.v1.ArtifactService"
	ArtifactV4ContentEncoding = "application/zip"
)

Variables

View Source
var File_artifact_proto protoreflect.FileDescriptor

Functions

func RoutesV4 added in v0.2.63

func RoutesV4(router *httprouter.Router, baseDir string, fsys WriteFS, rfs fs.FS)

func Serve

func Serve(ctx context.Context, artifactPath string, addr string, port string) context.CancelFunc

Types

type ArtifactContext added in v0.2.63

type ArtifactContext struct {
	Req  *http.Request
	Resp http.ResponseWriter
}

func (ArtifactContext) Error added in v0.2.63

func (c ArtifactContext) Error(status int, _ ...interface{})

func (ArtifactContext) JSON added in v0.2.63

func (c ArtifactContext) JSON(status int, _ ...interface{})

type ContainerItem

type ContainerItem struct {
	Path            string `json:"path"`
	ItemType        string `json:"itemType"`
	ContentLocation string `json:"contentLocation"`
}

type ContainerItemResponse

type ContainerItemResponse struct {
	Value []ContainerItem `json:"value"`
}

type CreateArtifactRequest added in v0.2.63

type CreateArtifactRequest struct {
	WorkflowRunBackendId    string                 `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
	WorkflowJobRunBackendId string                 `` /* 136-byte string literal not displayed */
	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"`
	// contains filtered or unexported fields
}

func (*CreateArtifactRequest) Descriptor deprecated added in v0.2.63

func (*CreateArtifactRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateArtifactRequest.ProtoReflect.Descriptor instead.

func (*CreateArtifactRequest) GetExpiresAt added in v0.2.63

func (x *CreateArtifactRequest) GetExpiresAt() *timestamppb.Timestamp

func (*CreateArtifactRequest) GetName added in v0.2.63

func (x *CreateArtifactRequest) GetName() string

func (*CreateArtifactRequest) GetVersion added in v0.2.63

func (x *CreateArtifactRequest) GetVersion() int32

func (*CreateArtifactRequest) GetWorkflowJobRunBackendId added in v0.2.63

func (x *CreateArtifactRequest) GetWorkflowJobRunBackendId() string

func (*CreateArtifactRequest) GetWorkflowRunBackendId added in v0.2.63

func (x *CreateArtifactRequest) GetWorkflowRunBackendId() string

func (*CreateArtifactRequest) ProtoMessage added in v0.2.63

func (*CreateArtifactRequest) ProtoMessage()

func (*CreateArtifactRequest) ProtoReflect added in v0.2.63

func (x *CreateArtifactRequest) ProtoReflect() protoreflect.Message

func (*CreateArtifactRequest) Reset added in v0.2.63

func (x *CreateArtifactRequest) Reset()

func (*CreateArtifactRequest) String added in v0.2.63

func (x *CreateArtifactRequest) String() string

type CreateArtifactResponse added in v0.2.63

type CreateArtifactResponse struct {
	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"`
	// contains filtered or unexported fields
}

func (*CreateArtifactResponse) Descriptor deprecated added in v0.2.63

func (*CreateArtifactResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateArtifactResponse.ProtoReflect.Descriptor instead.

func (*CreateArtifactResponse) GetOk added in v0.2.63

func (x *CreateArtifactResponse) GetOk() bool

func (*CreateArtifactResponse) GetSignedUploadUrl added in v0.2.63

func (x *CreateArtifactResponse) GetSignedUploadUrl() string

func (*CreateArtifactResponse) ProtoMessage added in v0.2.63

func (*CreateArtifactResponse) ProtoMessage()

func (*CreateArtifactResponse) ProtoReflect added in v0.2.63

func (x *CreateArtifactResponse) ProtoReflect() protoreflect.Message

func (*CreateArtifactResponse) Reset added in v0.2.63

func (x *CreateArtifactResponse) Reset()

func (*CreateArtifactResponse) String added in v0.2.63

func (x *CreateArtifactResponse) String() string

type DeleteArtifactRequest added in v0.2.63

type DeleteArtifactRequest struct {
	WorkflowRunBackendId    string `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
	WorkflowJobRunBackendId string `` /* 136-byte string literal not displayed */
	Name                    string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteArtifactRequest) Descriptor deprecated added in v0.2.63

func (*DeleteArtifactRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteArtifactRequest.ProtoReflect.Descriptor instead.

func (*DeleteArtifactRequest) GetName added in v0.2.63

func (x *DeleteArtifactRequest) GetName() string

func (*DeleteArtifactRequest) GetWorkflowJobRunBackendId added in v0.2.63

func (x *DeleteArtifactRequest) GetWorkflowJobRunBackendId() string

func (*DeleteArtifactRequest) GetWorkflowRunBackendId added in v0.2.63

func (x *DeleteArtifactRequest) GetWorkflowRunBackendId() string

func (*DeleteArtifactRequest) ProtoMessage added in v0.2.63

func (*DeleteArtifactRequest) ProtoMessage()

func (*DeleteArtifactRequest) ProtoReflect added in v0.2.63

func (x *DeleteArtifactRequest) ProtoReflect() protoreflect.Message

func (*DeleteArtifactRequest) Reset added in v0.2.63

func (x *DeleteArtifactRequest) Reset()

func (*DeleteArtifactRequest) String added in v0.2.63

func (x *DeleteArtifactRequest) String() string

type DeleteArtifactResponse added in v0.2.63

type DeleteArtifactResponse struct {
	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"`
	// contains filtered or unexported fields
}

func (*DeleteArtifactResponse) Descriptor deprecated added in v0.2.63

func (*DeleteArtifactResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteArtifactResponse.ProtoReflect.Descriptor instead.

func (*DeleteArtifactResponse) GetArtifactId added in v0.2.63

func (x *DeleteArtifactResponse) GetArtifactId() int64

func (*DeleteArtifactResponse) GetOk added in v0.2.63

func (x *DeleteArtifactResponse) GetOk() bool

func (*DeleteArtifactResponse) ProtoMessage added in v0.2.63

func (*DeleteArtifactResponse) ProtoMessage()

func (*DeleteArtifactResponse) ProtoReflect added in v0.2.63

func (x *DeleteArtifactResponse) ProtoReflect() protoreflect.Message

func (*DeleteArtifactResponse) Reset added in v0.2.63

func (x *DeleteArtifactResponse) Reset()

func (*DeleteArtifactResponse) String added in v0.2.63

func (x *DeleteArtifactResponse) String() string

type FileContainerResourceURL

type FileContainerResourceURL struct {
	FileContainerResourceURL string `json:"fileContainerResourceUrl"`
}

type FinalizeArtifactRequest added in v0.2.63

type FinalizeArtifactRequest struct {
	WorkflowRunBackendId    string                  `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
	WorkflowJobRunBackendId string                  `` /* 136-byte string literal not displayed */
	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"`
	// contains filtered or unexported fields
}

func (*FinalizeArtifactRequest) Descriptor deprecated added in v0.2.63

func (*FinalizeArtifactRequest) Descriptor() ([]byte, []int)

Deprecated: Use FinalizeArtifactRequest.ProtoReflect.Descriptor instead.

func (*FinalizeArtifactRequest) GetHash added in v0.2.63

func (*FinalizeArtifactRequest) GetName added in v0.2.63

func (x *FinalizeArtifactRequest) GetName() string

func (*FinalizeArtifactRequest) GetSize added in v0.2.63

func (x *FinalizeArtifactRequest) GetSize() int64

func (*FinalizeArtifactRequest) GetWorkflowJobRunBackendId added in v0.2.63

func (x *FinalizeArtifactRequest) GetWorkflowJobRunBackendId() string

func (*FinalizeArtifactRequest) GetWorkflowRunBackendId added in v0.2.63

func (x *FinalizeArtifactRequest) GetWorkflowRunBackendId() string

func (*FinalizeArtifactRequest) ProtoMessage added in v0.2.63

func (*FinalizeArtifactRequest) ProtoMessage()

func (*FinalizeArtifactRequest) ProtoReflect added in v0.2.63

func (x *FinalizeArtifactRequest) ProtoReflect() protoreflect.Message

func (*FinalizeArtifactRequest) Reset added in v0.2.63

func (x *FinalizeArtifactRequest) Reset()

func (*FinalizeArtifactRequest) String added in v0.2.63

func (x *FinalizeArtifactRequest) String() string

type FinalizeArtifactResponse added in v0.2.63

type FinalizeArtifactResponse struct {
	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"`
	// contains filtered or unexported fields
}

func (*FinalizeArtifactResponse) Descriptor deprecated added in v0.2.63

func (*FinalizeArtifactResponse) Descriptor() ([]byte, []int)

Deprecated: Use FinalizeArtifactResponse.ProtoReflect.Descriptor instead.

func (*FinalizeArtifactResponse) GetArtifactId added in v0.2.63

func (x *FinalizeArtifactResponse) GetArtifactId() int64

func (*FinalizeArtifactResponse) GetOk added in v0.2.63

func (x *FinalizeArtifactResponse) GetOk() bool

func (*FinalizeArtifactResponse) ProtoMessage added in v0.2.63

func (*FinalizeArtifactResponse) ProtoMessage()

func (*FinalizeArtifactResponse) ProtoReflect added in v0.2.63

func (x *FinalizeArtifactResponse) ProtoReflect() protoreflect.Message

func (*FinalizeArtifactResponse) Reset added in v0.2.63

func (x *FinalizeArtifactResponse) Reset()

func (*FinalizeArtifactResponse) String added in v0.2.63

func (x *FinalizeArtifactResponse) String() string

type GetSignedArtifactURLRequest added in v0.2.63

type GetSignedArtifactURLRequest struct {
	WorkflowRunBackendId    string `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
	WorkflowJobRunBackendId string `` /* 136-byte string literal not displayed */
	Name                    string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSignedArtifactURLRequest) Descriptor deprecated added in v0.2.63

func (*GetSignedArtifactURLRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSignedArtifactURLRequest.ProtoReflect.Descriptor instead.

func (*GetSignedArtifactURLRequest) GetName added in v0.2.63

func (x *GetSignedArtifactURLRequest) GetName() string

func (*GetSignedArtifactURLRequest) GetWorkflowJobRunBackendId added in v0.2.63

func (x *GetSignedArtifactURLRequest) GetWorkflowJobRunBackendId() string

func (*GetSignedArtifactURLRequest) GetWorkflowRunBackendId added in v0.2.63

func (x *GetSignedArtifactURLRequest) GetWorkflowRunBackendId() string

func (*GetSignedArtifactURLRequest) ProtoMessage added in v0.2.63

func (*GetSignedArtifactURLRequest) ProtoMessage()

func (*GetSignedArtifactURLRequest) ProtoReflect added in v0.2.63

func (*GetSignedArtifactURLRequest) Reset added in v0.2.63

func (x *GetSignedArtifactURLRequest) Reset()

func (*GetSignedArtifactURLRequest) String added in v0.2.63

func (x *GetSignedArtifactURLRequest) String() string

type GetSignedArtifactURLResponse added in v0.2.63

type GetSignedArtifactURLResponse struct {
	SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSignedArtifactURLResponse) Descriptor deprecated added in v0.2.63

func (*GetSignedArtifactURLResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSignedArtifactURLResponse.ProtoReflect.Descriptor instead.

func (*GetSignedArtifactURLResponse) GetSignedUrl added in v0.2.63

func (x *GetSignedArtifactURLResponse) GetSignedUrl() string

func (*GetSignedArtifactURLResponse) ProtoMessage added in v0.2.63

func (*GetSignedArtifactURLResponse) ProtoMessage()

func (*GetSignedArtifactURLResponse) ProtoReflect added in v0.2.63

func (*GetSignedArtifactURLResponse) Reset added in v0.2.63

func (x *GetSignedArtifactURLResponse) Reset()

func (*GetSignedArtifactURLResponse) String added in v0.2.63

type ListArtifactsRequest added in v0.2.63

type ListArtifactsRequest struct {
	WorkflowRunBackendId    string                  `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
	WorkflowJobRunBackendId string                  `` /* 136-byte string literal not displayed */
	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"`
	// contains filtered or unexported fields
}

func (*ListArtifactsRequest) Descriptor deprecated added in v0.2.63

func (*ListArtifactsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListArtifactsRequest.ProtoReflect.Descriptor instead.

func (*ListArtifactsRequest) GetIdFilter added in v0.2.63

func (x *ListArtifactsRequest) GetIdFilter() *wrapperspb.Int64Value

func (*ListArtifactsRequest) GetNameFilter added in v0.2.63

func (x *ListArtifactsRequest) GetNameFilter() *wrapperspb.StringValue

func (*ListArtifactsRequest) GetWorkflowJobRunBackendId added in v0.2.63

func (x *ListArtifactsRequest) GetWorkflowJobRunBackendId() string

func (*ListArtifactsRequest) GetWorkflowRunBackendId added in v0.2.63

func (x *ListArtifactsRequest) GetWorkflowRunBackendId() string

func (*ListArtifactsRequest) ProtoMessage added in v0.2.63

func (*ListArtifactsRequest) ProtoMessage()

func (*ListArtifactsRequest) ProtoReflect added in v0.2.63

func (x *ListArtifactsRequest) ProtoReflect() protoreflect.Message

func (*ListArtifactsRequest) Reset added in v0.2.63

func (x *ListArtifactsRequest) Reset()

func (*ListArtifactsRequest) String added in v0.2.63

func (x *ListArtifactsRequest) String() string

type ListArtifactsResponse added in v0.2.63

type ListArtifactsResponse struct {
	Artifacts []*ListArtifactsResponse_MonolithArtifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArtifactsResponse) Descriptor deprecated added in v0.2.63

func (*ListArtifactsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListArtifactsResponse.ProtoReflect.Descriptor instead.

func (*ListArtifactsResponse) GetArtifacts added in v0.2.63

func (*ListArtifactsResponse) ProtoMessage added in v0.2.63

func (*ListArtifactsResponse) ProtoMessage()

func (*ListArtifactsResponse) ProtoReflect added in v0.2.63

func (x *ListArtifactsResponse) ProtoReflect() protoreflect.Message

func (*ListArtifactsResponse) Reset added in v0.2.63

func (x *ListArtifactsResponse) Reset()

func (*ListArtifactsResponse) String added in v0.2.63

func (x *ListArtifactsResponse) String() string

type ListArtifactsResponse_MonolithArtifact added in v0.2.63

type ListArtifactsResponse_MonolithArtifact struct {
	WorkflowRunBackendId    string                 `protobuf:"bytes,1,opt,name=workflow_run_backend_id,json=workflowRunBackendId,proto3" json:"workflow_run_backend_id,omitempty"`
	WorkflowJobRunBackendId string                 `` /* 136-byte string literal not displayed */
	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"`
	// contains filtered or unexported fields
}

func (*ListArtifactsResponse_MonolithArtifact) Descriptor deprecated added in v0.2.63

func (*ListArtifactsResponse_MonolithArtifact) Descriptor() ([]byte, []int)

Deprecated: Use ListArtifactsResponse_MonolithArtifact.ProtoReflect.Descriptor instead.

func (*ListArtifactsResponse_MonolithArtifact) GetCreatedAt added in v0.2.63

func (*ListArtifactsResponse_MonolithArtifact) GetDatabaseId added in v0.2.63

func (x *ListArtifactsResponse_MonolithArtifact) GetDatabaseId() int64

func (*ListArtifactsResponse_MonolithArtifact) GetName added in v0.2.63

func (*ListArtifactsResponse_MonolithArtifact) GetSize added in v0.2.63

func (*ListArtifactsResponse_MonolithArtifact) GetWorkflowJobRunBackendId added in v0.2.63

func (x *ListArtifactsResponse_MonolithArtifact) GetWorkflowJobRunBackendId() string

func (*ListArtifactsResponse_MonolithArtifact) GetWorkflowRunBackendId added in v0.2.63

func (x *ListArtifactsResponse_MonolithArtifact) GetWorkflowRunBackendId() string

func (*ListArtifactsResponse_MonolithArtifact) ProtoMessage added in v0.2.63

func (*ListArtifactsResponse_MonolithArtifact) ProtoReflect added in v0.2.63

func (*ListArtifactsResponse_MonolithArtifact) Reset added in v0.2.63

func (*ListArtifactsResponse_MonolithArtifact) String added in v0.2.63

type NamedFileContainerResourceURL

type NamedFileContainerResourceURL struct {
	Name                     string `json:"name"`
	FileContainerResourceURL string `json:"fileContainerResourceUrl"`
}

type NamedFileContainerResourceURLResponse

type NamedFileContainerResourceURLResponse struct {
	Count int                             `json:"count"`
	Value []NamedFileContainerResourceURL `json:"value"`
}

type ResponseMessage

type ResponseMessage struct {
	Message string `json:"message"`
}

type WritableFile added in v0.2.40

type WritableFile interface {
	io.WriteCloser
}

type WriteFS added in v0.2.40

type WriteFS interface {
	OpenWritable(name string) (WritableFile, error)
	OpenAppendable(name string) (WritableFile, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL