package quota

import "github.com/docker/docker/quota"

Index

Variables

var ErrQuotaNotSupported = errQuotaNotSupported{}

ErrQuotaNotSupported indicates if were found the FS didn't have projects quotas available

Types

type Control

type Control struct {
	sync.RWMutex // protect nextProjectID and quotas map
	// contains filtered or unexported fields
}

Control - Context to be used by storage driver (e.g. overlay) who wants to apply project quotas to container dirs

func NewControl

func NewControl(basePath string) (*Control, error)

func (*Control) GetQuota

func (q *Control) GetQuota(targetPath string, quota *Quota) error

GetQuota - get the quota limits of a directory that was configured with SetQuota

func (*Control) SetQuota

func (q *Control) SetQuota(targetPath string, quota Quota) error

SetQuota - assign a unique project id to directory and set the quota limits for that project id

type Quota

type Quota struct {
	Size uint64
}

Quota limit params - currently we only control blocks hard limit

Source Files

errors.go projectquota_unsupported.go types.go

Version
v23.0.3+incompatible
Published
Apr 4, 2023
Platform
js/wasm
Imports
2 packages
Last checked
8 minutes ago

Tools for package owners.