policystatus

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener chan statusUpdater

Listener is a channel of statusUpdater instances

func (Listener) Update added in v1.3.0

func (l Listener) Update(s statusUpdater)

Update queues an status update request

type Sync

type Sync struct {
	Listener Listener
	// contains filtered or unexported fields
}

Sync is the object which is used to initialize the policyStatus sync, can be considered the parent object since it contains access to all the persistent data present in this package.

func NewSync

NewSync creates a new Sync instance

func (*Sync) Run

func (s *Sync) Run(workers int, stopCh <-chan struct{})

Run starts workers and periodically flushes the cached status

Jump to

Keyboard shortcuts

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