Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitFetcher ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles all the watches for the git repositories. These watches are pulling the latest commit every syncPeriod.
func NewHandler ¶
func (*Handler) AddOrModifyGitRepoWatch ¶
AddOrModifyGitRepoWatch adds a new watch for the gitjob if no watch was already present. It updates the existing watch for this gitjob if present.
func (*Handler) CleanUpWatches ¶
CleanUpWatches removes all watches whose gitjob is not present in the cluster.
type Watch ¶
type Watch struct {
// contains filtered or unexported fields
}
Watch fetches the latest commit of a git repository referenced by a gitJob with the syncInterval provided.
func (*Watch) GetSyncInterval ¶
func (*Watch) StartBackgroundSync ¶
StartBackgroundSync fetches the latest commit every syncInternal in a goroutine.
func (*Watch) UpdateGitJob ¶
Click to show internal directories.
Click to hide internal directories.