Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface { Source healthz.HealthChecker manager.Runnable }
func NewGenerator ¶
func NewGenerator(getResources func(ctx context.Context) (*iri.RuntimeResources, error), opts GeneratorOptions) Generator
type GeneratorOptions ¶
type Handler ¶
type Handler interface {
UpdateResources(event *UpdateResourcesEvent)
}
type HandlerFuncs ¶
type HandlerFuncs struct {
UpdateResourcesFunc func(event *UpdateResourcesEvent)
}
func (HandlerFuncs) UpdateResources ¶
func (f HandlerFuncs) UpdateResources(event *UpdateResourcesEvent)
type HandlerRegistration ¶
type HandlerRegistration interface {
Remove() error
}
type Source ¶
type Source interface {
AddHandler(handler Handler) (HandlerRegistration, error)
}
type UpdateResourcesEvent ¶
type UpdateResourcesEvent struct { ResourcesOld *iri.RuntimeResources ResourcesNew *iri.RuntimeResources }
Click to show internal directories.
Click to hide internal directories.