Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRepoAllowlist ¶
ParseRepoAllowlist parses a comma-separated allowlist string into a slice of host-qualified repo keys. Whitespace is trimmed; empty entries are skipped. Returns (nil, nil) for empty input (allow-all). Entry well-formedness is NOT validated here — repoallowlist.IsAllowed handles malformed entries gracefully at match time (logs and skips).
Types ¶
type RepoFilter ¶
RepoFilter decides whether to skip a repo in a poll cycle. Skip returns true if the repo should be excluded.
func NewRepoAllowlistFilter ¶
func NewRepoAllowlistFilter(allowlist []string) RepoFilter
NewRepoAllowlistFilter returns a RepoFilter that skips repos not in the allowlist. An empty allowlist never skips (allow-all).
type RepoFilters ¶
type RepoFilters []RepoFilter
RepoFilters is an OR-composite: skip if ANY filter votes to skip. An empty slice never skips (allow-all).
func (RepoFilters) Skip ¶
func (filters RepoFilters) Skip(repoKey string) bool
Skip returns true if any contained filter votes skip.