lxd: github.com/lxc/lxd/lxd/storage/quota Index | Files

package quota

import "github.com/lxc/lxd/lxd/storage/quota"


Package Files

cgo.go projectquota.go

func DeleteProject Uses

func DeleteProject(path string, id uint32) error

DeleteProject unsets the project id from the path and clears the quota for the project id

func GetProject Uses

func GetProject(path string) (uint32, error)

GetProject returns the project quota ID for the given path

func GetProjectUsage Uses

func GetProjectUsage(path string, id uint32) (int64, error)

GetProjectUsage returns the current consumption

func SetProject Uses

func SetProject(path string, id uint32) error

SetProject recursively sets the project quota ID (and project inherit flag on directories) for the given path.

func SetProjectQuota Uses

func SetProjectQuota(path string, id uint32, bytes int64) error

SetProjectQuota sets the quota on the project id

func Supported Uses

func Supported(path string) (bool, error)

Supported check if the given path supports project quotas

Package quota imports 9 packages (graph) and is imported by 5 packages. Updated 2020-05-31. Refresh now. Tools for package owners.