quota_manager

package
v0.0.0-...-9038be0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

type QuotaManager interface {
	SetLimits(logger lager.Logger, uid int, limits garden.DiskLimits) error
	GetLimits(logger lager.Logger, uid int) (garden.DiskLimits, error)
	GetUsage(logger lager.Logger, uid int) (garden.ContainerDiskStat, error)

	MountPoint() string
	Disable()
	IsEnabled() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL