Versions in this module Expand all Collapse all v0 v0.1.1 Apr 11, 2023 v0.1.0 Mar 27, 2023 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) GetVolumeClassFor(ctx context.Context, name string, caps *ori.VolumeClassCapabilities) (*ori.VolumeClass, 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 + GetVolumeClassFor func(ctx context.Context, name string, capabilities *ori.VolumeClassCapabilities) (*ori.VolumeClass, error) + WaitForSync func(ctx context.Context) error + func NewGeneric(runtime ori.VolumeRuntimeClient, opts GenericOptions) VolumeClassMapper