driver

package
v0.0.0-...-2af02f3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver

func NewDriver(t interface {
	mock.TestingT
	Cleanup(func())
}) *Driver

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

func (_m *Driver) CalculateUsage(ctx context.Context, key string) (types.ResourceList, error)

CalculateUsage provides a mock function with given fields: ctx, key

func (*Driver) Enabled

func (_m *Driver) Enabled(ctx context.Context, key string) (bool, error)

Enabled 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

func (*Driver) Load

func (_m *Driver) Load(ctx context.Context, key string) (driver.RefObject, error)

Load provides a mock function with given fields: ctx, key

func (*Driver) Validate

func (_m *Driver) Validate(hardLimits types.ResourceList) error

Validate provides a mock function with given fields: hardLimits

Jump to

Keyboard shortcuts

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