poll

package
v0.0.0-...-ecf1725 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecretPoller

func NewSecretPoller(name, namespace string, client kubernetes.Interface) syncapi.Poller

NewSecretPoller returns instance of Poller interface.

Types

type PollWatcher

type PollWatcher struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Implements watch.Interface

func NewPollWatcher

func NewPollWatcher() *PollWatcher

NewPollWatcher creates instance of PollWatcher.

func (*PollWatcher) IsStopped

func (self *PollWatcher) IsStopped() bool

IsStopped returns whether or not watcher was stopped.

func (*PollWatcher) ResultChan

func (self *PollWatcher) ResultChan() <-chan watch.Event

ResultChan returns result channel that user can watch for incoming events.

func (*PollWatcher) Stop

func (self *PollWatcher) Stop()

Stop stops poll watcher and closes event channel.

type SecretPoller

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

SecretPoller implements Poller interface. See Poller for more information.

func (*SecretPoller) Poll

func (self *SecretPoller) Poll(interval time.Duration) watch.Interface

Poll new secret every 'interval' time and send it to watcher channel. See Poller for more information.

Jump to

Keyboard shortcuts

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