Documentation
¶
Index ¶
- type Manager
- func (_m *Manager) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Manager) Create(ctx context.Context, reference string, referenceID string, ...) (int64, error)
- func (_m *Manager) Delete(ctx context.Context, id int64) error
- func (_m *Manager) Get(ctx context.Context, id int64) (*models.Quota, error)
- func (_m *Manager) GetByRef(ctx context.Context, reference string, referenceID string) (*models.Quota, error)
- func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*models.Quota, error)
- func (_m *Manager) Update(ctx context.Context, _a1 *models.Quota) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. 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 (*Manager) Create ¶
func (_m *Manager) Create(ctx context.Context, reference string, referenceID string, hardLimits types.ResourceList, usages ...types.ResourceList) (int64, error)
Create provides a mock function with given fields: ctx, reference, referenceID, hardLimits, usages
func (*Manager) GetByRef ¶
func (_m *Manager) GetByRef(ctx context.Context, reference string, referenceID string) (*models.Quota, error)
GetByRef provides a mock function with given fields: ctx, reference, referenceID
Click to show internal directories.
Click to hide internal directories.