Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Manager) Create(ctx context.Context, schema *modelspolicy.Schema) (int64, error)
- func (_m *Manager) Delete(ctx context.Context, id int64) error
- func (_m *Manager) Get(ctx context.Context, id int64) (*modelspolicy.Schema, error)
- func (_m *Manager) GetByName(ctx context.Context, projectID int64, name string) (*modelspolicy.Schema, error)
- func (_m *Manager) ListPolicies(ctx context.Context, query *q.Query) ([]*modelspolicy.Schema, error)
- func (_m *Manager) ListPoliciesByProject(ctx context.Context, project int64, query *q.Query) ([]*modelspolicy.Schema, error)
- func (_m *Manager) Update(ctx context.Context, schema *modelspolicy.Schema, props ...string) 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) GetByName ¶
func (_m *Manager) GetByName(ctx context.Context, projectID int64, name string) (*modelspolicy.Schema, error)
GetByName provides a mock function with given fields: ctx, projectID, name
func (*Manager) ListPolicies ¶
func (_m *Manager) ListPolicies(ctx context.Context, query *q.Query) ([]*modelspolicy.Schema, error)
ListPolicies provides a mock function with given fields: ctx, query
Click to show internal directories.
Click to hide internal directories.