Documentation ¶
Index ¶
- Variables
- type VolumeQuotaManager
- func NewEmptyDirQuota(offlineSize *types.DiskQuotaSize, kubeletRootDir string) VolumeQuotaManager
- func NewFakeVolumeQuotaManager(pathInfos map[apiType.UID]map[string]*types.PathInfo) VolumeQuotaManager
- func NewHostPathQuota(offlineSize *types.DiskQuotaSize) VolumeQuotaManager
- func NewRootFsDiskQuota(runtimeName string, offlineSize *types.DiskQuotaSize) VolumeQuotaManager
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FakeVolumeQuotaManagerName types.VolumeType = "fakeVolumeQuotaManager"
)
Functions ¶
This section is empty.
Types ¶
type VolumeQuotaManager ¶
type VolumeQuotaManager interface { // Name return volume name Name() types.VolumeType // GetVolumes return paths, which need to set quota GetVolumes(pod *v1.Pod) (map[string]*types.PathInfo, error) }
VolumeQuota describes functions for volume quota
func NewEmptyDirQuota ¶
func NewEmptyDirQuota(offlineSize *types.DiskQuotaSize, kubeletRootDir string) VolumeQuotaManager
NewEmptyDirQuota create empty dir disk quota manager
func NewFakeVolumeQuotaManager ¶
func NewFakeVolumeQuotaManager(pathInfos map[apiType.UID]map[string]*types.PathInfo) VolumeQuotaManager
NewFakeVolumeQuotaManager creates fake volume quota manager instance
func NewHostPathQuota ¶
func NewHostPathQuota(offlineSize *types.DiskQuotaSize) VolumeQuotaManager
NewHostPathQuota news host path volume manager
func NewRootFsDiskQuota ¶
func NewRootFsDiskQuota(runtimeName string, offlineSize *types.DiskQuotaSize) VolumeQuotaManager
NewRootFsDiskQuota news volume quota for root path
Click to show internal directories.
Click to hide internal directories.