xfsquota

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XfsQuota

type XfsQuota struct {
	*projectquota.ProjectQuota
}

XfsQuota is the struct of xfs quota

func NewXfsQuota

func NewXfsQuota() *XfsQuota

NewXfsQuota creates a new XfsQuota

func (*XfsQuota) CleanQuota added in v0.0.2

func (q *XfsQuota) CleanQuota(path string) error

CleanQuota clears the quota for the given path

func (*XfsQuota) GetQuota

func (q *XfsQuota) GetQuota(path string) (*projectquota.DiskQuotaSize, error)

GetQuota returns the quota for the given path

func (*XfsQuota) SetQuota

func (q *XfsQuota) SetQuota(path string, sizeVal, inodeVal string) error

SetQuota sets the quota for the given path

Jump to

Keyboard shortcuts

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