Documentation ¶
Index ¶
- type CS3PermissionsClient
- type CS3PermissionsClient_CheckPermission_Call
- func (_c *CS3PermissionsClient_CheckPermission_Call) Return(_a0 *permissionsv1beta1.CheckPermissionResponse, _a1 error) *CS3PermissionsClient_CheckPermission_Call
- func (_c *CS3PermissionsClient_CheckPermission_Call) Run(...) *CS3PermissionsClient_CheckPermission_Call
- func (_c *CS3PermissionsClient_CheckPermission_Call) RunAndReturn(...) *CS3PermissionsClient_CheckPermission_Call
- type CS3PermissionsClient_Expecter
- type PermissionsChecker
- func (_m *PermissionsChecker) AssemblePermissions(ctx context.Context, n *node.Node) (providerv1beta1.ResourcePermissions, error)
- func (_m *PermissionsChecker) AssembleTrashPermissions(ctx context.Context, n *node.Node) (providerv1beta1.ResourcePermissions, error)
- func (_m *PermissionsChecker) EXPECT() *PermissionsChecker_Expecter
- type PermissionsChecker_AssemblePermissions_Call
- func (_c *PermissionsChecker_AssemblePermissions_Call) Return(ap providerv1beta1.ResourcePermissions, err error) *PermissionsChecker_AssemblePermissions_Call
- func (_c *PermissionsChecker_AssemblePermissions_Call) Run(run func(ctx context.Context, n *node.Node)) *PermissionsChecker_AssemblePermissions_Call
- func (_c *PermissionsChecker_AssemblePermissions_Call) RunAndReturn(...) *PermissionsChecker_AssemblePermissions_Call
- type PermissionsChecker_AssembleTrashPermissions_Call
- func (_c *PermissionsChecker_AssembleTrashPermissions_Call) Return(ap providerv1beta1.ResourcePermissions, err error) *PermissionsChecker_AssembleTrashPermissions_Call
- func (_c *PermissionsChecker_AssembleTrashPermissions_Call) Run(run func(ctx context.Context, n *node.Node)) *PermissionsChecker_AssembleTrashPermissions_Call
- func (_c *PermissionsChecker_AssembleTrashPermissions_Call) RunAndReturn(...) *PermissionsChecker_AssembleTrashPermissions_Call
- type PermissionsChecker_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CS3PermissionsClient ¶
CS3PermissionsClient is an autogenerated mock type for the CS3PermissionsClient type
func NewCS3PermissionsClient ¶
func NewCS3PermissionsClient(t interface { mock.TestingT Cleanup(func()) }) *CS3PermissionsClient
NewCS3PermissionsClient creates a new instance of CS3PermissionsClient. 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 (*CS3PermissionsClient) CheckPermission ¶
func (_m *CS3PermissionsClient) CheckPermission(ctx context.Context, in *permissionsv1beta1.CheckPermissionRequest, opts ...grpc.CallOption) (*permissionsv1beta1.CheckPermissionResponse, error)
CheckPermission provides a mock function with given fields: ctx, in, opts
func (*CS3PermissionsClient) EXPECT ¶ added in v2.19.6
func (_m *CS3PermissionsClient) EXPECT() *CS3PermissionsClient_Expecter
type CS3PermissionsClient_CheckPermission_Call ¶ added in v2.19.6
CS3PermissionsClient_CheckPermission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckPermission'
func (*CS3PermissionsClient_CheckPermission_Call) Return ¶ added in v2.19.6
func (_c *CS3PermissionsClient_CheckPermission_Call) Return(_a0 *permissionsv1beta1.CheckPermissionResponse, _a1 error) *CS3PermissionsClient_CheckPermission_Call
func (*CS3PermissionsClient_CheckPermission_Call) Run ¶ added in v2.19.6
func (_c *CS3PermissionsClient_CheckPermission_Call) Run(run func(ctx context.Context, in *permissionsv1beta1.CheckPermissionRequest, opts ...grpc.CallOption)) *CS3PermissionsClient_CheckPermission_Call
func (*CS3PermissionsClient_CheckPermission_Call) RunAndReturn ¶ added in v2.19.6
func (_c *CS3PermissionsClient_CheckPermission_Call) RunAndReturn(run func(context.Context, *permissionsv1beta1.CheckPermissionRequest, ...grpc.CallOption) (*permissionsv1beta1.CheckPermissionResponse, error)) *CS3PermissionsClient_CheckPermission_Call
type CS3PermissionsClient_Expecter ¶ added in v2.19.6
type CS3PermissionsClient_Expecter struct {
// contains filtered or unexported fields
}
func (*CS3PermissionsClient_Expecter) CheckPermission ¶ added in v2.19.6
func (_e *CS3PermissionsClient_Expecter) CheckPermission(ctx interface{}, in interface{}, opts ...interface{}) *CS3PermissionsClient_CheckPermission_Call
CheckPermission is a helper method to define mock.On call
- ctx context.Context
- in *permissionsv1beta1.CheckPermissionRequest
- opts ...grpc.CallOption
type PermissionsChecker ¶
PermissionsChecker is an autogenerated mock type for the PermissionsChecker type
func NewPermissionsChecker ¶
func NewPermissionsChecker(t interface { mock.TestingT Cleanup(func()) }) *PermissionsChecker
NewPermissionsChecker creates a new instance of PermissionsChecker. 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 (*PermissionsChecker) AssemblePermissions ¶
func (_m *PermissionsChecker) AssemblePermissions(ctx context.Context, n *node.Node) (providerv1beta1.ResourcePermissions, error)
AssemblePermissions provides a mock function with given fields: ctx, n
func (*PermissionsChecker) AssembleTrashPermissions ¶
func (_m *PermissionsChecker) AssembleTrashPermissions(ctx context.Context, n *node.Node) (providerv1beta1.ResourcePermissions, error)
AssembleTrashPermissions provides a mock function with given fields: ctx, n
func (*PermissionsChecker) EXPECT ¶ added in v2.19.6
func (_m *PermissionsChecker) EXPECT() *PermissionsChecker_Expecter
type PermissionsChecker_AssemblePermissions_Call ¶ added in v2.19.6
PermissionsChecker_AssemblePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssemblePermissions'
func (*PermissionsChecker_AssemblePermissions_Call) Return ¶ added in v2.19.6
func (_c *PermissionsChecker_AssemblePermissions_Call) Return(ap providerv1beta1.ResourcePermissions, err error) *PermissionsChecker_AssemblePermissions_Call
func (*PermissionsChecker_AssemblePermissions_Call) Run ¶ added in v2.19.6
func (_c *PermissionsChecker_AssemblePermissions_Call) Run(run func(ctx context.Context, n *node.Node)) *PermissionsChecker_AssemblePermissions_Call
func (*PermissionsChecker_AssemblePermissions_Call) RunAndReturn ¶ added in v2.19.6
func (_c *PermissionsChecker_AssemblePermissions_Call) RunAndReturn(run func(context.Context, *node.Node) (providerv1beta1.ResourcePermissions, error)) *PermissionsChecker_AssemblePermissions_Call
type PermissionsChecker_AssembleTrashPermissions_Call ¶ added in v2.19.6
PermissionsChecker_AssembleTrashPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssembleTrashPermissions'
func (*PermissionsChecker_AssembleTrashPermissions_Call) Run ¶ added in v2.19.6
func (_c *PermissionsChecker_AssembleTrashPermissions_Call) Run(run func(ctx context.Context, n *node.Node)) *PermissionsChecker_AssembleTrashPermissions_Call
func (*PermissionsChecker_AssembleTrashPermissions_Call) RunAndReturn ¶ added in v2.19.6
func (_c *PermissionsChecker_AssembleTrashPermissions_Call) RunAndReturn(run func(context.Context, *node.Node) (providerv1beta1.ResourcePermissions, error)) *PermissionsChecker_AssembleTrashPermissions_Call
type PermissionsChecker_Expecter ¶ added in v2.19.6
type PermissionsChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*PermissionsChecker_Expecter) AssemblePermissions ¶ added in v2.19.6
func (_e *PermissionsChecker_Expecter) AssemblePermissions(ctx interface{}, n interface{}) *PermissionsChecker_AssemblePermissions_Call
AssemblePermissions is a helper method to define mock.On call
- ctx context.Context
- n *node.Node
func (*PermissionsChecker_Expecter) AssembleTrashPermissions ¶ added in v2.19.6
func (_e *PermissionsChecker_Expecter) AssembleTrashPermissions(ctx interface{}, n interface{}) *PermissionsChecker_AssembleTrashPermissions_Call
AssembleTrashPermissions is a helper method to define mock.On call
- ctx context.Context
- n *node.Node