repos

package
v0.0.0-...-d42cbe4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(ctx context.Context, repoID int, repo *git.Repository, cloneURL string)

Schedules a clone.

func DeleteArtifacts

func DeleteArtifacts(ctx context.Context, username, repoName string, filenames []string)

Schedules deletion of artifacts.

func DeleteArtifactsBlocking

func DeleteArtifactsBlocking(
	ctx context.Context,
	username,
	repoName string,
	filenames []string,
) error

func Middleware

func Middleware(queue *work.Queue) func(next http.Handler) http.Handler

Types

type CloneStatus

type CloneStatus string
const (
	CloneNone       CloneStatus = "NONE"
	CloneInProgress CloneStatus = "IN_PROGRESS"
	CloneComplete   CloneStatus = "COMPLETE"
	CloneError      CloneStatus = "ERROR"
)

Jump to

Keyboard shortcuts

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