quota

package
v0.0.0-...-9f1a7a8 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package quota provides primitives for quota management in tsuru.

Index

Constants

This section is empty.

Variables

View Source
var Unlimited = Quota{Limit: -1, InUse: 0}

Functions

This section is empty.

Types

type Quota

type Quota struct {
	Limit int
	InUse int
}

func (*Quota) Unlimited

func (q *Quota) Unlimited() bool

type QuotaExceededError

type QuotaExceededError struct {
	Requested uint
	Available uint
}

func (*QuotaExceededError) Error

func (err *QuotaExceededError) Error() string

Jump to

Keyboard shortcuts

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