qms

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultQuota   = 10000
	QuotaConfigKey = "QUOTA_CONFIG"
)

const

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInManager

type BuildInManager struct {
}

BuildInManager read env config to max config item number, and db total usage it is not a centralized QMS.

func (*BuildInManager) DecreaseUsed

func (m *BuildInManager) DecreaseUsed(service, domain, resource string, used int64) error

DecreaseUsed no use

func (*BuildInManager) GetQuotas

func (m *BuildInManager) GetQuotas(serviceName, domain string) ([]*quota.Quota, error)

GetQuotas get usage and quota

func (*BuildInManager) IncreaseUsed

func (m *BuildInManager) IncreaseUsed(service, domain, resource string, used int64) error

IncreaseUsed no use

Jump to

Keyboard shortcuts

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