Documentation ¶
Index ¶
Constants ¶
View Source
const MAX_RETRY int = 3
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) HasSynced ¶
func (c *Controller) HasSynced() bool
Implement cache.Controller interface
func (*Controller) LastSyncResourceVersion ¶
func (c *Controller) LastSyncResourceVersion() string
Implement cache.Controller interface
func (*Controller) Process ¶
func (c *Controller) Process(event Event) error
func (*Controller) Run ¶
func (c *Controller) Run(chStop <-chan struct{})
Implement cache.Controller interface
type DefaultHandler ¶
type DefaultHandler struct{}
default handler simply print out the pod's basic information
func (*DefaultHandler) Created ¶
func (dh *DefaultHandler) Created(item interface{})
func (*DefaultHandler) Deleted ¶
func (dh *DefaultHandler) Deleted(item interface{})
func (*DefaultHandler) Updated ¶
func (dh *DefaultHandler) Updated(item interface{})
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Sent to queue by informer if match the condition
type Handler ¶
type Handler interface { Created(item interface{}) Updated(item interface{}) Deleted(item interface{}) }
type HzjHandler ¶
type HzjHandler struct{}
print out type fufu's information
func (*HzjHandler) Created ¶
func (hh *HzjHandler) Created(item interface{})
func (*HzjHandler) Deleted ¶
func (hh *HzjHandler) Deleted(item interface{})
func (*HzjHandler) Updated ¶
func (hh *HzjHandler) Updated(item interface{})
Click to show internal directories.
Click to hide internal directories.