volumecontroller

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrVolumeDriverNotFound = errors.New("volume driver not found")

Functions

This section is empty.

Types

type Controller

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

func New

func New(c *client.ClientSet, n *nodesv1.Node, opts ...NewOption) *Controller

func (*Controller) Reconcile

func (vc *Controller) Reconcile(ctx context.Context) error

Reconcile implements Controller.

func (*Controller) Run

func (vc *Controller) Run(ctx context.Context)

type NewOption

type NewOption func(c *Controller)

func WithConfig

func WithConfig(n *nodesv1.Node) NewOption

func WithHostLocalVolumeDriver

func WithHostLocalVolumeDriver(m volume.Driver) NewOption

func WithLogger

func WithLogger(l logger.Logger) NewOption

func WithVolumeDrivers

func WithVolumeDrivers(drivers map[volume.DriverType]volume.Driver) NewOption

Jump to

Keyboard shortcuts

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