Documentation ¶
Index ¶
- Constants
- Variables
- func CleanupMetricsGauges()
- func DeleteCanaryJob(id string)
- func ReconcileChecks()
- func ScanCanaryConfigs()
- func ScheduleFunc(schedule string, fn func()) (interface{}, error)
- func StartScanCanaryConfigs(dataFile string, configFiles []string)
- func StartUpstreamEventQueueConsumer(ctx *context.Context) error
- func SyncCanaryJob(ctx context.Context, dbCanary pkg.Canary) error
- func SyncCanaryJobs(ctx dutyjob.JobRuntime) error
- func SyncCheckStatuses()
- type CanaryJob
- type CanaryPullResponse
- type CanaryStatusPayload
- type UpstreamPullJob
Constants ¶
View Source
const (
EventPushQueueCreate = "push_queue.create"
)
Variables ¶
View Source
var ( ReconcilePageSize int // Only sync data created/updated in the last ReconcileMaxAge duration ReconcileMaxAge time.Duration // UpstreamConf is the global configuration for upstream UpstreamConf upstream.UpstreamConfig )
View Source
var CanaryConfigFiles []string
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 MinimumTimeBetweenCanaryRuns = 10 * time.Second
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 ReconcileChecks ¶ added in v1.0.69
func ReconcileChecks()
ReconcileChecks coordinates with upstream and pushes any resource that are missing on the upstream.
func ScanCanaryConfigs ¶
func ScanCanaryConfigs()
func ScheduleFunc ¶
func StartScanCanaryConfigs ¶
func StartUpstreamEventQueueConsumer ¶ added in v1.0.69
func SyncCanaryJob ¶
TODO: Refactor to use database object instead of kubernetes
func SyncCanaryJobs ¶
func SyncCanaryJobs(ctx dutyjob.JobRuntime) error
func SyncCheckStatuses ¶ added in v1.0.69
func SyncCheckStatuses()
Types ¶
type CanaryJob ¶
func (CanaryJob) GetNamespacedName ¶
func (j CanaryJob) GetNamespacedName() types.NamespacedName
type CanaryPullResponse ¶ added in v1.0.36
type CanaryStatusPayload ¶ added in v0.38.213
type UpstreamPullJob ¶ added in v1.0.36
type UpstreamPullJob struct { Client *upstream.UpstreamClient // contains filtered or unexported fields }
UpstreamPullJob pulls canaries from the upstream
func (*UpstreamPullJob) Run ¶ added in v1.0.36
func (t *UpstreamPullJob) Run()
Click to show internal directories.
Click to hide internal directories.