syncer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller populates local storage with all RemoteEnvironment custom resources created in k8s cluster.

func New

func New(remoteEnvironmentInformer informers.RemoteEnvironmentInformer, reUpserter remoteEnvironmentUpserter, reRemover remoteEnvironmentRemover, scRelistRequester scRelistRequester, log logrus.FieldLogger) *Controller

New creates new remote environment controller

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{})

Run starts the controller

type RelistRequester

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

RelistRequester informs the Service Catalog that given Service Broker should be relisted. Due to performance reason, many relist requests which happen during the period defined in `reListDurationWindow` result in a single Service Catalog relist trigger.

func NewRelistRequester

func NewRelistRequester(serviceCatalogSyncer serviceCatalogSyncer, brokerName string, reListDuration time.Duration, log logrus.FieldLogger) *RelistRequester

NewRelistRequester returns new instance of RelistRequester

func (*RelistRequester) RequestRelist

func (r *RelistRequester) RequestRelist()

RequestRelist informs the Service Catalog that Broker should be relisted.

func (*RelistRequester) Run

func (r *RelistRequester) Run(stopCh <-chan struct{})

Run runs worker which executing relist operation

type TimeAfterProvider

type TimeAfterProvider func(d time.Duration) <-chan time.Time

TimeAfterProvider is a provider for time.After. If not initialised defaults to time.After implementation for stdlib. It's intended to facilitate testing without time dependency.

func (TimeAfterProvider) After

func (p TimeAfterProvider) After(d time.Duration) <-chan time.Time

After calls attached After implementation.

Directories

Path Synopsis
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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