Versions in this module Expand all Collapse all v0 v0.2.0 Oct 11, 2024 v0.1.2 May 31, 2024 Changes in this version + var ErrAmbiguousMatchingVolumeClass = errors.New("ambiguous matching volume classes") + var ErrNoMatchingVolumeClass = errors.New("no matching volume class") + type Generic struct + func (g *Generic) AddListener(handler irievent.Listener) (irievent.ListenerRegistration, error) + func (g *Generic) GetVolumeClassFor(ctx context.Context, name string, caps *iri.VolumeClassCapabilities) (*iri.VolumeClass, *resource.Quantity, error) + func (g *Generic) RemoveListener(listener irievent.ListenerRegistration) error + func (g *Generic) Start(ctx context.Context) error + func (g *Generic) WaitForSync(ctx context.Context) error + type GenericOptions struct + RelistPeriod time.Duration + type VolumeClassMapper interface + AddListener func(listener irievent.Listener) (irievent.ListenerRegistration, error) + GetVolumeClassFor func(ctx context.Context, name string, capabilities *iri.VolumeClassCapabilities) (*iri.VolumeClass, *resource.Quantity, error) + RemoveListener func(reg irievent.ListenerRegistration) error + WaitForSync func(ctx context.Context) error + func NewGeneric(runtime iri.VolumeRuntimeClient, opts GenericOptions) VolumeClassMapper