Documentation ¶
Index ¶
- Constants
- type LinuxQuotaManager
- func (m *LinuxQuotaManager) Disable()
- func (m *LinuxQuotaManager) GetLimits(logger lager.Logger, uid int) (garden.DiskLimits, error)
- func (m *LinuxQuotaManager) GetUsage(logger lager.Logger, uid int) (garden.ContainerDiskStat, error)
- func (m *LinuxQuotaManager) IsEnabled() bool
- func (m *LinuxQuotaManager) MountPoint() string
- func (m *LinuxQuotaManager) SetLimits(logger lager.Logger, uid int, limits garden.DiskLimits) error
- type QuotaManager
Constants ¶
View Source
const QUOTA_BLOCK_SIZE = 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinuxQuotaManager ¶
type LinuxQuotaManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(runner command_runner.CommandRunner, mountPoint, binPath string) *LinuxQuotaManager
func (*LinuxQuotaManager) Disable ¶
func (m *LinuxQuotaManager) Disable()
func (*LinuxQuotaManager) GetLimits ¶
func (m *LinuxQuotaManager) GetLimits(logger lager.Logger, uid int) (garden.DiskLimits, error)
func (*LinuxQuotaManager) GetUsage ¶
func (m *LinuxQuotaManager) GetUsage(logger lager.Logger, uid int) (garden.ContainerDiskStat, error)
func (*LinuxQuotaManager) IsEnabled ¶
func (m *LinuxQuotaManager) IsEnabled() bool
func (*LinuxQuotaManager) MountPoint ¶
func (m *LinuxQuotaManager) MountPoint() string
func (*LinuxQuotaManager) SetLimits ¶
func (m *LinuxQuotaManager) SetLimits(logger lager.Logger, uid int, limits garden.DiskLimits) error
type QuotaManager ¶
Click to show internal directories.
Click to hide internal directories.