fake

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackingImageCache

func NewBackingImageCache(backingImagesToServe []*lhv1.BackingImage) lhv1beta2.BackingImageCache

func NewBlockDeviceCache

func NewBlockDeviceCache(devicesToServe []*diskv1.BlockDevice) ctldiskv1.BlockDeviceCache

func NewLonghornNodeCache

func NewLonghornNodeCache(nodesToServe []*lhv1.Node) lhv1beta2.NodeCache

func NewPersistentVolumeCache

func NewPersistentVolumeCache(pvsToServe []*v1.PersistentVolume) ctlcorev1.PersistentVolumeCache

func NewReplicaCache

func NewReplicaCache(replicasToServe []*lhv1.Replica) lhv1beta2.ReplicaCache

func NewStorageClassCache

func NewStorageClassCache(scsToServe []*storagev1.StorageClass) ctlstoragev1.StorageClassCache

func NewVolumeCache

func NewVolumeCache(volsToServe []*lhv1.Volume) lhv1beta2.VolumeCache

Types

type FakeBackingImageCache

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

func (*FakeBackingImageCache) AddIndexer

func (f *FakeBackingImageCache) AddIndexer(indexName string, indexer generic.Indexer[*lhv1.BackingImage])

func (*FakeBackingImageCache) Get

func (f *FakeBackingImageCache) Get(namespace string, name string) (*lhv1.BackingImage, error)

func (*FakeBackingImageCache) GetByIndex

func (f *FakeBackingImageCache) GetByIndex(indexName string, key string) ([]*lhv1.BackingImage, error)

func (*FakeBackingImageCache) List

func (f *FakeBackingImageCache) List(namespace string, selector labels.Selector) ([]*lhv1.BackingImage, error)

type FakeBlockDeviceCache

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

func (*FakeBlockDeviceCache) AddIndexer

func (c *FakeBlockDeviceCache) AddIndexer(indexName string, indexer generic.Indexer[*diskv1.BlockDevice])

func (*FakeBlockDeviceCache) Get

func (c *FakeBlockDeviceCache) Get(namespace, name string) (*diskv1.BlockDevice, error)

func (*FakeBlockDeviceCache) GetByIndex

func (c *FakeBlockDeviceCache) GetByIndex(indexName, key string) ([]*diskv1.BlockDevice, error)

func (*FakeBlockDeviceCache) List

func (c *FakeBlockDeviceCache) List(namespace string, selector labels.Selector) ([]*diskv1.BlockDevice, error)

type FakeLonghornNodeCache

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

func (*FakeLonghornNodeCache) AddIndexer

func (f *FakeLonghornNodeCache) AddIndexer(indexName string, indexer generic.Indexer[*lhv1.Node])

func (*FakeLonghornNodeCache) Get

func (f *FakeLonghornNodeCache) Get(namespace string, name string) (*lhv1.Node, error)

func (*FakeLonghornNodeCache) GetByIndex

func (f *FakeLonghornNodeCache) GetByIndex(indexName string, key string) ([]*lhv1.Node, error)

func (*FakeLonghornNodeCache) List

func (f *FakeLonghornNodeCache) List(namespace string, selector labels.Selector) ([]*lhv1.Node, error)

type FakePersistentVolumeCache

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

func (*FakePersistentVolumeCache) AddIndexer

func (f *FakePersistentVolumeCache) AddIndexer(indexName string, indexer generic.Indexer[*v1.PersistentVolume])

func (*FakePersistentVolumeCache) Get

func (*FakePersistentVolumeCache) GetByIndex

func (f *FakePersistentVolumeCache) GetByIndex(indexName string, key string) ([]*v1.PersistentVolume, error)

func (*FakePersistentVolumeCache) List

type FakeReplicaCache

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

func (*FakeReplicaCache) AddIndexer

func (f *FakeReplicaCache) AddIndexer(indexName string, indexer generic.Indexer[*lhv1.Replica])

func (*FakeReplicaCache) Get

func (f *FakeReplicaCache) Get(namespace string, name string) (*lhv1.Replica, error)

func (*FakeReplicaCache) GetByIndex

func (f *FakeReplicaCache) GetByIndex(indexName string, key string) ([]*lhv1.Replica, error)

func (*FakeReplicaCache) List

func (f *FakeReplicaCache) List(namespace string, selector labels.Selector) ([]*lhv1.Replica, error)

type FakeStorageClassCache

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

func (*FakeStorageClassCache) AddIndexer

func (f *FakeStorageClassCache) AddIndexer(indexName string, indexer generic.Indexer[*storagev1.StorageClass])

func (*FakeStorageClassCache) Get

func (*FakeStorageClassCache) GetByIndex

func (f *FakeStorageClassCache) GetByIndex(indexName string, key string) ([]*storagev1.StorageClass, error)

func (*FakeStorageClassCache) List

type FakeVolumeCache

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

func (*FakeVolumeCache) AddIndexer

func (f *FakeVolumeCache) AddIndexer(indexName string, indexer generic.Indexer[*lhv1.Volume])

func (*FakeVolumeCache) Get

func (f *FakeVolumeCache) Get(namespace string, name string) (*lhv1.Volume, error)

func (*FakeVolumeCache) GetByIndex

func (f *FakeVolumeCache) GetByIndex(indexName string, key string) ([]*lhv1.Volume, error)

func (*FakeVolumeCache) List

func (f *FakeVolumeCache) List(namespace string, selector labels.Selector) ([]*lhv1.Volume, error)

Jump to

Keyboard shortcuts

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