Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller structure
func NewController ¶
func NewController(clients *config.Clients, factories *config.InformerFactories) *Controller
NewController creates a new Controller
func (*Controller) Run ¶
func (c *Controller) Run(workers int, stop <-chan struct{}) error
Run wait for cache sync then starts the workers
type Key ¶
type Key struct { Value string // We need that in order to know which namespace triggered the worker Invoker string // Wether namespace where created or deleted Event NamespaceEvent }
Key represents the objects stored in the queue
type NamespaceEvent ¶
type NamespaceEvent string
NamespaceEvent is an Enum
const ( Added NamespaceEvent = "created" Deleted NamespaceEvent = "deleted" )
Values associated to NamespaceEvent
Click to show internal directories.
Click to hide internal directories.