Documentation ¶
Index ¶
- Variables
- func NewMetrics()
- type ConsumerHandler
- type Controller
- func (c *Controller) InitializeController(mgr manager.Manager, requiredLabel string) error
- func (c *Controller) Reconcile(_ context.Context, _ reconcile.Request) (reconcile.Result, error)
- func (c *Controller) ReconcileNotificationCadence(resource *u.Unstructured, url string, priority string, settings v1.ConfigMap, ...) error
- func (c *Controller) ResourceReconcile(ctx context.Context, resource *u.Unstructured) (reconcile.Result, error)
- func (c *Controller) WatchResources(discoveryClient *discovery.DiscoveryClient, dynamicClient dynamic.Interface, ...) error
- type ResourceDetails
Constants ¶
This section is empty.
Variables ¶
View Source
var WatchingResourcesCount = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "heimdall_watching_resource_count",
Help: "Number of resources being watched by Heimdall",
})
Functions ¶
func NewMetrics ¶ added in v0.6.0
func NewMetrics()
Types ¶
type ConsumerHandler ¶ added in v1.0.0
type ConsumerHandler struct {
// contains filtered or unexported fields
}
func (*ConsumerHandler) Cleanup ¶ added in v1.0.0
func (h *ConsumerHandler) Cleanup(_ kafka.ConsumerGroupSession) error
Cleanup Necessary for Consumer Groups
func (*ConsumerHandler) ConsumeClaim ¶ added in v1.0.0
func (h *ConsumerHandler) ConsumeClaim(sess kafka.ConsumerGroupSession, claim kafka.ConsumerGroupClaim) error
func (*ConsumerHandler) Setup ¶ added in v1.0.0
func (h *ConsumerHandler) Setup(_ kafka.ConsumerGroupSession) error
Setup Necessary for Consumer Groups
type Controller ¶
func (*Controller) InitializeController ¶
func (c *Controller) InitializeController(mgr manager.Manager, requiredLabel string) error
InitializeController Add +kubebuilder:rbac:groups=*,resources=*,verbs=get;list;watch
func (*Controller) Reconcile ¶
Reconcile Placeholder for now as we don't need a traditional reconcile loop
func (*Controller) ReconcileNotificationCadence ¶ added in v0.5.0
func (*Controller) ResourceReconcile ¶ added in v1.0.0
func (c *Controller) ResourceReconcile(ctx context.Context, resource *u.Unstructured) (reconcile.Result, error)
func (*Controller) WatchResources ¶
func (c *Controller) WatchResources(discoveryClient *discovery.DiscoveryClient, dynamicClient dynamic.Interface, requiredLabel string) error
Click to show internal directories.
Click to hide internal directories.