module

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDisabledModuleError

func IsDisabledModuleError(err error) bool

func MakePluggableFunc

func MakePluggableFunc(informer cache.SharedIndexInformer) func(PluggableModule)

Types

type DisabledModuleError

type DisabledModuleError struct {
	ModuleName string
}

func NewDisabledModuleError

func NewDisabledModuleError(moduleName string) *DisabledModuleError

func (*DisabledModuleError) Error

func (e *DisabledModuleError) Error() string

type DynamicSharedInformerFactory

type DynamicSharedInformerFactory interface {
	Start(stopCh <-chan struct{})
	ForResource(gvr schema.GroupVersionResource) informers.GenericInformer
	WaitForCacheSync(stopCh <-chan struct{}) map[schema.GroupVersionResource]bool
}

type Pluggable

type Pluggable struct {
	SyncCh chan bool
	// contains filtered or unexported fields
}

func NewPluggable

func NewPluggable(name string) *Pluggable

func (*Pluggable) Disable

func (p *Pluggable) Disable(disableModule func(disabledErr error))

func (*Pluggable) Enable

func (p *Pluggable) Enable()

func (*Pluggable) EnableAndSyncCache

func (p *Pluggable) EnableAndSyncCache(sync func(stopCh chan struct{}))

func (*Pluggable) EnableAndSyncDynamicInformerFactory

func (p *Pluggable) EnableAndSyncDynamicInformerFactory(informerFactory DynamicSharedInformerFactory, onSync func())

func (*Pluggable) EnableAndSyncInformerFactory

func (p *Pluggable) EnableAndSyncInformerFactory(informerFactory SharedInformerFactory, onSync func())

func (*Pluggable) IsEnabled

func (p *Pluggable) IsEnabled() bool

func (*Pluggable) Name

func (p *Pluggable) Name() string

func (*Pluggable) StopCacheSyncOnClose

func (p *Pluggable) StopCacheSyncOnClose(stopCh <-chan struct{})

type PluggableModule

type PluggableModule interface {
	Enable() error
	Disable() error
	IsEnabled() bool
	Name() string
}

type SharedInformerFactory

type SharedInformerFactory interface {
	Start(stopCh <-chan struct{})
	WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool
}

Directories

Path Synopsis
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