cache

package
v0.0.0-...-41b8e04 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func New

func New() *Cache

func (*Cache) AddLV

func (c *Cache) AddLV(vgName, lvName string)

func (*Cache) FindLV

func (c *Cache) FindLV(vgName, lvName string) *LVData

func (*Cache) FindThinPoolMappers

func (c *Cache) FindThinPoolMappers(thinLvData *LVData) (tpool, poolMetadataMapper string, err error)

func (*Cache) FindVG

func (c *Cache) FindVG(vgName string) *internal.VGData

func (*Cache) GetDevices

func (c *Cache) GetDevices() ([]internal.Device, bytes.Buffer)

func (*Cache) GetLVs

func (c *Cache) GetLVs() ([]internal.LVData, bytes.Buffer)

func (*Cache) GetManagedVGs

func (c *Cache) GetManagedVGs() map[string]struct{}

GetManagedVGs returns the set of VG names that are managed by LVMVolumeGroup resources

func (*Cache) GetPVs

func (c *Cache) GetPVs() ([]internal.PVData, bytes.Buffer)

func (*Cache) GetVGs

func (c *Cache) GetVGs() ([]internal.VGData, bytes.Buffer)

func (*Cache) MarkLVAsRemoved

func (c *Cache) MarkLVAsRemoved(vgName, lvName string)

func (*Cache) PrintTheCache

func (c *Cache) PrintTheCache(log logger.Logger)

func (*Cache) StoreDevices

func (c *Cache) StoreDevices(devices []internal.Device, stdErr bytes.Buffer)

func (*Cache) StoreLVs

func (c *Cache) StoreLVs(lvs []internal.LVData, stdErr bytes.Buffer)

func (*Cache) StoreManagedVGs

func (c *Cache) StoreManagedVGs(vgNames iter.Seq[string])

StoreManagedVGs stores the set of VG names that are managed by LVMVolumeGroup resources on this node. It accepts an iterator over VG names to avoid unnecessary allocations.

func (*Cache) StorePVs

func (c *Cache) StorePVs(pvs []internal.PVData, stdErr bytes.Buffer)

func (*Cache) StoreVGs

func (c *Cache) StoreVGs(vgs []internal.VGData, stdErr bytes.Buffer)

type LVData

type LVData struct {
	Data  internal.LVData
	Exist bool
}

Jump to

Keyboard shortcuts

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