Documentation
¶
Overview ¶
Package fleetdiscovery reconciles local scans with best-effort remote inventory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
AuthUser func() (string, error)
MemberOrgs func() ([]string, error)
ScanLocal func(string) ([]discover.Repo, error)
ListRemote func(string) ([]discover.Repo, error)
Reconcile func([]discover.Repo, []discover.Repo) []discover.Repo
Diagnostics io.Writer
}
Resolver holds immutable function bindings and one diagnostic stream.
func (Resolver) Discover ¶
func (resolver Resolver) Discover(projectsRoot, filter string, resolveOwners func() []string) ([]discover.Repo, error)
fleet discovers and reconciles repos for the owners resolveOwners returns, filtered by a substring match on org/name. resolveOwners is called after the local scan starts, so remote owner resolution overlaps the local disk walk.
Click to show internal directories.
Click to hide internal directories.