cache

package
v5.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeCache

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

VolumeCache keeps all the PersistentVolumes that have been created by this provisioner. It is periodically updated by the Populator. The Deleter and Discoverer use the VolumeCache to check on created PVs

func NewVolumeCache

func NewVolumeCache() *VolumeCache

NewVolumeCache creates a new PV cache object for storing PVs created by this provisioner.

func (*VolumeCache) AddPV

func (cache *VolumeCache) AddPV(pv *v1.PersistentVolume)

AddPV adds the PV object to the cache

func (*VolumeCache) DeletePV

func (cache *VolumeCache) DeletePV(pvName string)

DeletePV deletes the PV object from the cache

func (*VolumeCache) GetPV

func (cache *VolumeCache) GetPV(pvName string) (*v1.PersistentVolume, bool)

GetPV returns the PV object given the PV name

func (*VolumeCache) ListPVs

func (cache *VolumeCache) ListPVs() []*v1.PersistentVolume

ListPVs returns a list of all the PVs in the cache

func (*VolumeCache) UpdatePV

func (cache *VolumeCache) UpdatePV(pv *v1.PersistentVolume)

UpdatePV updates the PV object in the cache

Jump to

Keyboard shortcuts

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