Documentation ¶
Index ¶
- type Driver
- func (_m *Driver) CalculateUsage(ctx context.Context, key string) (types.ResourceList, error)
- func (_m *Driver) Enabled(ctx context.Context, key string) (bool, error)
- func (_m *Driver) HardLimits(ctx context.Context) types.ResourceList
- func (_m *Driver) Load(ctx context.Context, key string) (driver.QuotaRefObject, error)
- func (_m *Driver) Validate(hardLimits types.ResourceList) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver is an autogenerated mock type for the Driver type
func NewDriver ¶
NewDriver creates a new instance of Driver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Driver) CalculateUsage ¶
CalculateUsage provides a mock function with given fields: ctx, key
func (*Driver) HardLimits ¶
func (_m *Driver) HardLimits(ctx context.Context) types.ResourceList
HardLimits provides a mock function with given fields: ctx
Click to show internal directories.
Click to hide internal directories.