fake_quota_manager

package
v0.0.0-...-a51aa93 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeQuotaManager

type FakeQuotaManager struct {
	SetLimitsError error
	GetLimitsError error
	GetUsageError  error

	GetLimitsResult garden.DiskLimits
	GetUsageResult  garden.ContainerDiskStat

	MountPointResult string

	Limited map[int]garden.DiskLimits

	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *FakeQuotaManager

func (*FakeQuotaManager) Disable

func (m *FakeQuotaManager) Disable()

func (*FakeQuotaManager) GetLimits

func (m *FakeQuotaManager) GetLimits(logger lager.Logger, uid int) (garden.DiskLimits, error)

func (*FakeQuotaManager) GetUsage

func (m *FakeQuotaManager) GetUsage(logger lager.Logger, uid int) (garden.ContainerDiskStat, error)

func (*FakeQuotaManager) IsEnabled

func (m *FakeQuotaManager) IsEnabled() bool

func (*FakeQuotaManager) MountPoint

func (m *FakeQuotaManager) MountPoint() string

func (*FakeQuotaManager) SetLimits

func (m *FakeQuotaManager) SetLimits(logger lager.Logger, uid int, limits garden.DiskLimits) error

Jump to

Keyboard shortcuts

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