Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) Create(ctx context.Context, reference string, referenceID string, ...) (int64, error)
- func (_m *Controller) Delete(ctx context.Context, id int64) error
- func (_m *Controller) Get(ctx context.Context, id int64, options ...quota.Option) (*pkgquota.Quota, error)
- func (_m *Controller) GetByRef(ctx context.Context, reference string, referenceID string, ...) (*pkgquota.Quota, error)
- func (_m *Controller) IsEnabled(ctx context.Context, reference string, referenceID string) (bool, error)
- func (_m *Controller) List(ctx context.Context, query *q.Query, options ...quota.Option) ([]*pkgquota.Quota, error)
- func (_m *Controller) Refresh(ctx context.Context, reference string, referenceID string, ...) error
- func (_m *Controller) Request(ctx context.Context, reference string, referenceID string, ...) error
- func (_m *Controller) Update(ctx context.Context, _a1 *pkgquota.Quota) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is an autogenerated mock type for the Controller type
func NewController ¶
func NewController(t interface { mock.TestingT Cleanup(func()) }) *Controller
NewController creates a new instance of Controller. 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 (*Controller) Create ¶
func (_m *Controller) Create(ctx context.Context, reference string, referenceID string, hardLimits types.ResourceList, used ...types.ResourceList) (int64, error)
Create provides a mock function with given fields: ctx, reference, referenceID, hardLimits, used
func (*Controller) Delete ¶
func (_m *Controller) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*Controller) Get ¶
func (_m *Controller) Get(ctx context.Context, id int64, options ...quota.Option) (*pkgquota.Quota, error)
Get provides a mock function with given fields: ctx, id, options
func (*Controller) GetByRef ¶
func (_m *Controller) GetByRef(ctx context.Context, reference string, referenceID string, options ...quota.Option) (*pkgquota.Quota, error)
GetByRef provides a mock function with given fields: ctx, reference, referenceID, options
func (*Controller) IsEnabled ¶
func (_m *Controller) IsEnabled(ctx context.Context, reference string, referenceID string) (bool, error)
IsEnabled provides a mock function with given fields: ctx, reference, referenceID
func (*Controller) List ¶
func (_m *Controller) List(ctx context.Context, query *q.Query, options ...quota.Option) ([]*pkgquota.Quota, error)
List provides a mock function with given fields: ctx, query, options
func (*Controller) Refresh ¶
func (_m *Controller) Refresh(ctx context.Context, reference string, referenceID string, options ...quota.Option) error
Refresh provides a mock function with given fields: ctx, reference, referenceID, options