mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a1150245cc
Movified from686be57d0a
, and re-ran gofmt again to address for files not present in 20.10 and vice-versa. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit686be57d0a
) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
19 lines
656 B
Go
19 lines
656 B
Go
//go:build (linux && exclude_disk_quota) || (linux && !cgo) || !linux
|
|
// +build linux,exclude_disk_quota linux,!cgo !linux
|
|
|
|
package quota // import "github.com/docker/docker/quota"
|
|
|
|
func NewControl(basePath string) (*Control, error) {
|
|
return nil, ErrQuotaNotSupported
|
|
}
|
|
|
|
// SetQuota - assign a unique project id to directory and set the quota limits
|
|
// for that project id
|
|
func (q *Control) SetQuota(targetPath string, quota Quota) error {
|
|
return ErrQuotaNotSupported
|
|
}
|
|
|
|
// GetQuota - get the quota limits of a directory that was configured with SetQuota
|
|
func (q *Control) GetQuota(targetPath string, quota *Quota) error {
|
|
return ErrQuotaNotSupported
|
|
}
|