Documentation ¶
Index ¶
- type CS3PermissionsClient
- type PermissionsChecker
- type Tree
- func (_m *Tree) CreateDir(ctx context.Context, _a1 *node.Node) error
- func (_m *Tree) Delete(ctx context.Context, _a1 *node.Node) error
- func (_m *Tree) DeleteBlob(_a0 *node.Node) error
- func (_m *Tree) GetMD(ctx context.Context, _a1 *node.Node) (fs.FileInfo, error)
- func (_m *Tree) ListFolder(ctx context.Context, _a1 *node.Node) ([]*node.Node, error)
- func (_m *Tree) Move(ctx context.Context, oldNode *node.Node, newNode *node.Node) error
- func (_m *Tree) Propagate(ctx context.Context, _a1 *node.Node) error
- func (_m *Tree) PurgeRecycleItemFunc(ctx context.Context, spaceid string, key string, purgePath string) (*node.Node, func() error, error)
- func (_m *Tree) ReadBlob(_a0 *node.Node) (io.ReadCloser, error)
- func (_m *Tree) RestoreRecycleItemFunc(ctx context.Context, spaceid string, key string, trashPath string, ...) (*node.Node, *node.Node, func() error, error)
- func (_m *Tree) Setup() error
- func (_m *Tree) WriteBlob(_a0 *node.Node, reader io.Reader) error
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 ¶ added in v2.3.0
func NewCS3PermissionsClient(t testing.TB) *CS3PermissionsClient
NewCS3PermissionsClient creates a new instance of CS3PermissionsClient. It also registers a cleanup function to assert the mocks expectations.
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
type PermissionsChecker ¶
PermissionsChecker is an autogenerated mock type for the PermissionsChecker type
func NewPermissionsChecker ¶ added in v2.3.0
func NewPermissionsChecker(t testing.TB) *PermissionsChecker
NewPermissionsChecker creates a new instance of PermissionsChecker. It also registers a cleanup function to assert the mocks expectations.
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) HasPermission ¶
func (_m *PermissionsChecker) HasPermission(ctx context.Context, n *node.Node, check func(*providerv1beta1.ResourcePermissions) bool) (bool, error)
HasPermission provides a mock function with given fields: ctx, n, check
type Tree ¶
Tree is an autogenerated mock type for the Tree type
func NewTree ¶ added in v2.3.0
NewTree creates a new instance of Tree. It also registers a cleanup function to assert the mocks expectations.
func (*Tree) DeleteBlob ¶
DeleteBlob provides a mock function with given fields: _a0
func (*Tree) ListFolder ¶
ListFolder provides a mock function with given fields: ctx, _a1
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) 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