vcm

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 16 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
}

func NewGeneric

func NewGeneric(runtime volume.RuntimeService, opts GenericOptions) VolumeClassMapper

Jump to

Keyboard shortcuts

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