Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeClient
- func (fake *FakeClient) AssignRole(ctx context.Context, roleName string, actor perm.Actor) error
- func (fake *FakeClient) AssignRoleArgsForCall(i int) (context.Context, string, perm.Actor)
- func (fake *FakeClient) AssignRoleCallCount() int
- func (fake *FakeClient) AssignRoleReturns(result1 error)
- func (fake *FakeClient) AssignRoleReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) CreateRole(ctx context.Context, name string, permissions ...perm.Permission) (perm.Role, error)
- func (fake *FakeClient) CreateRoleArgsForCall(i int) (context.Context, string, []perm.Permission)
- func (fake *FakeClient) CreateRoleCallCount() int
- func (fake *FakeClient) CreateRoleReturns(result1 perm.Role, result2 error)
- func (fake *FakeClient) CreateRoleReturnsOnCall(i int, result1 perm.Role, result2 error)
- func (fake *FakeClient) DeleteRole(ctx context.Context, name string) error
- func (fake *FakeClient) DeleteRoleArgsForCall(i int) (context.Context, string)
- func (fake *FakeClient) DeleteRoleCallCount() int
- func (fake *FakeClient) DeleteRoleReturns(result1 error)
- func (fake *FakeClient) DeleteRoleReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) HasPermission(ctx context.Context, actor perm.Actor, action string, resource string) (bool, error)
- func (fake *FakeClient) HasPermissionArgsForCall(i int) (context.Context, perm.Actor, string, string)
- func (fake *FakeClient) HasPermissionCallCount() int
- func (fake *FakeClient) HasPermissionReturns(result1 bool, result2 error)
- func (fake *FakeClient) HasPermissionReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeClient) Invocations() map[string][][]interface{}
- func (fake *FakeClient) UnassignRole(ctx context.Context, roleName string, actor perm.Actor) error
- func (fake *FakeClient) UnassignRoleArgsForCall(i int) (context.Context, string, perm.Actor)
- func (fake *FakeClient) UnassignRoleCallCount() int
- func (fake *FakeClient) UnassignRoleReturns(result1 error)
- func (fake *FakeClient) UnassignRoleReturnsOnCall(i int, result1 error)
- type FakeRecorder
- func (fake *FakeRecorder) Invocations() map[string][][]interface{}
- func (fake *FakeRecorder) Observe(duration time.Duration) error
- func (fake *FakeRecorder) ObserveArgsForCall(i int) time.Duration
- func (fake *FakeRecorder) ObserveCallCount() int
- func (fake *FakeRecorder) ObserveReturns(result1 error)
- func (fake *FakeRecorder) ObserveReturnsOnCall(i int, result1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { AssignRoleStub func(ctx context.Context, roleName string, actor perm.Actor) error CreateRoleStub func(ctx context.Context, name string, permissions ...perm.Permission) (perm.Role, error) DeleteRoleStub func(ctx context.Context, name string) error HasPermissionStub func(ctx context.Context, actor perm.Actor, action, resource string) (bool, error) UnassignRoleStub func(ctx context.Context, roleName string, actor perm.Actor) error // contains filtered or unexported fields }
func (*FakeClient) AssignRole ¶
func (*FakeClient) AssignRoleArgsForCall ¶
func (*FakeClient) AssignRoleCallCount ¶
func (fake *FakeClient) AssignRoleCallCount() int
func (*FakeClient) AssignRoleReturns ¶
func (fake *FakeClient) AssignRoleReturns(result1 error)
func (*FakeClient) AssignRoleReturnsOnCall ¶
func (fake *FakeClient) AssignRoleReturnsOnCall(i int, result1 error)
func (*FakeClient) CreateRole ¶
func (fake *FakeClient) CreateRole(ctx context.Context, name string, permissions ...perm.Permission) (perm.Role, error)
func (*FakeClient) CreateRoleArgsForCall ¶
func (fake *FakeClient) CreateRoleArgsForCall(i int) (context.Context, string, []perm.Permission)
func (*FakeClient) CreateRoleCallCount ¶
func (fake *FakeClient) CreateRoleCallCount() int
func (*FakeClient) CreateRoleReturns ¶
func (fake *FakeClient) CreateRoleReturns(result1 perm.Role, result2 error)
func (*FakeClient) CreateRoleReturnsOnCall ¶
func (fake *FakeClient) CreateRoleReturnsOnCall(i int, result1 perm.Role, result2 error)
func (*FakeClient) DeleteRole ¶
func (fake *FakeClient) DeleteRole(ctx context.Context, name string) error
func (*FakeClient) DeleteRoleArgsForCall ¶
func (fake *FakeClient) DeleteRoleArgsForCall(i int) (context.Context, string)
func (*FakeClient) DeleteRoleCallCount ¶
func (fake *FakeClient) DeleteRoleCallCount() int
func (*FakeClient) DeleteRoleReturns ¶
func (fake *FakeClient) DeleteRoleReturns(result1 error)
func (*FakeClient) DeleteRoleReturnsOnCall ¶
func (fake *FakeClient) DeleteRoleReturnsOnCall(i int, result1 error)
func (*FakeClient) HasPermission ¶
func (*FakeClient) HasPermissionArgsForCall ¶
func (*FakeClient) HasPermissionCallCount ¶
func (fake *FakeClient) HasPermissionCallCount() int
func (*FakeClient) HasPermissionReturns ¶
func (fake *FakeClient) HasPermissionReturns(result1 bool, result2 error)
func (*FakeClient) HasPermissionReturnsOnCall ¶
func (fake *FakeClient) HasPermissionReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeClient) Invocations ¶
func (fake *FakeClient) Invocations() map[string][][]interface{}
func (*FakeClient) UnassignRole ¶
func (*FakeClient) UnassignRoleArgsForCall ¶
func (*FakeClient) UnassignRoleCallCount ¶
func (fake *FakeClient) UnassignRoleCallCount() int
func (*FakeClient) UnassignRoleReturns ¶
func (fake *FakeClient) UnassignRoleReturns(result1 error)
func (*FakeClient) UnassignRoleReturnsOnCall ¶
func (fake *FakeClient) UnassignRoleReturnsOnCall(i int, result1 error)
type FakeRecorder ¶
type FakeRecorder struct { ObserveStub func(duration time.Duration) error // contains filtered or unexported fields }
func (*FakeRecorder) Invocations ¶
func (fake *FakeRecorder) Invocations() map[string][][]interface{}
func (*FakeRecorder) ObserveArgsForCall ¶
func (fake *FakeRecorder) ObserveArgsForCall(i int) time.Duration
func (*FakeRecorder) ObserveCallCount ¶
func (fake *FakeRecorder) ObserveCallCount() int
func (*FakeRecorder) ObserveReturns ¶
func (fake *FakeRecorder) ObserveReturns(result1 error)
func (*FakeRecorder) ObserveReturnsOnCall ¶
func (fake *FakeRecorder) ObserveReturnsOnCall(i int, result1 error)
Click to show internal directories.
Click to hide internal directories.