Documentation ¶
Index ¶
- type AuditLogger
- type AuditLogger_Expecter
- func (_e *AuditLogger_Expecter) LogGrantedAccessRequest(ctx interface{}, request interface{}, pool interface{}, deciders interface{}) *AuditLogger_LogGrantedAccessRequest_Call
- func (_e *AuditLogger_Expecter) LogRejectedAccessRequest(ctx interface{}, request interface{}, pool interface{}, deciders interface{}) *AuditLogger_LogRejectedAccessRequest_Call
- type AuditLogger_LogGrantedAccessRequest_Call
- func (_c *AuditLogger_LogGrantedAccessRequest_Call) Return() *AuditLogger_LogGrantedAccessRequest_Call
- func (_c *AuditLogger_LogGrantedAccessRequest_Call) Run(...) *AuditLogger_LogGrantedAccessRequest_Call
- func (_c *AuditLogger_LogGrantedAccessRequest_Call) RunAndReturn(run func(context.Context, *ladon.Request, ladon.Policies, ladon.Policies)) *AuditLogger_LogGrantedAccessRequest_Call
- type AuditLogger_LogRejectedAccessRequest_Call
- func (_c *AuditLogger_LogRejectedAccessRequest_Call) Return() *AuditLogger_LogRejectedAccessRequest_Call
- func (_c *AuditLogger_LogRejectedAccessRequest_Call) Run(...) *AuditLogger_LogRejectedAccessRequest_Call
- func (_c *AuditLogger_LogRejectedAccessRequest_Call) RunAndReturn(run func(context.Context, *ladon.Request, ladon.Policies, ladon.Policies)) *AuditLogger_LogRejectedAccessRequest_Call
- type Guard
- func (_m *Guard) CreatePolicy(ctx context.Context, pol ladon.Policy) error
- func (_m *Guard) DeletePolicy(ctx context.Context, pol ladon.Policy) error
- func (_m *Guard) EXPECT() *Guard_Expecter
- func (_m *Guard) GetPolicies(ctx context.Context) (ladon.Policies, error)
- func (_m *Guard) GetPoliciesBySubject(ctx context.Context, subject string) (ladon.Policies, error)
- func (_m *Guard) GetPolicy(ctx context.Context, id string) (ladon.Policy, error)
- func (_m *Guard) IsAllowed(ctx context.Context, request *ladon.Request) error
- func (_m *Guard) UpdatePolicy(ctx context.Context, pol ladon.Policy) error
- type Guard_CreatePolicy_Call
- func (_c *Guard_CreatePolicy_Call) Return(_a0 error) *Guard_CreatePolicy_Call
- func (_c *Guard_CreatePolicy_Call) Run(run func(ctx context.Context, pol ladon.Policy)) *Guard_CreatePolicy_Call
- func (_c *Guard_CreatePolicy_Call) RunAndReturn(run func(context.Context, ladon.Policy) error) *Guard_CreatePolicy_Call
- type Guard_DeletePolicy_Call
- func (_c *Guard_DeletePolicy_Call) Return(_a0 error) *Guard_DeletePolicy_Call
- func (_c *Guard_DeletePolicy_Call) Run(run func(ctx context.Context, pol ladon.Policy)) *Guard_DeletePolicy_Call
- func (_c *Guard_DeletePolicy_Call) RunAndReturn(run func(context.Context, ladon.Policy) error) *Guard_DeletePolicy_Call
- type Guard_Expecter
- func (_e *Guard_Expecter) CreatePolicy(ctx interface{}, pol interface{}) *Guard_CreatePolicy_Call
- func (_e *Guard_Expecter) DeletePolicy(ctx interface{}, pol interface{}) *Guard_DeletePolicy_Call
- func (_e *Guard_Expecter) GetPolicies(ctx interface{}) *Guard_GetPolicies_Call
- func (_e *Guard_Expecter) GetPoliciesBySubject(ctx interface{}, subject interface{}) *Guard_GetPoliciesBySubject_Call
- func (_e *Guard_Expecter) GetPolicy(ctx interface{}, id interface{}) *Guard_GetPolicy_Call
- func (_e *Guard_Expecter) IsAllowed(ctx interface{}, request interface{}) *Guard_IsAllowed_Call
- func (_e *Guard_Expecter) UpdatePolicy(ctx interface{}, pol interface{}) *Guard_UpdatePolicy_Call
- type Guard_GetPoliciesBySubject_Call
- func (_c *Guard_GetPoliciesBySubject_Call) Return(_a0 ladon.Policies, _a1 error) *Guard_GetPoliciesBySubject_Call
- func (_c *Guard_GetPoliciesBySubject_Call) Run(run func(ctx context.Context, subject string)) *Guard_GetPoliciesBySubject_Call
- func (_c *Guard_GetPoliciesBySubject_Call) RunAndReturn(run func(context.Context, string) (ladon.Policies, error)) *Guard_GetPoliciesBySubject_Call
- type Guard_GetPolicies_Call
- func (_c *Guard_GetPolicies_Call) Return(_a0 ladon.Policies, _a1 error) *Guard_GetPolicies_Call
- func (_c *Guard_GetPolicies_Call) Run(run func(ctx context.Context)) *Guard_GetPolicies_Call
- func (_c *Guard_GetPolicies_Call) RunAndReturn(run func(context.Context) (ladon.Policies, error)) *Guard_GetPolicies_Call
- type Guard_GetPolicy_Call
- func (_c *Guard_GetPolicy_Call) Return(_a0 ladon.Policy, _a1 error) *Guard_GetPolicy_Call
- func (_c *Guard_GetPolicy_Call) Run(run func(ctx context.Context, id string)) *Guard_GetPolicy_Call
- func (_c *Guard_GetPolicy_Call) RunAndReturn(run func(context.Context, string) (ladon.Policy, error)) *Guard_GetPolicy_Call
- type Guard_IsAllowed_Call
- func (_c *Guard_IsAllowed_Call) Return(_a0 error) *Guard_IsAllowed_Call
- func (_c *Guard_IsAllowed_Call) Run(run func(ctx context.Context, request *ladon.Request)) *Guard_IsAllowed_Call
- func (_c *Guard_IsAllowed_Call) RunAndReturn(run func(context.Context, *ladon.Request) error) *Guard_IsAllowed_Call
- type Guard_UpdatePolicy_Call
- func (_c *Guard_UpdatePolicy_Call) Return(_a0 error) *Guard_UpdatePolicy_Call
- func (_c *Guard_UpdatePolicy_Call) Run(run func(ctx context.Context, pol ladon.Policy)) *Guard_UpdatePolicy_Call
- func (_c *Guard_UpdatePolicy_Call) RunAndReturn(run func(context.Context, ladon.Policy) error) *Guard_UpdatePolicy_Call
- type Manager
- func (_m *Manager) Create(ctx context.Context, policy ladon.Policy) error
- func (_m *Manager) Delete(ctx context.Context, id string) error
- func (_m *Manager) EXPECT() *Manager_Expecter
- func (_m *Manager) FindPoliciesForResource(ctx context.Context, resource string) (ladon.Policies, error)
- func (_m *Manager) FindPoliciesForSubject(ctx context.Context, subject string) (ladon.Policies, error)
- func (_m *Manager) FindRequestCandidates(ctx context.Context, r *ladon.Request) (ladon.Policies, error)
- func (_m *Manager) Get(ctx context.Context, id string) (ladon.Policy, error)
- func (_m *Manager) GetAll(ctx context.Context, limit int64, offset int64) (ladon.Policies, error)
- func (_m *Manager) Update(ctx context.Context, policy ladon.Policy) error
- type Manager_Create_Call
- type Manager_Delete_Call
- type Manager_Expecter
- func (_e *Manager_Expecter) Create(ctx interface{}, policy interface{}) *Manager_Create_Call
- func (_e *Manager_Expecter) Delete(ctx interface{}, id interface{}) *Manager_Delete_Call
- func (_e *Manager_Expecter) FindPoliciesForResource(ctx interface{}, resource interface{}) *Manager_FindPoliciesForResource_Call
- func (_e *Manager_Expecter) FindPoliciesForSubject(ctx interface{}, subject interface{}) *Manager_FindPoliciesForSubject_Call
- func (_e *Manager_Expecter) FindRequestCandidates(ctx interface{}, r interface{}) *Manager_FindRequestCandidates_Call
- func (_e *Manager_Expecter) Get(ctx interface{}, id interface{}) *Manager_Get_Call
- func (_e *Manager_Expecter) GetAll(ctx interface{}, limit interface{}, offset interface{}) *Manager_GetAll_Call
- func (_e *Manager_Expecter) Update(ctx interface{}, policy interface{}) *Manager_Update_Call
- type Manager_FindPoliciesForResource_Call
- func (_c *Manager_FindPoliciesForResource_Call) Return(_a0 ladon.Policies, _a1 error) *Manager_FindPoliciesForResource_Call
- func (_c *Manager_FindPoliciesForResource_Call) Run(run func(ctx context.Context, resource string)) *Manager_FindPoliciesForResource_Call
- func (_c *Manager_FindPoliciesForResource_Call) RunAndReturn(run func(context.Context, string) (ladon.Policies, error)) *Manager_FindPoliciesForResource_Call
- type Manager_FindPoliciesForSubject_Call
- func (_c *Manager_FindPoliciesForSubject_Call) Return(_a0 ladon.Policies, _a1 error) *Manager_FindPoliciesForSubject_Call
- func (_c *Manager_FindPoliciesForSubject_Call) Run(run func(ctx context.Context, subject string)) *Manager_FindPoliciesForSubject_Call
- func (_c *Manager_FindPoliciesForSubject_Call) RunAndReturn(run func(context.Context, string) (ladon.Policies, error)) *Manager_FindPoliciesForSubject_Call
- type Manager_FindRequestCandidates_Call
- func (_c *Manager_FindRequestCandidates_Call) Return(_a0 ladon.Policies, _a1 error) *Manager_FindRequestCandidates_Call
- func (_c *Manager_FindRequestCandidates_Call) Run(run func(ctx context.Context, r *ladon.Request)) *Manager_FindRequestCandidates_Call
- func (_c *Manager_FindRequestCandidates_Call) RunAndReturn(run func(context.Context, *ladon.Request) (ladon.Policies, error)) *Manager_FindRequestCandidates_Call
- type Manager_GetAll_Call
- func (_c *Manager_GetAll_Call) Return(_a0 ladon.Policies, _a1 error) *Manager_GetAll_Call
- func (_c *Manager_GetAll_Call) Run(run func(ctx context.Context, limit int64, offset int64)) *Manager_GetAll_Call
- func (_c *Manager_GetAll_Call) RunAndReturn(run func(context.Context, int64, int64) (ladon.Policies, error)) *Manager_GetAll_Call
- type Manager_Get_Call
- type Manager_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogger ¶ added in v0.8.4
AuditLogger is an autogenerated mock type for the AuditLogger type
func NewAuditLogger ¶ added in v0.8.4
func NewAuditLogger(t mockConstructorTestingTNewAuditLogger) *AuditLogger
NewAuditLogger creates a new instance of AuditLogger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AuditLogger) EXPECT ¶ added in v0.8.4
func (_m *AuditLogger) EXPECT() *AuditLogger_Expecter
type AuditLogger_Expecter ¶ added in v0.8.4
type AuditLogger_Expecter struct {
// contains filtered or unexported fields
}
func (*AuditLogger_Expecter) LogGrantedAccessRequest ¶ added in v0.8.4
func (_e *AuditLogger_Expecter) LogGrantedAccessRequest(ctx interface{}, request interface{}, pool interface{}, deciders interface{}) *AuditLogger_LogGrantedAccessRequest_Call
LogGrantedAccessRequest is a helper method to define mock.On call
- ctx context.Context
- request *ladon.Request
- pool ladon.Policies
- deciders ladon.Policies
func (*AuditLogger_Expecter) LogRejectedAccessRequest ¶ added in v0.8.4
func (_e *AuditLogger_Expecter) LogRejectedAccessRequest(ctx interface{}, request interface{}, pool interface{}, deciders interface{}) *AuditLogger_LogRejectedAccessRequest_Call
LogRejectedAccessRequest is a helper method to define mock.On call
- ctx context.Context
- request *ladon.Request
- pool ladon.Policies
- deciders ladon.Policies
type AuditLogger_LogGrantedAccessRequest_Call ¶ added in v0.8.4
AuditLogger_LogGrantedAccessRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogGrantedAccessRequest'
func (*AuditLogger_LogGrantedAccessRequest_Call) Return ¶ added in v0.8.4
func (_c *AuditLogger_LogGrantedAccessRequest_Call) Return() *AuditLogger_LogGrantedAccessRequest_Call
func (*AuditLogger_LogGrantedAccessRequest_Call) Run ¶ added in v0.8.4
func (_c *AuditLogger_LogGrantedAccessRequest_Call) Run(run func(ctx context.Context, request *ladon.Request, pool ladon.Policies, deciders ladon.Policies)) *AuditLogger_LogGrantedAccessRequest_Call
func (*AuditLogger_LogGrantedAccessRequest_Call) RunAndReturn ¶ added in v0.8.4
func (_c *AuditLogger_LogGrantedAccessRequest_Call) RunAndReturn(run func(context.Context, *ladon.Request, ladon.Policies, ladon.Policies)) *AuditLogger_LogGrantedAccessRequest_Call
type AuditLogger_LogRejectedAccessRequest_Call ¶ added in v0.8.4
AuditLogger_LogRejectedAccessRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogRejectedAccessRequest'
func (*AuditLogger_LogRejectedAccessRequest_Call) Return ¶ added in v0.8.4
func (_c *AuditLogger_LogRejectedAccessRequest_Call) Return() *AuditLogger_LogRejectedAccessRequest_Call
func (*AuditLogger_LogRejectedAccessRequest_Call) Run ¶ added in v0.8.4
func (_c *AuditLogger_LogRejectedAccessRequest_Call) Run(run func(ctx context.Context, request *ladon.Request, pool ladon.Policies, deciders ladon.Policies)) *AuditLogger_LogRejectedAccessRequest_Call
func (*AuditLogger_LogRejectedAccessRequest_Call) RunAndReturn ¶ added in v0.8.4
func (_c *AuditLogger_LogRejectedAccessRequest_Call) RunAndReturn(run func(context.Context, *ladon.Request, ladon.Policies, ladon.Policies)) *AuditLogger_LogRejectedAccessRequest_Call
type Guard ¶
Guard is an autogenerated mock type for the Guard type
func NewGuard ¶
func NewGuard(t mockConstructorTestingTNewGuard) *Guard
NewGuard creates a new instance of Guard. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Guard) CreatePolicy ¶
CreatePolicy provides a mock function with given fields: ctx, pol
func (*Guard) DeletePolicy ¶
DeletePolicy provides a mock function with given fields: ctx, pol
func (*Guard) EXPECT ¶
func (_m *Guard) EXPECT() *Guard_Expecter
func (*Guard) GetPolicies ¶
GetPolicies provides a mock function with given fields: ctx
func (*Guard) GetPoliciesBySubject ¶
GetPoliciesBySubject provides a mock function with given fields: ctx, subject
type Guard_CreatePolicy_Call ¶
Guard_CreatePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePolicy'
func (*Guard_CreatePolicy_Call) Return ¶
func (_c *Guard_CreatePolicy_Call) Return(_a0 error) *Guard_CreatePolicy_Call
func (*Guard_CreatePolicy_Call) Run ¶
func (_c *Guard_CreatePolicy_Call) Run(run func(ctx context.Context, pol ladon.Policy)) *Guard_CreatePolicy_Call
func (*Guard_CreatePolicy_Call) RunAndReturn ¶
func (_c *Guard_CreatePolicy_Call) RunAndReturn(run func(context.Context, ladon.Policy) error) *Guard_CreatePolicy_Call
type Guard_DeletePolicy_Call ¶
Guard_DeletePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePolicy'
func (*Guard_DeletePolicy_Call) Return ¶
func (_c *Guard_DeletePolicy_Call) Return(_a0 error) *Guard_DeletePolicy_Call
func (*Guard_DeletePolicy_Call) Run ¶
func (_c *Guard_DeletePolicy_Call) Run(run func(ctx context.Context, pol ladon.Policy)) *Guard_DeletePolicy_Call
func (*Guard_DeletePolicy_Call) RunAndReturn ¶
func (_c *Guard_DeletePolicy_Call) RunAndReturn(run func(context.Context, ladon.Policy) error) *Guard_DeletePolicy_Call
type Guard_Expecter ¶
type Guard_Expecter struct {
// contains filtered or unexported fields
}
func (*Guard_Expecter) CreatePolicy ¶
func (_e *Guard_Expecter) CreatePolicy(ctx interface{}, pol interface{}) *Guard_CreatePolicy_Call
CreatePolicy is a helper method to define mock.On call
- ctx context.Context
- pol ladon.Policy
func (*Guard_Expecter) DeletePolicy ¶
func (_e *Guard_Expecter) DeletePolicy(ctx interface{}, pol interface{}) *Guard_DeletePolicy_Call
DeletePolicy is a helper method to define mock.On call
- ctx context.Context
- pol ladon.Policy
func (*Guard_Expecter) GetPolicies ¶
func (_e *Guard_Expecter) GetPolicies(ctx interface{}) *Guard_GetPolicies_Call
GetPolicies is a helper method to define mock.On call
- ctx context.Context
func (*Guard_Expecter) GetPoliciesBySubject ¶
func (_e *Guard_Expecter) GetPoliciesBySubject(ctx interface{}, subject interface{}) *Guard_GetPoliciesBySubject_Call
GetPoliciesBySubject is a helper method to define mock.On call
- ctx context.Context
- subject string
func (*Guard_Expecter) GetPolicy ¶
func (_e *Guard_Expecter) GetPolicy(ctx interface{}, id interface{}) *Guard_GetPolicy_Call
GetPolicy is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Guard_Expecter) IsAllowed ¶
func (_e *Guard_Expecter) IsAllowed(ctx interface{}, request interface{}) *Guard_IsAllowed_Call
IsAllowed is a helper method to define mock.On call
- ctx context.Context
- request *ladon.Request
func (*Guard_Expecter) UpdatePolicy ¶
func (_e *Guard_Expecter) UpdatePolicy(ctx interface{}, pol interface{}) *Guard_UpdatePolicy_Call
UpdatePolicy is a helper method to define mock.On call
- ctx context.Context
- pol ladon.Policy
type Guard_GetPoliciesBySubject_Call ¶
Guard_GetPoliciesBySubject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPoliciesBySubject'
func (*Guard_GetPoliciesBySubject_Call) Return ¶
func (_c *Guard_GetPoliciesBySubject_Call) Return(_a0 ladon.Policies, _a1 error) *Guard_GetPoliciesBySubject_Call
func (*Guard_GetPoliciesBySubject_Call) Run ¶
func (_c *Guard_GetPoliciesBySubject_Call) Run(run func(ctx context.Context, subject string)) *Guard_GetPoliciesBySubject_Call
func (*Guard_GetPoliciesBySubject_Call) RunAndReturn ¶
func (_c *Guard_GetPoliciesBySubject_Call) RunAndReturn(run func(context.Context, string) (ladon.Policies, error)) *Guard_GetPoliciesBySubject_Call
type Guard_GetPolicies_Call ¶
Guard_GetPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicies'
func (*Guard_GetPolicies_Call) Return ¶
func (_c *Guard_GetPolicies_Call) Return(_a0 ladon.Policies, _a1 error) *Guard_GetPolicies_Call
func (*Guard_GetPolicies_Call) Run ¶
func (_c *Guard_GetPolicies_Call) Run(run func(ctx context.Context)) *Guard_GetPolicies_Call
func (*Guard_GetPolicies_Call) RunAndReturn ¶
func (_c *Guard_GetPolicies_Call) RunAndReturn(run func(context.Context) (ladon.Policies, error)) *Guard_GetPolicies_Call
type Guard_GetPolicy_Call ¶
Guard_GetPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicy'
func (*Guard_GetPolicy_Call) Return ¶
func (_c *Guard_GetPolicy_Call) Return(_a0 ladon.Policy, _a1 error) *Guard_GetPolicy_Call
func (*Guard_GetPolicy_Call) Run ¶
func (_c *Guard_GetPolicy_Call) Run(run func(ctx context.Context, id string)) *Guard_GetPolicy_Call
func (*Guard_GetPolicy_Call) RunAndReturn ¶
func (_c *Guard_GetPolicy_Call) RunAndReturn(run func(context.Context, string) (ladon.Policy, error)) *Guard_GetPolicy_Call
type Guard_IsAllowed_Call ¶
Guard_IsAllowed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAllowed'
func (*Guard_IsAllowed_Call) Return ¶
func (_c *Guard_IsAllowed_Call) Return(_a0 error) *Guard_IsAllowed_Call
func (*Guard_IsAllowed_Call) Run ¶
func (_c *Guard_IsAllowed_Call) Run(run func(ctx context.Context, request *ladon.Request)) *Guard_IsAllowed_Call
func (*Guard_IsAllowed_Call) RunAndReturn ¶
func (_c *Guard_IsAllowed_Call) RunAndReturn(run func(context.Context, *ladon.Request) error) *Guard_IsAllowed_Call
type Guard_UpdatePolicy_Call ¶
Guard_UpdatePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePolicy'
func (*Guard_UpdatePolicy_Call) Return ¶
func (_c *Guard_UpdatePolicy_Call) Return(_a0 error) *Guard_UpdatePolicy_Call
func (*Guard_UpdatePolicy_Call) Run ¶
func (_c *Guard_UpdatePolicy_Call) Run(run func(ctx context.Context, pol ladon.Policy)) *Guard_UpdatePolicy_Call
func (*Guard_UpdatePolicy_Call) RunAndReturn ¶
func (_c *Guard_UpdatePolicy_Call) RunAndReturn(run func(context.Context, ladon.Policy) error) *Guard_UpdatePolicy_Call
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
func NewManager(t mockConstructorTestingTNewManager) *Manager
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.
func (*Manager) EXPECT ¶
func (_m *Manager) EXPECT() *Manager_Expecter
func (*Manager) FindPoliciesForResource ¶
func (_m *Manager) FindPoliciesForResource(ctx context.Context, resource string) (ladon.Policies, error)
FindPoliciesForResource provides a mock function with given fields: ctx, resource
func (*Manager) FindPoliciesForSubject ¶
func (_m *Manager) FindPoliciesForSubject(ctx context.Context, subject string) (ladon.Policies, error)
FindPoliciesForSubject provides a mock function with given fields: ctx, subject
func (*Manager) FindRequestCandidates ¶
func (_m *Manager) FindRequestCandidates(ctx context.Context, r *ladon.Request) (ladon.Policies, error)
FindRequestCandidates provides a mock function with given fields: ctx, r
type Manager_Create_Call ¶
Manager_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Manager_Create_Call) Return ¶
func (_c *Manager_Create_Call) Return(_a0 error) *Manager_Create_Call
func (*Manager_Create_Call) Run ¶
func (_c *Manager_Create_Call) Run(run func(ctx context.Context, policy ladon.Policy)) *Manager_Create_Call
func (*Manager_Create_Call) RunAndReturn ¶
func (_c *Manager_Create_Call) RunAndReturn(run func(context.Context, ladon.Policy) error) *Manager_Create_Call
type Manager_Delete_Call ¶
Manager_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Manager_Delete_Call) Return ¶
func (_c *Manager_Delete_Call) Return(_a0 error) *Manager_Delete_Call
func (*Manager_Delete_Call) Run ¶
func (_c *Manager_Delete_Call) Run(run func(ctx context.Context, id string)) *Manager_Delete_Call
func (*Manager_Delete_Call) RunAndReturn ¶
func (_c *Manager_Delete_Call) RunAndReturn(run func(context.Context, string) error) *Manager_Delete_Call
type Manager_Expecter ¶
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) Create ¶
func (_e *Manager_Expecter) Create(ctx interface{}, policy interface{}) *Manager_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- policy ladon.Policy
func (*Manager_Expecter) Delete ¶
func (_e *Manager_Expecter) Delete(ctx interface{}, id interface{}) *Manager_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Manager_Expecter) FindPoliciesForResource ¶
func (_e *Manager_Expecter) FindPoliciesForResource(ctx interface{}, resource interface{}) *Manager_FindPoliciesForResource_Call
FindPoliciesForResource is a helper method to define mock.On call
- ctx context.Context
- resource string
func (*Manager_Expecter) FindPoliciesForSubject ¶
func (_e *Manager_Expecter) FindPoliciesForSubject(ctx interface{}, subject interface{}) *Manager_FindPoliciesForSubject_Call
FindPoliciesForSubject is a helper method to define mock.On call
- ctx context.Context
- subject string
func (*Manager_Expecter) FindRequestCandidates ¶
func (_e *Manager_Expecter) FindRequestCandidates(ctx interface{}, r interface{}) *Manager_FindRequestCandidates_Call
FindRequestCandidates is a helper method to define mock.On call
- ctx context.Context
- r *ladon.Request
func (*Manager_Expecter) Get ¶
func (_e *Manager_Expecter) Get(ctx interface{}, id interface{}) *Manager_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Manager_Expecter) GetAll ¶
func (_e *Manager_Expecter) GetAll(ctx interface{}, limit interface{}, offset interface{}) *Manager_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- limit int64
- offset int64
func (*Manager_Expecter) Update ¶
func (_e *Manager_Expecter) Update(ctx interface{}, policy interface{}) *Manager_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- policy ladon.Policy
type Manager_FindPoliciesForResource_Call ¶
Manager_FindPoliciesForResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindPoliciesForResource'
func (*Manager_FindPoliciesForResource_Call) Return ¶
func (_c *Manager_FindPoliciesForResource_Call) Return(_a0 ladon.Policies, _a1 error) *Manager_FindPoliciesForResource_Call
func (*Manager_FindPoliciesForResource_Call) Run ¶
func (_c *Manager_FindPoliciesForResource_Call) Run(run func(ctx context.Context, resource string)) *Manager_FindPoliciesForResource_Call
func (*Manager_FindPoliciesForResource_Call) RunAndReturn ¶
func (_c *Manager_FindPoliciesForResource_Call) RunAndReturn(run func(context.Context, string) (ladon.Policies, error)) *Manager_FindPoliciesForResource_Call
type Manager_FindPoliciesForSubject_Call ¶
Manager_FindPoliciesForSubject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindPoliciesForSubject'
func (*Manager_FindPoliciesForSubject_Call) Return ¶
func (_c *Manager_FindPoliciesForSubject_Call) Return(_a0 ladon.Policies, _a1 error) *Manager_FindPoliciesForSubject_Call
func (*Manager_FindPoliciesForSubject_Call) Run ¶
func (_c *Manager_FindPoliciesForSubject_Call) Run(run func(ctx context.Context, subject string)) *Manager_FindPoliciesForSubject_Call
func (*Manager_FindPoliciesForSubject_Call) RunAndReturn ¶
func (_c *Manager_FindPoliciesForSubject_Call) RunAndReturn(run func(context.Context, string) (ladon.Policies, error)) *Manager_FindPoliciesForSubject_Call
type Manager_FindRequestCandidates_Call ¶
Manager_FindRequestCandidates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindRequestCandidates'
func (*Manager_FindRequestCandidates_Call) Return ¶
func (_c *Manager_FindRequestCandidates_Call) Return(_a0 ladon.Policies, _a1 error) *Manager_FindRequestCandidates_Call
func (*Manager_FindRequestCandidates_Call) Run ¶
func (_c *Manager_FindRequestCandidates_Call) Run(run func(ctx context.Context, r *ladon.Request)) *Manager_FindRequestCandidates_Call
func (*Manager_FindRequestCandidates_Call) RunAndReturn ¶
func (_c *Manager_FindRequestCandidates_Call) RunAndReturn(run func(context.Context, *ladon.Request) (ladon.Policies, error)) *Manager_FindRequestCandidates_Call
type Manager_GetAll_Call ¶
Manager_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*Manager_GetAll_Call) Return ¶
func (_c *Manager_GetAll_Call) Return(_a0 ladon.Policies, _a1 error) *Manager_GetAll_Call
func (*Manager_GetAll_Call) Run ¶
func (_c *Manager_GetAll_Call) Run(run func(ctx context.Context, limit int64, offset int64)) *Manager_GetAll_Call
func (*Manager_GetAll_Call) RunAndReturn ¶
func (_c *Manager_GetAll_Call) RunAndReturn(run func(context.Context, int64, int64) (ladon.Policies, error)) *Manager_GetAll_Call
type Manager_Get_Call ¶
Manager_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Manager_Get_Call) Return ¶
func (_c *Manager_Get_Call) Return(_a0 ladon.Policy, _a1 error) *Manager_Get_Call
func (*Manager_Get_Call) Run ¶
func (_c *Manager_Get_Call) Run(run func(ctx context.Context, id string)) *Manager_Get_Call
func (*Manager_Get_Call) RunAndReturn ¶
func (_c *Manager_Get_Call) RunAndReturn(run func(context.Context, string) (ladon.Policy, error)) *Manager_Get_Call
type Manager_Update_Call ¶
Manager_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Manager_Update_Call) Return ¶
func (_c *Manager_Update_Call) Return(_a0 error) *Manager_Update_Call
func (*Manager_Update_Call) Run ¶
func (_c *Manager_Update_Call) Run(run func(ctx context.Context, policy ladon.Policy)) *Manager_Update_Call
func (*Manager_Update_Call) RunAndReturn ¶
func (_c *Manager_Update_Call) RunAndReturn(run func(context.Context, ladon.Policy) error) *Manager_Update_Call