syncrun

package
v0.193.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 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

func Finalize

func Finalize(meta fleetsync.RunMeta, results []fleetsync.Result, options Options, effects Effects, out, errOut io.Writer) int

func PublishSyncReport

func PublishSyncReport(ctx context.Context, repository, root string, report syncreport.Report) (gitrepo.SyncReportPublishResult, error)

Types

type Completion

type Completion func(fleetsync.RunMeta, []fleetsync.Result, Options, io.Writer, io.Writer) int

type Dependencies

type Dependencies struct {
	Discovery fleetdiscovery.Resolver
	Reconcile func(context.Context, []discover.Repo) []discover.Repo
	Dispatch  func(context.Context, []lifecyclehooks.Event) (lifecyclehooks.Report, error)
	Now       func() time.Time
}

type Effects

type Effects struct {
	Markers func([]fleetsync.Result, string, io.Writer)
	Publish func(string, string, int, io.Writer, io.Writer) error
}

type Options

type Options struct {
	ProjectsRoot, Filter                        string
	Owners                                      []string
	Workers                                     int
	DryRun, Publish, PruneArchived, Interactive bool
}

type Presentation

type Presentation struct {
	Interactive func(context.Context, []discover.Repo, map[string]int, Options, io.Writer) []fleetsync.Result
	Summary     func(io.Writer, []fleetsync.Result, bool, bool)
}

type Service

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

func New

func New(deps Dependencies, completion Completion, presentation Presentation) Service

func (Service) Run

func (service Service) Run(ctx context.Context, options Options, out, errOut io.Writer) int

Jump to

Keyboard shortcuts

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