mocks

package
v2.16.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 8 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 added in v2.3.0

func NewCS3PermissionsClient(t mockConstructorTestingTNewCS3PermissionsClient) *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.

func (*CS3PermissionsClient) CheckPermission

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

type PermissionsChecker

type PermissionsChecker struct {
	mock.Mock
}

PermissionsChecker is an autogenerated mock type for the PermissionsChecker type

func NewPermissionsChecker added in v2.3.0

func NewPermissionsChecker(t mockConstructorTestingTNewPermissionsChecker) *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.

func (*PermissionsChecker) AssemblePermissions

AssemblePermissions provides a mock function with given fields: ctx, n

func (*PermissionsChecker) AssembleTrashPermissions added in v2.15.0

func (_m *PermissionsChecker) AssembleTrashPermissions(ctx context.Context, n *node.Node) (providerv1beta1.ResourcePermissions, error)

AssembleTrashPermissions provides a mock function with given fields: ctx, n

type Tree

type Tree struct {
	mock.Mock
}

Tree is an autogenerated mock type for the Tree type

func NewTree added in v2.3.0

func NewTree(t mockConstructorTestingTNewTree) *Tree

NewTree creates a new instance of Tree. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Tree) CreateDir

func (_m *Tree) CreateDir(ctx context.Context, _a1 *node.Node) error

CreateDir provides a mock function with given fields: ctx, _a1

func (*Tree) Delete

func (_m *Tree) Delete(ctx context.Context, _a1 *node.Node) error

Delete provides a mock function with given fields: ctx, _a1

func (*Tree) DeleteBlob

func (_m *Tree) DeleteBlob(_a0 *node.Node) error

DeleteBlob provides a mock function with given fields: _a0

func (*Tree) GetMD

func (_m *Tree) GetMD(ctx context.Context, _a1 *node.Node) (fs.FileInfo, error)

GetMD provides a mock function with given fields: ctx, _a1

func (*Tree) ListFolder

func (_m *Tree) ListFolder(ctx context.Context, _a1 *node.Node) ([]*node.Node, error)

ListFolder provides a mock function with given fields: ctx, _a1

func (*Tree) Move

func (_m *Tree) Move(ctx context.Context, oldNode *node.Node, newNode *node.Node) error

Move provides a mock function with given fields: ctx, oldNode, newNode

func (*Tree) Propagate

func (_m *Tree) Propagate(ctx context.Context, _a1 *node.Node, sizeDiff int64) error

Propagate provides a mock function with given fields: ctx, _a1, sizeDiff

func (*Tree) PurgeRecycleItemFunc

func (_m *Tree) PurgeRecycleItemFunc(ctx context.Context, spaceid string, key string, purgePath string) (*node.Node, func() error, error)

PurgeRecycleItemFunc provides a mock function with given fields: ctx, spaceid, key, purgePath

func (*Tree) ReadBlob

func (_m *Tree) ReadBlob(_a0 *node.Node) (io.ReadCloser, error)

ReadBlob provides a mock function with given fields: _a0

func (*Tree) RestoreRecycleItemFunc

func (_m *Tree) RestoreRecycleItemFunc(ctx context.Context, spaceid string, key string, trashPath string, target *node.Node) (*node.Node, *node.Node, func() error, error)

RestoreRecycleItemFunc provides a mock function with given fields: ctx, spaceid, key, trashPath, target

func (*Tree) Setup

func (_m *Tree) Setup() error

Setup provides a mock function with given fields:

func (*Tree) TouchFile added in v2.6.1

func (_m *Tree) TouchFile(ctx context.Context, _a1 *node.Node, markprocessing bool, mtime string) error

TouchFile provides a mock function with given fields: ctx, _a1, markprocessing, mtime

func (*Tree) WriteBlob

func (_m *Tree) WriteBlob(_a0 *node.Node, source string) error

WriteBlob provides a mock function with given fields: _a0, source

Jump to

Keyboard shortcuts

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