types.go 443 B

12345678910111213141516
  1. package quota // import "github.com/docker/docker/quota"
  2. import "sync"
  3. // Quota limit params - currently we only control blocks hard limit
  4. type Quota struct {
  5. Size uint64
  6. }
  7. // Control - Context to be used by storage driver (e.g. overlay)
  8. // who wants to apply project quotas to container dirs
  9. type Control struct {
  10. backingFsBlockDev string
  11. sync.RWMutex // protect nextProjectID and quotas map
  12. quotas map[string]uint32
  13. }