MCPcopy Create free account
hub / github.com/evenh/intercert / configureTasks

Function configureTasks

client/client.go:117–127  ·  view source on GitHub ↗
(client api.CertificateIssuerClient, config *config.ClientConfig, storage *CertStorage)

Source from the content-addressed store, hash-verified

115}
116
117func configureTasks(client api.CertificateIssuerClient, config *config.ClientConfig, storage *CertStorage) []Job {
118 var tasks []Job
119
120 pinger := *Register(pingServer(client), "Ping intercert host", 10*time.Minute, false)
121 renewalHandler := *Register(watchForEvents(config.Domains, client), "Watch for certificate renewal events", 0*time.Second, true)
122 desiredCheck := *Register(ensureCertsFromConfig(storage, config.Domains), "Ensure configured domains is present", 1*time.Hour, true)
123
124 tasks = append(tasks, pinger, renewalHandler, desiredCheck)
125
126 return tasks
127}

Callers 1

StartClientFunction · 0.85

Calls 4

RegisterFunction · 0.85
pingServerFunction · 0.85
watchForEventsFunction · 0.85
ensureCertsFromConfigFunction · 0.85

Tested by

no test coverage detected