Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ALWAYS_TRUE = func(err error) bool { return true }
)
Functions ¶
This section is empty.
Types ¶
type EventProducer ¶
type KeyedEventProducer ¶
type KeyedEventProducer interface { EventProducer // Key returns a unique identifier for this key Key() manager.ObjectKey // Start called when the producer can start producing event, the done channel // will close when it's time to shutdown. Start(<-chan struct{}) error }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) Add ¶
func (m *Manager) Add(producer KeyedEventProducer) error
Add add an event producer to this manager, if this manager is already started then the producer will also be started, otherwise the producer will start when the manager starts.
func (*Manager) Exists ¶
func (m *Manager) Exists(objectMeta metav1.ObjectMeta) bool
Exists returns true if this event producer has already been registred
func (*Manager) InjectClient ¶
InjectClient injectable client
Click to show internal directories.
Click to hide internal directories.