Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager interface { // Register registers a weeder with the manager. If a weeder with a key identified by `createKey` // exists then it will close it and replace it with the new weeder. Register(weeder Weeder) bool // Unregister checks if there is an existing weeder with the key. If it is found then it will close the weeder // and remove it from the manager. Unregister(key string) bool // UnregisterAll unregisters all weeders from the manager. UnregisterAll() // GetWeederRegistration returns a weederRegistration which will give access to the context and the cancelFn to the caller. GetWeederRegistration(key string) (Registration, bool) }
Manager provides a single point for registering and unregistering weeders
type Registration ¶
type Registration interface { // IsClosed return true if a weeder is closed else returns false. IsClosed() bool // Close closes the weeder. Close() }
Registration provides a handle to check if a weeder has been closed and to also close the weeder.
type Weeder ¶
type Weeder struct {
// contains filtered or unexported fields
}
Weeder represents an actor which will be responsible for watching dependent pods and weeding them out if they are in CrashLoopBackOff.
Click to show internal directories.
Click to hide internal directories.