quota

package
v0.0.0-...-b84de06 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteProject

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

func GetProject(path string) (uint32, error)

GetProject returns the project quota ID for the given path

func GetProjectUsage

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

GetProjectUsage returns the current consumption

func SetProject

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

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

SetProjectQuota sets the quota on the project id

func Supported

func Supported(path string) (bool, error)

Supported check if the given path supports project quotas

Types

This section is empty.

Jump to

Keyboard shortcuts

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