fsquota

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignQuota

func AssignQuota(_ mount.Interface, _ string, _ types.UID, _ *resource.Quantity) error

AssignQuota -- dummy implementation

func ClearQuota

func ClearQuota(_ mount.Interface, _ string) error

ClearQuota -- dummy implementation

func GetConsumption

func GetConsumption(_ string) (*resource.Quantity, error)

GetConsumption -- dummy implementation

func GetInodes

func GetInodes(_ string) (*resource.Quantity, error)

GetInodes -- dummy implementation

func SupportsQuotas

func SupportsQuotas(_ mount.Interface, _ string) (bool, error)

SupportsQuotas -- dummy implementation

Types

type Interface

type Interface interface {
	// Does the path provided support quotas, and if so, what types
	SupportsQuotas(m mount.Interface, path string) (bool, error)
	// Assign a quota (picked by the quota mechanism) to a path,
	// and return it.
	AssignQuota(m mount.Interface, path string, poduid types.UID, bytes *resource.Quantity) error

	// Get the quota-based storage consumption for the path
	GetConsumption(path string) (*resource.Quantity, error)

	// Get the quota-based inode consumption for the path
	GetInodes(path string) (*resource.Quantity, error)

	// Remove the quota from a path
	// Implementations may assume that any data covered by the
	// quota has already been removed.
	ClearQuota(m mount.Interface, path string) error
}

Interface -- quota interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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