provider

package
v0.0.0-...-f6064ee Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider provides DRA-related objects.

func NewProvider

func NewProvider(claims allObjectsLister[*resourceapi.ResourceClaim], slices allObjectsLister[*resourceapi.ResourceSlice], classes allObjectsLister[*resourceapi.DeviceClass]) *Provider

NewProvider returns a new Provider which uses the provided listers to list the DRA resources.

func NewProviderFromInformers

func NewProviderFromInformers(informerFactory informers.SharedInformerFactory) *Provider

NewProviderFromInformers returns a new Provider which uses InformerFactory listers to list the DRA resources.

func (*Provider) Snapshot

func (p *Provider) Snapshot() (drasnapshot.Snapshot, error)

Snapshot returns a snapshot of all DRA resources at a ~single point in time.

Jump to

Keyboard shortcuts

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