Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskQuotaInterface ¶
type DiskQuotaInterface interface { // module name Name() string // Run main loop Run(stop <-chan struct{}) // GetPodDiskQuota return all volumes of the pod GetPodDiskQuota(pod *v1.Pod) (map[types.VolumeType]*VolumeInfo, error) // GetAllPodsDiskQuota return all volumes for all the pods on the node GetAllPodsDiskQuota() ([]*PodVolumes, error) }
DiskQuotaInterface describe disk quota functions
func NewDiskQuota ¶
func NewDiskQuota(config types.DiskQuotaConfig, k8s types.K8sConfig, podInformer cache.SharedIndexInformer) DiskQuotaInterface
NewDiskQuota creates a new disk quota instance
type PathInfoWrapper ¶
PathInfoWrapper describe options for path info
type PodVolumes ¶
type PodVolumes struct { Pod *v1.Pod AppClass appclass.AppClass Volumes map[types.VolumeType]*VolumeInfo // contains filtered or unexported fields }
PodVolumes describes volume info, such as path and quota
type VolumeInfo ¶
type VolumeInfo struct { // volume name => path info Paths map[string]*PathInfoWrapper // contains filtered or unexported fields }
VolumeInfo describes volume path and quota size
Click to show internal directories.
Click to hide internal directories.