scanner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoInfo

type RepoInfo struct {
	Path            string
	CurrentRemote   string
	CurrentHost     string
	CurrentEmail    string
	CurrentName     string
	ExpectedProfile *config.Profile
	Status          RepoStatus
	Errors          []string
}

RepoInfo contains information about a scanned repository

type RepoStatus

type RepoStatus string

RepoStatus represents the alignment status of a repository

const (
	StatusAligned    RepoStatus = "aligned"
	StatusMisaligned RepoStatus = "misaligned"
	StatusUnassigned RepoStatus = "unassigned"
)

type Scanner

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

Scanner scans directories for Git repositories

func NewScanner

func NewScanner(resolver *mapping.Resolver) *Scanner

NewScanner creates a new scanner

func (*Scanner) Scan

func (s *Scanner) Scan(rootPath string) ([]RepoInfo, error)

Scan scans a path for Git repositories

Jump to

Keyboard shortcuts

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