repository

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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