controller

package
v0.0.0-...-eef2c6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, threadiness int, starters ...Starter) error

func Sync

func Sync(ctx context.Context, starters ...Starter) error

func SyncThenSync

func SyncThenSync(ctx context.Context, threadiness int, starters ...Starter) error

Types

type GenericController

type GenericController interface {
	Informer() cache.SharedIndexInformer
	AddHandler(handler HandlerFunc)
	HandlerCount() int
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

func NewGenericController

func NewGenericController(name string, objectClient *clientbase.ObjectClient) GenericController

type HandlerFunc

type HandlerFunc func(key string) error

type Starter

type Starter interface {
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL