daemon

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Run(ctx context.Context, projects []project.Project) []checkeraggregates.ProjectResult
}

type Daemon

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

func New

func New(checker Checker,
	providers []aggregates.Provider,
	metrics Metrics,
	logger *slog.Logger,
	interval time.Duration,
	git Git,
	registry *prometheus.Registry) (*Daemon, error)

func (*Daemon) Start

func (d *Daemon) Start(configPath string)

func (*Daemon) Stop

func (d *Daemon) Stop()

type Git

type Git interface {
	Clone(url string, ref string, path string) error
	Pull(path string, ref string) error
}

type Metrics

type Metrics interface {
	Load(results []checkeraggregates.ProjectResult)
}

Jump to

Keyboard shortcuts

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