package fsquota
import "k8s.io/kubernetes/pkg/volume/util/fsquota"
Index ¶
- func AssignQuota(_ mount.Interface, _ string, _ types.UID, _ *resource.Quantity, _ bool) error
- func ClearQuota(_ mount.Interface, _ string, _ bool) error
- func GetConsumption(_ string) (*resource.Quantity, error)
- func GetInodes(_ string) (*resource.Quantity, error)
- func GetQuotaOnDir(_ mount.Interface, _ string) (common.QuotaID, error)
- func SupportsQuotas(_ mount.Interface, _ string, _ bool) (bool, error)
- type Interface
Functions ¶
func AssignQuota ¶
AssignQuota -- dummy implementation
func ClearQuota ¶
ClearQuota -- dummy implementation
func GetConsumption ¶
GetConsumption -- dummy implementation
func GetInodes ¶
GetInodes -- dummy implementation
func GetQuotaOnDir ¶
func SupportsQuotas ¶
SupportsQuotas -- dummy implementation
Types ¶
type Interface ¶
type Interface interface { // GetQuotaOnDir gets the quota ID (if any) that applies to // this directory GetQuotaOnDir(m mount.Interface, path string) (common.QuotaID, error) // Does the path provided support quotas, and if so, what types SupportsQuotas(m mount.Interface, path string) (bool, error) // Assign a quota (picked by the quota mechanism) to a path, // and return it. AssignQuota(m mount.Interface, path string, poduid types.UID, bytes *resource.Quantity) error // Get the quota-based storage consumption for the path GetConsumption(path string) (*resource.Quantity, error) // Get the quota-based inode consumption for the path GetInodes(path string) (*resource.Quantity, error) // Remove the quota from a path // Implementations may assume that any data covered by the // quota has already been removed. ClearQuota(m mount.Interface, path string) error }
Interface -- quota interface
Source Files ¶
quota.go quota_unsupported.go
Directories ¶
Path | Synopsis |
---|---|
pkg/volume/util/fsquota/common |
- Version
- v1.33.2 (latest)
- Published
- Jun 17, 2025
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 1 hour ago –
Tools for package owners.