mocks

package
v2.19.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CS3PermissionsClient

type CS3PermissionsClient struct {
	mock.Mock
}

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

CheckPermission provides a mock function with given fields: ctx, in, opts

func (*CS3PermissionsClient) EXPECT added in v2.19.6

type CS3PermissionsClient_CheckPermission_Call added in v2.19.6

type CS3PermissionsClient_CheckPermission_Call struct {
	*mock.Call
}

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 (*CS3PermissionsClient_CheckPermission_Call) Run added in v2.19.6

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

type PermissionsChecker struct {
	mock.Mock
}

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

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

type PermissionsChecker_AssemblePermissions_Call added in v2.19.6

type PermissionsChecker_AssemblePermissions_Call struct {
	*mock.Call
}

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 (*PermissionsChecker_AssemblePermissions_Call) Run added in v2.19.6

func (*PermissionsChecker_AssemblePermissions_Call) RunAndReturn added in v2.19.6

type PermissionsChecker_AssembleTrashPermissions_Call added in v2.19.6

type PermissionsChecker_AssembleTrashPermissions_Call struct {
	*mock.Call
}

PermissionsChecker_AssembleTrashPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssembleTrashPermissions'

func (*PermissionsChecker_AssembleTrashPermissions_Call) Return added in v2.19.6

func (*PermissionsChecker_AssembleTrashPermissions_Call) Run added in v2.19.6

func (*PermissionsChecker_AssembleTrashPermissions_Call) RunAndReturn added in v2.19.6

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL