Documentation
¶
Index ¶
- type FakeQuotaManager
- func (m *FakeQuotaManager) Disable()
- func (m *FakeQuotaManager) GetLimits(logger lager.Logger, uid int) (garden.DiskLimits, error)
- func (m *FakeQuotaManager) GetUsage(logger lager.Logger, uid int) (garden.ContainerDiskStat, error)
- func (m *FakeQuotaManager) IsEnabled() bool
- func (m *FakeQuotaManager) MountPoint() string
- func (m *FakeQuotaManager) SetLimits(logger lager.Logger, uid int, limits garden.DiskLimits) error
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
Click to show internal directories.
Click to hide internal directories.