quota_manager

package
v0.0.0-...-6c5b0a6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AUFSBaseSizer

type AUFSBaseSizer struct {
	// contains filtered or unexported fields
}

func NewAUFSBaseSizer

func NewAUFSBaseSizer(cake layercake.Cake) *AUFSBaseSizer

func (*AUFSBaseSizer) BaseSize

func (a *AUFSBaseSizer) BaseSize(logger lager.Logger, containerRootFSPath string) (uint64, error)

type AUFSDiffPathFinder

type AUFSDiffPathFinder interface {
	GetDiffLayerPath(rootFSPath string) string
}

type AUFSDiffSizer

type AUFSDiffSizer struct {
	AUFSDiffPathFinder AUFSDiffPathFinder
}

func (*AUFSDiffSizer) DiffSize

func (a *AUFSDiffSizer) DiffSize(logger lager.Logger, containerRootFSPath string) (uint64, error)

type AUFSQuotaManager

type AUFSQuotaManager struct {
	BaseSizer BaseSizer
	DiffSizer DiffSizer
}

func (*AUFSQuotaManager) GetLimits

func (*AUFSQuotaManager) GetLimits(logger lager.Logger, containerRootFSPath string) (garden.DiskLimits, error)

func (*AUFSQuotaManager) GetUsage

func (a *AUFSQuotaManager) GetUsage(logger lager.Logger, containerRootFSPath string) (garden.ContainerDiskStat, error)

func (*AUFSQuotaManager) SetLimits

func (*AUFSQuotaManager) SetLimits(logger lager.Logger, containerRootFSPath string, limits garden.DiskLimits) error

func (*AUFSQuotaManager) Setup

func (*AUFSQuotaManager) Setup() error

type BaseSizer

type BaseSizer interface {
	BaseSize(logger lager.Logger, rootfsPath string) (uint64, error)
}

type DiffSizer

type DiffSizer interface {
	DiffSize(logger lager.Logger, loopdevPath string) (uint64, error)
}

type DisabledQuotaManager

type DisabledQuotaManager struct{}

func (DisabledQuotaManager) GetLimits

func (DisabledQuotaManager) GetLimits(logger lager.Logger, containerRootFSPath string) (garden.DiskLimits, error)

func (DisabledQuotaManager) GetUsage

func (DisabledQuotaManager) GetUsage(logger lager.Logger, containerRootFSPath string) (garden.ContainerDiskStat, error)

func (DisabledQuotaManager) SetLimits

func (DisabledQuotaManager) SetLimits(logger lager.Logger, containerRootFSPath string, limits garden.DiskLimits) error

func (DisabledQuotaManager) Setup

func (DisabledQuotaManager) Setup() error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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