diskquota

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 15 Imported by: 0

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

type PathInfoWrapper struct {
	types.PathInfo
	// contains filtered or unexported fields
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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