github.com/rawahars/moby@v24.0.4+incompatible/quota/projectquota_unsupported.go (about)

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