fleetdiscovery

package
v0.200.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 5 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

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 New

func New(diagnostics io.Writer) Resolver

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.

func (Resolver) Owners

func (resolver Resolver) Owners(extraOrgs []string) []string

fleetOwners returns the authenticated user's login plus every org they belong to, plus any extraOrgs, as an owner set for discovery.

Jump to

Keyboard shortcuts

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