ResourceLimits loaded from .csv to redis, get, set remove methods in AccountingStorage interface

This commit is contained in:
DanB
2016-08-01 21:30:42 +02:00
parent d12c501ad6
commit a28665fb2b
16 changed files with 170 additions and 41 deletions

View File

@@ -92,6 +92,9 @@ type AccountingStorage interface {
SetAlias(*Alias) error
GetAlias(string, bool) (*Alias, error)
RemoveAlias(string) error
GetResourceLimit(string, bool) (*ResourceLimit, error)
SetResourceLimit(*ResourceLimit) error
RemoveResourceLimit(string) error
GetLoadHistory(int, bool) ([]*utils.LoadInstance, error)
AddLoadHistory(*utils.LoadInstance, int) error
GetStructVersion() (*StructVersion, error)