Documentation ¶
Index ¶
- Variables
- func ConfigureApplyForObject(apply apply.Apply, obj metav1.Object, opts *GeneratingHandlerOptions) apply.Apply
- func ToName(h interface{}) string
- type Controller
- func (c *Controller) Enqueue(namespace, name string)
- func (c *Controller) EnqueueAfter(namespace, name string, duration time.Duration)
- func (c *Controller) GroupVersionKind() schema.GroupVersionKind
- func (c *Controller) Informer() cache.SharedIndexInformer
- func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error
- type ControllerManager
- func (g *ControllerManager) AddHandler(ctx context.Context, gvk schema.GroupVersionKind, ...)
- func (g *ControllerManager) Controllers() map[schema.GroupVersionKind]*Controller
- func (g *ControllerManager) Enqueue(gvk schema.GroupVersionKind, informer cache.SharedIndexInformer, ...)
- func (g *ControllerManager) EnqueueAfter(gvk schema.GroupVersionKind, informer cache.SharedIndexInformer, ...)
- func (g *ControllerManager) EnsureStart(ctx context.Context, gvk schema.GroupVersionKind, threadiness int) error
- func (g *ControllerManager) Start(ctx context.Context, defaultThreadiness int, ...) error
- type ControllerMeta
- type GeneratingHandlerOptions
- type Handler
- type HandlerTransaction
- type Handlers
- type Updater
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSkip = errors2.New("skip processing")
Functions ¶
func ConfigureApplyForObject ¶ added in v0.6.0
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller implementation for Foo resources
func NewController ¶
func NewController(gvk schema.GroupVersionKind, informer cache.SharedIndexInformer, workqueue workqueue.RateLimitingInterface, handler Handler) *Controller
NewController returns a new sample controller
func (*Controller) Enqueue ¶
func (c *Controller) Enqueue(namespace, name string)
func (*Controller) EnqueueAfter ¶ added in v0.3.0
func (c *Controller) EnqueueAfter(namespace, name string, duration time.Duration)
func (*Controller) GroupVersionKind ¶ added in v0.3.0
func (c *Controller) GroupVersionKind() schema.GroupVersionKind
func (*Controller) Informer ¶ added in v0.3.0
func (c *Controller) Informer() cache.SharedIndexInformer
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error
type ControllerManager ¶
type ControllerManager struct {
// contains filtered or unexported fields
}
func (*ControllerManager) AddHandler ¶
func (g *ControllerManager) AddHandler(ctx context.Context, gvk schema.GroupVersionKind, informer cache.SharedIndexInformer, name string, handler Handler)
func (*ControllerManager) Controllers ¶ added in v0.3.0
func (g *ControllerManager) Controllers() map[schema.GroupVersionKind]*Controller
func (*ControllerManager) Enqueue ¶
func (g *ControllerManager) Enqueue(gvk schema.GroupVersionKind, informer cache.SharedIndexInformer, namespace, name string)
func (*ControllerManager) EnqueueAfter ¶ added in v0.3.0
func (g *ControllerManager) EnqueueAfter(gvk schema.GroupVersionKind, informer cache.SharedIndexInformer, namespace, name string, duration time.Duration)
func (*ControllerManager) EnsureStart ¶ added in v0.3.0
func (g *ControllerManager) EnsureStart(ctx context.Context, gvk schema.GroupVersionKind, threadiness int) error
func (*ControllerManager) Start ¶
func (g *ControllerManager) Start(ctx context.Context, defaultThreadiness int, threadiness map[schema.GroupVersionKind]int) error
type ControllerMeta ¶ added in v0.3.0
type GeneratingHandlerOptions ¶ added in v0.3.0
type HandlerTransaction ¶ added in v0.5.0
func NewHandlerTransaction ¶ added in v0.5.0
func NewHandlerTransaction(ctx context.Context) *HandlerTransaction
func (*HandlerTransaction) Commit ¶ added in v0.5.0
func (h *HandlerTransaction) Commit()
func (*HandlerTransaction) Rollback ¶ added in v0.5.0
func (h *HandlerTransaction) Rollback()
Click to show internal directories.
Click to hide internal directories.