Documentation ¶
Index ¶
- type Controller
- func (_m *Controller) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Controller) Create(ctx context.Context, _a1 *models.Project) (int64, error)
- func (_m *Controller) Delete(ctx context.Context, id int64) error
- func (_m *Controller) Exists(ctx context.Context, projectIDOrName interface{}) (bool, error)
- func (_m *Controller) Get(ctx context.Context, projectIDOrName interface{}, options ...project.Option) (*models.Project, error)
- func (_m *Controller) GetByName(ctx context.Context, projectName string, options ...project.Option) (*models.Project, error)
- func (_m *Controller) List(ctx context.Context, query *q.Query, options ...project.Option) ([]*models.Project, error)
- func (_m *Controller) ListRoles(ctx context.Context, projectID int64, u *commonmodels.User) ([]int, error)
- func (_m *Controller) Update(ctx context.Context, _a1 *models.Project) 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) Delete ¶
func (_m *Controller) Delete(ctx context.Context, id int64) error
Delete provides a mock function with given fields: ctx, id
func (*Controller) Exists ¶
func (_m *Controller) Exists(ctx context.Context, projectIDOrName interface{}) (bool, error)
Exists provides a mock function with given fields: ctx, projectIDOrName
func (*Controller) Get ¶
func (_m *Controller) Get(ctx context.Context, projectIDOrName interface{}, options ...project.Option) (*models.Project, error)
Get provides a mock function with given fields: ctx, projectIDOrName, options
func (*Controller) GetByName ¶
func (_m *Controller) GetByName(ctx context.Context, projectName string, options ...project.Option) (*models.Project, error)
GetByName provides a mock function with given fields: ctx, projectName, options
func (*Controller) List ¶
func (_m *Controller) List(ctx context.Context, query *q.Query, options ...project.Option) ([]*models.Project, error)
List provides a mock function with given fields: ctx, query, options
func (*Controller) ListRoles ¶
func (_m *Controller) ListRoles(ctx context.Context, projectID int64, u *commonmodels.User) ([]int, error)
ListRoles provides a mock function with given fields: ctx, projectID, u