fleetdiscovery

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: 5 Imported by: 0

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