2020-08-09 20:04:43 +00:00
|
|
|
package quota // import "github.com/docker/docker/quota"
|
2019-06-02 19:18:58 +00:00
|
|
|
|
2019-07-31 18:02:42 +00:00
|
|
|
import "sync"
|
|
|
|
|
2019-06-02 19:18:58 +00: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 18:02:42 +00:00
|
|
|
sync.RWMutex // protect nextProjectID and quotas map
|
2019-06-02 19:18:58 +00:00
|
|
|
quotas map[string]uint32
|
|
|
|
}
|