Documentation
¶
Index ¶
- type Manager
- func (_m *Manager) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Manager) Create(ctx context.Context, _a1 *model.Policy) (int64, error)
- func (_m *Manager) Delete(ctx context.Context, policyID int64) error
- func (_m *Manager) Get(ctx context.Context, id int64) (*model.Policy, error)
- func (_m *Manager) GetByNameAndProjectID(ctx context.Context, name string, projectID int64) (*model.Policy, error)
- func (_m *Manager) GetRelatedPolices(ctx context.Context, projectID int64, eventType string) ([]*model.Policy, error)
- func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*model.Policy, error)
- func (_m *Manager) Test(_a0 *model.Policy) error
- func (_m *Manager) Update(ctx context.Context, _a1 *model.Policy) 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 (*Manager) GetByNameAndProjectID ¶
func (_m *Manager) GetByNameAndProjectID(ctx context.Context, name string, projectID int64) (*model.Policy, error)
GetByNameAndProjectID provides a mock function with given fields: ctx, name, projectID
func (*Manager) GetRelatedPolices ¶
func (_m *Manager) GetRelatedPolices(ctx context.Context, projectID int64, eventType string) ([]*model.Policy, error)
GetRelatedPolices provides a mock function with given fields: ctx, projectID, eventType
Click to show internal directories.
Click to hide internal directories.