Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the repo quota for given filesystem root path, including subrepos
func New ¶
New creates a new quota Manager for given path. It will tally the current disk usage before returning.
func (*Manager) IncUsage ¶
IncUsage increments the current repo size (which must already be initialized).
func (*Manager) SpaceRemaining ¶
SpaceRemaining returns how much space is available in the repo according to s.MaxRepoSize. s.repoSize must already be set. If there is no limit, -1 is returned.
Click to show internal directories.
Click to hide internal directories.