module

package
v0.0.0-...-1ac4f16 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 6 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 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) 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

Jump to

Keyboard shortcuts

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