Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthSynchronizer ¶
type AuthSynchronizer struct { AuthConfig authcenter.AuthConfig Workers *[]Worker WorkerQueue chan meta.WorkRequest Producer *Producer // contains filtered or unexported fields }
AuthSynchronizer stores all related resource
func NewSynchronizer ¶
func NewSynchronizer(ctx context.Context, authConfig *authcenter.AuthConfig, clientSet apimachinery.ClientSetInterface) *AuthSynchronizer
NewSynchronizer new a synchronizer object
type Producer ¶
type Producer struct { ID int WorkerQueue chan meta.WorkRequest QuitChan chan bool // contains filtered or unexported fields }
Producer producer WorkRequest and enqueue it
func NewProducer ¶
func NewProducer(clientSet apimachinery.ClientSetInterface, authManager *extensions.AuthManager, workerQueue chan meta.WorkRequest) *Producer
NewProducer make a producer
type Worker ¶
type Worker struct { ID int WorkerQueue chan meta.WorkRequest QuitChan chan bool SyncHandler meta.SyncHandler }
Worker represent a worker
func NewWorker ¶
func NewWorker(id int, workerQueue chan meta.WorkRequest, handler meta.SyncHandler) *Worker
NewWorker creates, and returns a new Worker object. Its only argument is a channel that the worker can add itself to whenever it is done its work.
Click to show internal directories.
Click to hide internal directories.