repository

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clone

type Clone struct {
	// contains filtered or unexported fields
}

Clone handles the CLONE_REPOSITORY task operation. It clones a Git repository to the local filesystem and updates the repo record.

func NewClone

func NewClone(
	repoStore repository.RepositoryStore,
	cloner domainservice.Cloner,
	queue *service.Queue,
	trackerFactory handler.TrackerFactory,
	logger zerolog.Logger,
) *Clone

NewClone creates a new Clone handler.

func (*Clone) Execute

func (h *Clone) Execute(ctx context.Context, payload map[string]any) error

Execute processes the CLONE_REPOSITORY task.

type Delete

type Delete struct {
	// contains filtered or unexported fields
}

Delete handles the DELETE_REPOSITORY task operation. It removes a repository and all its associated data from the system.

func NewDelete

func NewDelete(
	repoStores handler.RepositoryStores,
	enrichments *service.Enrichment,
	queue *service.Queue,
	trackerFactory handler.TrackerFactory,
	logger zerolog.Logger,
) *Delete

NewDelete creates a new Delete handler.

func (*Delete) Execute

func (h *Delete) Execute(ctx context.Context, payload map[string]any) error

Execute processes the DELETE_REPOSITORY task.

type Sync

type Sync struct {
	// contains filtered or unexported fields
}

Sync handles the SYNC_REPOSITORY task operation. It fetches the latest changes from the remote repository and optionally queues commit scanning tasks.

func NewSync

func NewSync(
	repoStore repository.RepositoryStore,
	branchStore repository.BranchStore,
	cloner domainservice.Cloner,
	scanner domainservice.Scanner,
	queue *service.Queue,
	prescribedOps task.PrescribedOperations,
	trackerFactory handler.TrackerFactory,
	logger zerolog.Logger,
) *Sync

NewSync creates a new Sync handler.

func (*Sync) Execute

func (h *Sync) Execute(ctx context.Context, payload map[string]any) error

Execute processes the SYNC_REPOSITORY task.

Jump to

Keyboard shortcuts

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