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

package quota

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

Index

Package Files

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 sets the project quota ID 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 8 packages (graph) and is imported by 4 packages. Updated 2019-08-19. Refresh now. Tools for package owners.