2021-08-23 13:14:53 +00:00
|
|
|
//go:build (linux && exclude_disk_quota) || (linux && !cgo) || !linux
|
2020-08-09 19:52:32 +00:00
|
|
|
// +build linux,exclude_disk_quota linux,!cgo !linux
|
2019-06-02 19:18:58 +00:00
|
|
|
|
2020-08-09 20:04:43 +00:00
|
|
|
package quota // import "github.com/docker/docker/quota"
|
2019-06-02 19:18:58 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|