Documentation
¶
Index ¶
- Variables
- func ControlledJobInfoLabelValuesFor(controlledJob *batch.ControlledJob) []string
- type Watcher
- func (*Watcher) Create(ctx context.Context, evt event.CreateEvent, q workqueue.RateLimitingInterface)
- func (*Watcher) Delete(ctx context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (*Watcher) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface)
- func (*Watcher) Update(ctx context.Context, evt event.UpdateEvent, q workqueue.RateLimitingInterface)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ControlledJobInfo = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "controlledjob_info", Help: "Information about ControlledJobs", }, []string{"namespace", "controlledjob", "timezone"}, ) )
Functions ¶
func ControlledJobInfoLabelValuesFor ¶
func ControlledJobInfoLabelValuesFor(controlledJob *batch.ControlledJob) []string
Types ¶
type Watcher ¶
type Watcher struct{}
Watcher implements handler.EventHandler so we can record metrics when ControlledJob resources are modified in the cluster
func (*Watcher) Create ¶
func (*Watcher) Create(ctx context.Context, evt event.CreateEvent, q workqueue.RateLimitingInterface)
Create implements handler.EventHandler
func (*Watcher) Delete ¶
func (*Watcher) Delete(ctx context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface)
Delete implements handler.EventHandler
func (*Watcher) Generic ¶
func (*Watcher) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface)
Generic implements handler.EventHandler We need to implement it to satisfy the interface, but we don't expect it to get called in practice, as it's used for external events like GitHub webhook events
func (*Watcher) Update ¶
func (*Watcher) Update(ctx context.Context, evt event.UpdateEvent, q workqueue.RateLimitingInterface)
Update implements handler.EventHandler
Click to show internal directories.
Click to hide internal directories.