syncer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

type GitHub interface {
	OrganizationRepositories(context.Context, string) ([]gh.Repository, error)
	Repository(context.Context, string, string) (gh.Repository, error)
	OrganizationAlerts(context.Context, string) ([]gh.Alert, error)
	RepositoryAlerts(context.Context, string, string) ([]gh.Alert, error)
}

type Result

type Result struct {
	Repositories, Alerts int
	Duration             time.Duration
}

type Syncer

type Syncer struct {
	Store  *store.Store
	GitHub GitHub
	// OnProgress reports completed work in the current phase; total=-1 means unknown.
	OnProgress func(phase string, completed, total int)
}

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context, org, repo string) (result Result, err error)

Jump to

Keyboard shortcuts

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