github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/daemon/graphdriver/quota/types.go (about) 1 // +build linux 2 3 package quota // import "github.com/demonoid81/moby/daemon/graphdriver/quota" 4 5 import "sync" 6 7 // Quota limit params - currently we only control blocks hard limit 8 type Quota struct { 9 Size uint64 10 } 11 12 // Control - Context to be used by storage driver (e.g. overlay) 13 // who wants to apply project quotas to container dirs 14 type Control struct { 15 backingFsBlockDev string 16 sync.RWMutex // protect nextProjectID and quotas map 17 nextProjectID uint32 18 quotas map[string]uint32 19 }