Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver interface { // Enabled returns true when quota enabled for the ref object Enabled(ctx context.Context, key string) (bool, error) // HardLimits returns default resource list HardLimits(ctx context.Context) types.ResourceList // Load returns quota ref object by key Load(ctx context.Context, key string) (QuotaRefObject, error) // Validate validate the hard limits Validate(hardLimits types.ResourceList) error // CalculateUsage calculate quota usage by reference id CalculateUsage(ctx context.Context, key string) (types.ResourceList, error) }
Driver the driver for quota
type QuotaRefObject ¶
type QuotaRefObject map[string]interface{}
QuotaRefObject type for quota ref object
Click to show internal directories.
Click to hide internal directories.