vcm

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoMatchingVolumeClass        = errors.New("no matching volume class")
	ErrAmbiguousMatchingVolumeClass = errors.New("ambiguous matching volume classes")
)

Functions

This section is empty.

Types

type Generic

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

func (*Generic) AddListener

func (g *Generic) AddListener(handler irievent.Listener) (irievent.ListenerRegistration, error)

func (*Generic) GetVolumeClassFor

func (g *Generic) GetVolumeClassFor(ctx context.Context, name string, caps *iri.VolumeClassCapabilities) (*iri.VolumeClass, *resource.Quantity, error)

func (*Generic) RemoveListener

func (g *Generic) RemoveListener(listener irievent.ListenerRegistration) error

func (*Generic) Start

func (g *Generic) Start(ctx context.Context) error

func (*Generic) WaitForSync

func (g *Generic) WaitForSync(ctx context.Context) error

type GenericOptions

type GenericOptions struct {
	RelistPeriod time.Duration
}

type VolumeClassMapper

type VolumeClassMapper interface {
	manager.Runnable
	GetVolumeClassFor(ctx context.Context, name string, capabilities *iri.VolumeClassCapabilities) (*iri.VolumeClass, *resource.Quantity, error)
	WaitForSync(ctx context.Context) error
	AddListener(listener irievent.Listener) (irievent.ListenerRegistration, error)
	RemoveListener(reg irievent.ListenerRegistration) error
}

Jump to

Keyboard shortcuts

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