Documentation
¶
Overview ¶
Package fsquota provides functions for working with filesystem quotas
Index ¶
- Constants
- func GroupQuotasSupported(path string) (supported bool, err error)
- func UserQuotasSupported(path string) (supported bool, err error)
- func VersionString() string
- type Info
- func GetGroupInfo(path string, group *user.Group) (info *Info, err error)
- func GetUserInfo(path string, user *user.User) (info *Info, err error)
- func SetGroupQuota(path string, group *user.Group, limits Limits) (info *Info, err error)
- func SetUserQuota(path string, user *user.User, limits Limits) (info *Info, err error)
- type Limit
- type Limits
- type Report
Constants ¶
View Source
const VersionMajor = 0
Major version
View Source
const VersionMinor = 1
Minor version
View Source
const VersionPatch = 2
Patch version
Variables ¶
This section is empty.
Functions ¶
func GroupQuotasSupported ¶ added in v0.1.3
GroupQuotasSupported checks if group quotas are supported on a given path
func UserQuotasSupported ¶ added in v0.1.3
UserQuotasSupported checks if quotas are supported on a given path
Types ¶
type Info ¶
Info contains quota information
func GetGroupInfo ¶
GetGroupInfo retrieves a group's quota information
func GetUserInfo ¶
GetUserInfo retrieves a user's quota information
func SetGroupQuota ¶
SetGroupQuota configures a group's quota
type Limit ¶
type Limit struct {
// contains filtered or unexported fields
}
Limit represents a combined hard and soft limit
type Report ¶
Report contains a quota report
func GetGroupReport ¶
GetGroupReport retrieves a report of all group quotas present at the given path
func GetUserReport ¶
GetUserReport retrieves a report of all user quotas present at the given path
Source Files
¶
Click to show internal directories.
Click to hide internal directories.