Documentation ¶
Index ¶
- type DAO
- func (_m *DAO) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *DAO) CreateImmutableRule(ctx context.Context, ir *model.ImmutableRule) (int64, error)
- func (_m *DAO) DeleteImmutableRule(ctx context.Context, id int64) error
- func (_m *DAO) GetImmutableRule(ctx context.Context, id int64) (*model.ImmutableRule, error)
- func (_m *DAO) ListImmutableRules(ctx context.Context, query *q.Query) ([]*model.ImmutableRule, error)
- func (_m *DAO) ToggleImmutableRule(ctx context.Context, id int64, status bool) error
- func (_m *DAO) UpdateImmutableRule(ctx context.Context, projectID int64, ir *model.ImmutableRule) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
DAO is an autogenerated mock type for the DAO type
func (*DAO) CreateImmutableRule ¶
CreateImmutableRule provides a mock function with given fields: ctx, ir
func (*DAO) DeleteImmutableRule ¶
DeleteImmutableRule provides a mock function with given fields: ctx, id
func (*DAO) GetImmutableRule ¶
GetImmutableRule provides a mock function with given fields: ctx, id
func (*DAO) ListImmutableRules ¶
func (_m *DAO) ListImmutableRules(ctx context.Context, query *q.Query) ([]*model.ImmutableRule, error)
ListImmutableRules provides a mock function with given fields: ctx, query
func (*DAO) ToggleImmutableRule ¶
ToggleImmutableRule provides a mock function with given fields: ctx, id, status
func (*DAO) UpdateImmutableRule ¶
func (_m *DAO) UpdateImmutableRule(ctx context.Context, projectID int64, ir *model.ImmutableRule) error
UpdateImmutableRule provides a mock function with given fields: ctx, projectID, ir
Click to show internal directories.
Click to hide internal directories.