scheduler

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLatestCommits

func CheckLatestCommits(ctx context.Context, repo gitutils.RepositoryCloneSpec, branchCommits map[string][]gitutils.Commit) map[string][]gitutils.Commit

Checkout latest commits and return commits newer than provided list of commits per branch

func ScheduleReposiroryTracking

func ScheduleReposiroryTracking(config Config)

Types

type Config

type Config struct {
	Frequency        int    //how often, in seconds the schedule should be run
	DataDir          string //CheckMate data directory
	ScanOlderCommits bool   //whether commits, prior to HEAD, should be scanned. TODO: set this from the parameters
	ProjectManager   projects.ProjectManager
}

Jump to

Keyboard shortcuts

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