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) (time.Duration, error)
- func (fake *FakeClient) AssignRoleArgsForCall(i int) (context.Context, string, perm.Actor)
- func (fake *FakeClient) AssignRoleCallCount() int
- func (fake *FakeClient) AssignRoleReturns(result1 time.Duration, result2 error)
- func (fake *FakeClient) AssignRoleReturnsOnCall(i int, result1 time.Duration, result2 error)
- func (fake *FakeClient) CreateRole(ctx context.Context, name string, permissions ...perm.Permission) (perm.Role, time.Duration, 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 time.Duration, result3 error)
- func (fake *FakeClient) CreateRoleReturnsOnCall(i int, result1 perm.Role, result2 time.Duration, result3 error)
- func (fake *FakeClient) DeleteRole(ctx context.Context, name string) (time.Duration, error)
- func (fake *FakeClient) DeleteRoleArgsForCall(i int) (context.Context, string)
- func (fake *FakeClient) DeleteRoleCallCount() int
- func (fake *FakeClient) DeleteRoleReturns(result1 time.Duration, result2 error)
- func (fake *FakeClient) DeleteRoleReturnsOnCall(i int, result1 time.Duration, result2 error)
- func (fake *FakeClient) HasPermission(ctx context.Context, actor perm.Actor, action string, resource string) (bool, time.Duration, 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 time.Duration, result3 error)
- func (fake *FakeClient) HasPermissionReturnsOnCall(i int, result1 bool, result2 time.Duration, result3 error)
- func (fake *FakeClient) Invocations() map[string][][]interface{}
- func (fake *FakeClient) UnassignRole(ctx context.Context, roleName string, actor perm.Actor) (time.Duration, error)
- func (fake *FakeClient) UnassignRoleArgsForCall(i int) (context.Context, string, perm.Actor)
- func (fake *FakeClient) UnassignRoleCallCount() int
- func (fake *FakeClient) UnassignRoleReturns(result1 time.Duration, result2 error)
- func (fake *FakeClient) UnassignRoleReturnsOnCall(i int, result1 time.Duration, result2 error)
- type FakeSender
- func (fake *FakeSender) Gauge(arg1 string, arg2 int64, arg3 float32) error
- func (fake *FakeSender) GaugeArgsForCall(i int) (string, int64, float32)
- func (fake *FakeSender) GaugeCallCount() int
- func (fake *FakeSender) GaugeReturns(result1 error)
- func (fake *FakeSender) GaugeReturnsOnCall(i int, result1 error)
- func (fake *FakeSender) Invocations() map[string][][]interface{}
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) (time.Duration, error) CreateRoleStub func(ctx context.Context, name string, permissions ...perm.Permission) (perm.Role, time.Duration, error) DeleteRoleStub func(ctx context.Context, name string) (time.Duration, error) HasPermissionStub func(ctx context.Context, actor perm.Actor, action, resource string) (bool, time.Duration, error) UnassignRoleStub func(ctx context.Context, roleName string, actor perm.Actor) (time.Duration, 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 time.Duration, result2 error)
func (*FakeClient) AssignRoleReturnsOnCall ¶
func (fake *FakeClient) AssignRoleReturnsOnCall(i int, result1 time.Duration, result2 error)
func (*FakeClient) CreateRole ¶
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 (*FakeClient) CreateRoleReturnsOnCall ¶
func (*FakeClient) DeleteRole ¶
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 time.Duration, result2 error)
func (*FakeClient) DeleteRoleReturnsOnCall ¶
func (fake *FakeClient) DeleteRoleReturnsOnCall(i int, result1 time.Duration, result2 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 time.Duration, result3 error)
func (*FakeClient) HasPermissionReturnsOnCall ¶
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 time.Duration, result2 error)
func (*FakeClient) UnassignRoleReturnsOnCall ¶
func (fake *FakeClient) UnassignRoleReturnsOnCall(i int, result1 time.Duration, result2 error)
type FakeSender ¶
type FakeSender struct { GaugeStub func(string, int64, float32) error // contains filtered or unexported fields }
func (*FakeSender) Gauge ¶
func (fake *FakeSender) Gauge(arg1 string, arg2 int64, arg3 float32) error
func (*FakeSender) GaugeArgsForCall ¶
func (fake *FakeSender) GaugeArgsForCall(i int) (string, int64, float32)
func (*FakeSender) GaugeCallCount ¶
func (fake *FakeSender) GaugeCallCount() int
func (*FakeSender) GaugeReturns ¶
func (fake *FakeSender) GaugeReturns(result1 error)
func (*FakeSender) GaugeReturnsOnCall ¶
func (fake *FakeSender) GaugeReturnsOnCall(i int, result1 error)
func (*FakeSender) Invocations ¶
func (fake *FakeSender) Invocations() map[string][][]interface{}
Click to show internal directories.
Click to hide internal directories.