Documentation ¶
Index ¶
- Variables
- type Generic
- 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
- type VolumeClassMapper
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 (*Generic) GetVolumeClassFor ¶
func (*Generic) RemoveListener ¶
func (g *Generic) RemoveListener(listener irievent.ListenerRegistration) error
type GenericOptions ¶
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 }
func NewGeneric ¶
func NewGeneric(runtime volume.RuntimeService, opts GenericOptions) VolumeClassMapper
Click to show internal directories.
Click to hide internal directories.