Documentation
¶
Index ¶
- func NewBackingImageCache(backingImagesToServe []*lhv1.BackingImage) lhv1beta2.BackingImageCache
- func NewBlockDeviceCache(devicesToServe []*diskv1.BlockDevice) ctldiskv1.BlockDeviceCache
- func NewLonghornNodeCache(nodesToServe []*lhv1.Node) lhv1beta2.NodeCache
- func NewPersistentVolumeCache(pvsToServe []*v1.PersistentVolume) ctlcorev1.PersistentVolumeCache
- func NewReplicaCache(replicasToServe []*lhv1.Replica) lhv1beta2.ReplicaCache
- func NewStorageClassCache(scsToServe []*storagev1.StorageClass) ctlstoragev1.StorageClassCache
- func NewVolumeCache(volsToServe []*lhv1.Volume) lhv1beta2.VolumeCache
- type FakeBackingImageCache
- func (f *FakeBackingImageCache) AddIndexer(indexName string, indexer generic.Indexer[*lhv1.BackingImage])
- func (f *FakeBackingImageCache) Get(namespace string, name string) (*lhv1.BackingImage, error)
- func (f *FakeBackingImageCache) GetByIndex(indexName string, key string) ([]*lhv1.BackingImage, error)
- func (f *FakeBackingImageCache) List(namespace string, selector labels.Selector) ([]*lhv1.BackingImage, error)
- type FakeBlockDeviceCache
- func (c *FakeBlockDeviceCache) AddIndexer(indexName string, indexer generic.Indexer[*diskv1.BlockDevice])
- func (c *FakeBlockDeviceCache) Get(namespace, name string) (*diskv1.BlockDevice, error)
- func (c *FakeBlockDeviceCache) GetByIndex(indexName, key string) ([]*diskv1.BlockDevice, error)
- func (c *FakeBlockDeviceCache) List(namespace string, selector labels.Selector) ([]*diskv1.BlockDevice, error)
- type FakeLonghornNodeCache
- func (f *FakeLonghornNodeCache) AddIndexer(indexName string, indexer generic.Indexer[*lhv1.Node])
- func (f *FakeLonghornNodeCache) Get(namespace string, name string) (*lhv1.Node, error)
- func (f *FakeLonghornNodeCache) GetByIndex(indexName string, key string) ([]*lhv1.Node, error)
- func (f *FakeLonghornNodeCache) List(namespace string, selector labels.Selector) ([]*lhv1.Node, error)
- type FakePersistentVolumeCache
- func (f *FakePersistentVolumeCache) AddIndexer(indexName string, indexer generic.Indexer[*v1.PersistentVolume])
- func (f *FakePersistentVolumeCache) Get(name string) (*v1.PersistentVolume, error)
- func (f *FakePersistentVolumeCache) GetByIndex(indexName string, key string) ([]*v1.PersistentVolume, error)
- func (f *FakePersistentVolumeCache) List(selector labels.Selector) ([]*v1.PersistentVolume, error)
- type FakeReplicaCache
- func (f *FakeReplicaCache) AddIndexer(indexName string, indexer generic.Indexer[*lhv1.Replica])
- func (f *FakeReplicaCache) Get(namespace string, name string) (*lhv1.Replica, error)
- func (f *FakeReplicaCache) GetByIndex(indexName string, key string) ([]*lhv1.Replica, error)
- func (f *FakeReplicaCache) List(namespace string, selector labels.Selector) ([]*lhv1.Replica, error)
- type FakeStorageClassCache
- func (f *FakeStorageClassCache) AddIndexer(indexName string, indexer generic.Indexer[*storagev1.StorageClass])
- func (f *FakeStorageClassCache) Get(name string) (*storagev1.StorageClass, error)
- func (f *FakeStorageClassCache) GetByIndex(indexName string, key string) ([]*storagev1.StorageClass, error)
- func (f *FakeStorageClassCache) List(selector labels.Selector) ([]*storagev1.StorageClass, error)
- type FakeVolumeCache
- func (f *FakeVolumeCache) AddIndexer(indexName string, indexer generic.Indexer[*lhv1.Volume])
- func (f *FakeVolumeCache) Get(namespace string, name string) (*lhv1.Volume, error)
- func (f *FakeVolumeCache) GetByIndex(indexName string, key string) ([]*lhv1.Volume, error)
- func (f *FakeVolumeCache) List(namespace string, selector labels.Selector) ([]*lhv1.Volume, error)
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 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 (*FakeLonghornNodeCache) GetByIndex ¶
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 (f *FakePersistentVolumeCache) Get(name string) (*v1.PersistentVolume, error)
func (*FakePersistentVolumeCache) GetByIndex ¶
func (f *FakePersistentVolumeCache) GetByIndex(indexName string, key string) ([]*v1.PersistentVolume, error)
func (*FakePersistentVolumeCache) List ¶
func (f *FakePersistentVolumeCache) List(selector labels.Selector) ([]*v1.PersistentVolume, error)
type FakeReplicaCache ¶
type FakeReplicaCache struct {
// contains filtered or unexported fields
}
func (*FakeReplicaCache) AddIndexer ¶
func (*FakeReplicaCache) GetByIndex ¶
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 (f *FakeStorageClassCache) Get(name string) (*storagev1.StorageClass, error)
func (*FakeStorageClassCache) GetByIndex ¶
func (f *FakeStorageClassCache) GetByIndex(indexName string, key string) ([]*storagev1.StorageClass, error)
func (*FakeStorageClassCache) List ¶
func (f *FakeStorageClassCache) List(selector labels.Selector) ([]*storagev1.StorageClass, error)
type FakeVolumeCache ¶
type FakeVolumeCache struct {
// contains filtered or unexported fields
}
func (*FakeVolumeCache) AddIndexer ¶
func (*FakeVolumeCache) GetByIndex ¶
Click to show internal directories.
Click to hide internal directories.