storage

package
v0.4.31 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlatformSupportsQuota = true

PlatformSupportsQuota says if the platform supports quota

Functions

This section is empty.

Types

type Cleanup

type Cleanup interface {
	Close() error
}

type ErrDriverNotSupported

type ErrDriverNotSupported struct {
	// contains filtered or unexported fields
}

func (ErrDriverNotSupported) Error

func (e ErrDriverNotSupported) Error() string

type QuotaDescription

type QuotaDescription struct {
	Bytes uint64
}

type StorageQuotaTuner

type StorageQuotaTuner interface {
	SetQuota(ctx context.Context, ID string, quotaID string, bytes uint64) (Cleanup, error)
}

func NewQuotaTuner

func NewQuotaTuner(info types.Info) (StorageQuotaTuner, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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