package quota
import "github.com/docker/docker/quota"
Index ¶
- Variables
- type Control
- func NewControl(basePath string) (*Control, error)
- func (q *Control) GetQuota(targetPath string, quota *Quota) error
- func (q *Control) SetQuota(targetPath string, quota Quota) error
- type Quota
Variables ¶
var ErrQuotaNotSupported = errQuotaNotSupported{}
ErrQuotaNotSupported indicates if were found the FS didn't have projects quotas available
Types ¶
type Control ¶
type Control struct { sync.RWMutex // protect nextProjectID and quotas map // contains filtered or unexported fields }
Control - Context to be used by storage driver (e.g. overlay) who wants to apply project quotas to container dirs
func NewControl ¶
func (*Control) GetQuota ¶
GetQuota - get the quota limits of a directory that was configured with SetQuota
func (*Control) SetQuota ¶
SetQuota - assign a unique project id to directory and set the quota limits for that project id
type Quota ¶
type Quota struct { Size uint64 }
Quota limit params - currently we only control blocks hard limit
Source Files ¶
errors.go projectquota_unsupported.go types.go
- Version
- v23.0.13+incompatible
- Published
- May 29, 2024
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 34 minutes ago –
Tools for package owners.