Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MappingsValidator ¶
type MappingsValidator interface {
Validate(ctx context.Context, target string, force bool, stdout, stderr io.Writer) int
}
MappingsValidator is the validate use case. main_test.go swaps it for a fake that satisfies this interface.
func NewMappingsValidator ¶
func NewMappingsValidator( provider *mappings.Provider, checker validate.RepoValidator, lister validate.OrgRepoLister, lockPath string, clock func() time.Time, ) MappingsValidator
NewMappingsValidator builds the validate use case from its dependencies. Callers (cmd/notifycat-config, tests) construct provider/checker/lister/ clock themselves and pass them in — there is no production-wiring façade in this package. `lister` may be nil when no GitHub credentials exist.
Click to show internal directories.
Click to hide internal directories.