syncrun

package
v0.182.6 Latest Latest
Warning

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

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

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