github.com/rish1988/moby@v25.0.2+incompatible/quota/projectquota_unsupported.go (about)

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