2020-08-09 16:04:43 -04:00
|
|
|
package quota // import "github.com/docker/docker/quota"
|
2019-06-02 15:18:58 -04:00
|
|
|
|
2019-07-31 14:02:42 -04:00
|
|
|
import "sync"
|
|
|
|
|
2019-06-02 15:18:58 -04:00
|
|
|
// Quota limit params - currently we only control blocks hard limit
|
|
|
|
type Quota struct {
|
|
|
|
Size uint64
|
|
|
|
}
|
|
|
|
|
|
|
|
// Control - Context to be used by storage driver (e.g. overlay)
|
|
|
|
// who wants to apply project quotas to container dirs
|
|
|
|
type Control struct {
|
|
|
|
backingFsBlockDev string
|
2019-07-31 14:02:42 -04:00
|
|
|
sync.RWMutex // protect nextProjectID and quotas map
|
2019-06-02 15:18:58 -04:00
|
|
|
quotas map[string]uint32
|
|
|
|
}
|