listener

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectCSIController

type DirectCSIController struct {
	LeaseDuration time.Duration
	RenewDeadline time.Duration
	RetryPeriod   time.Duration

	// Controller
	ResyncPeriod time.Duration

	// Listeners
	DirectCSIVolumeListener DirectCSIVolumeListener
	DirectCSIDriveListener  DirectCSIDriveListener
	// contains filtered or unexported fields
}

func NewDefaultDirectCSIController

func NewDefaultDirectCSIController(identity string, leaderLockName string, threads int) (*DirectCSIController, error)

func NewDirectCSIController

func NewDirectCSIController(identity string, leaderLockName string, threads int, limiter workqueue.RateLimiter) (*DirectCSIController, error)

func (*DirectCSIController) AddDirectCSIDriveListener

func (c *DirectCSIController) AddDirectCSIDriveListener(b DirectCSIDriveListener)

func (*DirectCSIController) AddDirectCSIVolumeListener

func (c *DirectCSIController) AddDirectCSIVolumeListener(b DirectCSIVolumeListener)

func (*DirectCSIController) GetOpLock

func (c *DirectCSIController) GetOpLock(op interface{}) *sync.Mutex

func (*DirectCSIController) OpLock

func (c *DirectCSIController) OpLock(op interface{})

func (*DirectCSIController) OpUnlock

func (c *DirectCSIController) OpUnlock(op interface{})

func (*DirectCSIController) Run

Run - runs the controller. Note that ctx must be cancellable i.e. ctx.Done() should not return nil

type GenericListener

type GenericListener interface {
	InitializeKubeClient(kubeclientset.Interface)
	InitializeDirectCSIClient(clientset.Interface)
}

Set the clients for each of the listeners

Jump to

Keyboard shortcuts

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