projectquota_unsupported.go 603 B

123456789101112131415161718
  1. //go:build (linux && exclude_disk_quota) || (linux && !cgo) || !linux
  2. package quota // import "github.com/docker/docker/quota"
  3. func NewControl(basePath string) (*Control, error) {
  4. return nil, ErrQuotaNotSupported
  5. }
  6. // SetQuota - assign a unique project id to directory and set the quota limits
  7. // for that project id
  8. func (q *Control) SetQuota(targetPath string, quota Quota) error {
  9. return ErrQuotaNotSupported
  10. }
  11. // GetQuota - get the quota limits of a directory that was configured with SetQuota
  12. func (q *Control) GetQuota(targetPath string, quota *Quota) error {
  13. return ErrQuotaNotSupported
  14. }