wait

package
v0.0.0-...-60f4931 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const Port = 9002

Variables

This section is empty.

Functions

func Run

func Run(kubeClient kubernetes.Interface, syncTracker *SyncTracker)

Types

type SyncTracker

type SyncTracker struct {
	// contains filtered or unexported fields
}

SyncTracker tracks connections to CLIs that can be queried to get the sync status.

func NewSyncTracker

func NewSyncTracker() *SyncTracker

func (*SyncTracker) RunServer

func (st *SyncTracker) RunServer(namespace string, srv node.Controller_SyncNotificationsServer) error

func (*SyncTracker) WaitFor

func (st *SyncTracker) WaitFor(namespace string) Waiter

WaitFor creates a waiter function that blocks until the initial sync is completed for the given namespace.

type Waiter

type Waiter func(ctx context.Context, updates chan<- string) error

Implementations of waiters should block until they have finished waiting. They may send status updates on the updates channel.

Jump to

Keyboard shortcuts

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