Documentation ¶
Index ¶
- Variables
- func CleanupMetricsGauges()
- func DeleteCanaryJob(id string)
- func ReconcileCanaryResults()
- func ScanCanaryConfigs()
- func ScheduleFunc(schedule string, fn func()) (interface{}, error)
- func StartScanCanaryConfigs(dataFile string, configFiles []string)
- func SyncCanaryJob(dbCanary pkg.Canary) error
- func SyncCanaryJobs()
- type CanaryJob
- type CanaryPullResponse
- type CanaryStatusPayload
- type UpstreamPullJob
- type UpstreamPushJob
Constants ¶
This section is empty.
Variables ¶
View Source
var CanaryConfigFiles []string
View Source
var CanaryNamespaces []string
CanaryNamespaces is a list of namespaces whose canary specs should be synced. If empty, all namespaces will be synced
View Source
var CanaryScheduler = cron.New()
View Source
var CanaryStatusChannel chan CanaryStatusPayload
View Source
var DataFile string
View Source
var Executor bool
View Source
var FuncScheduler = cron.New()
View Source
var Kommons *kommons.Client
View Source
var Kubernetes kubernetes.Interface
View Source
var LogPass, LogFail bool
View Source
var UpstreamConf upstream.UpstreamConfig
Functions ¶
func CleanupMetricsGauges ¶ added in v0.38.328
func CleanupMetricsGauges()
CleanupMetricsGauges removes gauges for checks that no longer exist.
func DeleteCanaryJob ¶
func DeleteCanaryJob(id string)
func ReconcileCanaryResults ¶ added in v1.0.36
func ReconcileCanaryResults()
ReconcileCanaryResults coordinates with upstream and pushes any resource that are missing on the upstream.
func ScanCanaryConfigs ¶
func ScanCanaryConfigs()
func ScheduleFunc ¶
func StartScanCanaryConfigs ¶
func SyncCanaryJob ¶
TODO: Refactor to use database object instead of kubernetes
func SyncCanaryJobs ¶
func SyncCanaryJobs()
Types ¶
type CanaryJob ¶
type CanaryJob struct { *kommons.Client Kubernetes kubernetes.Interface Canary v1.Canary DBCanary pkg.Canary LogPass bool LogFail bool }
func (CanaryJob) GetNamespacedName ¶
func (job CanaryJob) GetNamespacedName() types.NamespacedName
func (*CanaryJob) NewContext ¶
type CanaryPullResponse ¶ added in v1.0.36
type CanaryStatusPayload ¶ added in v0.38.213
type UpstreamPullJob ¶ added in v1.0.36
type UpstreamPullJob struct {
// contains filtered or unexported fields
}
UpstreamPullJob pulls canaries from the upstream
func (*UpstreamPullJob) Run ¶ added in v1.0.36
func (t *UpstreamPullJob) Run()
type UpstreamPushJob ¶ added in v1.0.36
type UpstreamPushJob struct { // MaxAge defines how far back we look into the past on startup whe // lastRuntime is zero. MaxAge time.Duration // contains filtered or unexported fields }
func (*UpstreamPushJob) Run ¶ added in v1.0.36
func (t *UpstreamPushJob) Run()
Click to show internal directories.
Click to hide internal directories.